delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/01/07/14:31:31

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 <randym AT acm DOT org>
Subject: patch for ioctl
Mime-Version: 1.0

--=====================_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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019