Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 1998 18:07:51 -0800 (PST)
From:      remy@synx.com
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   i386/5784: ibcs2 emulation not handling ioctl(..FIONREAD)
Message-ID:  <199802190207.SAA09342@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802190207.SAA09342>