Message-Id: <3.0.1.32.19980107133412.007d28e0@yacker.xiotech.com> Date: Wed, 07 Jan 1998 13:34:12 -0600 To: djgpp-workers AT delorie DOT com From: Randy Maas Subject: patch for ioctl Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====================_884223252==_" Precedence: bulk --=====================_884223252==_ Content-Type: text/plain; charset="us-ascii" This makes it so that a fsext can ioctl its own file descriptors Randy --=====================_884223252==_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: attachment; filename="ioctl.dif" *** /local/src/libc/compat/ioctl/ioctl.c~1 Sun Sep 1 13:46:06 1996 --- /local/src/libc/compat/ioctl/ioctl.c Wed Jan 7 13:13:34 1998 *************** *** 98,102 **** #include #include ! #include --- 98,102 ---- #include #include ! #include #include *************** *** 271,274 **** --- 271,284 ---- int argcx,argdx,argsi,argdi; int narg,xarg; + __FSEXT_Function *func = __FSEXT_get_function(fd); + int rv; + + /** + ** see if this is a file system extension file + ** + */ + if (func && func(__FSEXT_ioctl, &rv, &fd)) + return rv; + va_start(args,cmd); --=====================_884223252==_ Content-Type: text/plain; charset="us-ascii" --=====================_884223252==_--