Mail Archives: djgpp-workers/1998/01/07/14:31:31
--=====================_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 <stdarg.h>
#include <stdlib.h>
!
#include <sys/ioctl.h>
--- 98,102 ----
#include <stdarg.h>
#include <stdlib.h>
! #include <sys/fsext.h>
#include <sys/ioctl.h>
***************
*** 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==_--
- Raw text -