From nobody  Wed Feb 18 18:07:51 1998
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
Subject: ibcs2 emulation not handling ioctl(..FIONREAD)
X-Send-Pr-Version: www-1.0

>Number:         5784
>Category:       i386
>Synopsis:       ibcs2 emulation not handling ioctl(..FIONREAD)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 18 18:10:06 PST 1998
>Closed-Date:    Fri Nov 16 12:33:01 PST 2001
>Last-Modified:  Fri Nov 16 12:36:11 PST 2001
>Originator:     Remy NONNENMACHER
>Release:        3.0-SNAP971225
>Organization:
SYNCHRONIX
>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);

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: iedowse 
State-Changed-When: Fri Nov 16 12:33:01 PST 2001 
State-Changed-Why:  

Committed, thanks; though 3.5 years later it is probably not of 
much use now! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=5784 
>Unformatted:
