From owner-freebsd-bugs Wed Feb 18 18:10:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA10242 for freebsd-bugs-outgoing; Wed, 18 Feb 1998 18:10:29 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA10147; Wed, 18 Feb 1998 18:10:10 -0800 (PST) (envelope-from gnats) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA09342; Wed, 18 Feb 1998 18:07:51 -0800 (PST) (envelope-from nobody) Message-Id: <199802190207.SAA09342@hub.freebsd.org> Date: Wed, 18 Feb 1998 18:07:51 -0800 (PST) From: remy@synx.com To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: i386/5784: ibcs2 emulation not handling ioctl(..FIONREAD) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 5784 >Category: i386 >Synopsis: ibcs2 emulation not handling ioctl(..FIONREAD) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Feb 18 18:10:06 PST 1998 >Last-Modified: >Originator: Remy NONNENMACHER >Organization: SYNCHRONIX >Release: 3.0-SNAP971225 >Environment: FreeBSD fs2.synx.com 3.0-971225-SNAP FreeBSD 3.0-971225-SNAP #4: Wed Feb 18 11:25:23 GMT 1998 root@fs2.synx.com:/usr/src/sys/compile/FS2 i386 >Description: Running Oracle listener from an SCO ODT3 (3.2v4.2), the listener polls for incoming flow using ioctl(..FIONREAD). After Ktracing the problem, i found that flags definitions are corrects in IBSC2 but is only handled by 'IBCS2_I_NREAD'. >How-To-Repeat: runs any SCO compiled program using this ioctl form of polling. >Fix: file sys/i386/ibcs2/ibcs2_ioctl.c, v 1.6 1995/03/14 15:12:28 scottb Exp line 628, add : + case IBCS2_FIONREAD: <<<<<< This line case IBCS2_I_NREAD: /* STREAMS */ SCARG(uap, cmd) = FIONREAD; return ioctl(p, (struct ioctl_args *)uap); >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message