delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/12/01/08:54:00

Message-Id: <3.0.1.32.19971201075639.007f8270@yacker.xiotech.com>
Date: Mon, 01 Dec 1997 07:56:39 -0600
To: djgpp-workers AT delorie DOT com
From: Randy Maas <randym AT acm DOT org>
Subject: patch for fsext.h
Mime-Version: 1.0

--=====================_881006199==_
Content-Type: text/plain; charset="us-ascii"

Like the patches I posted late last week, this patch:
	* is relative to the last alpha (971114)
	* associates a state pointer with the file descriptor for the fsext
	* adds some new low-level io emulation

The difference from last week:
	1. adds __FSEXT_fstat for future (soon) emulation
	2. I forgot to have __FSEXT_alloc_fd associate the state variable as well. 

(The changes are very small relative to last weeks)
the patch for fsext.c will follow shortly

Randy Maas
randym AT acm DOT org
--=====================_881006199==_
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="fsext-h.dif"

*** include/sys/fsext.h~1	Mon Aug 12 23:18:10 1996
--- include/sys/fsext.h	Mon Dec  1 07:49:28 1997
***************
*** 25,28 ****
--- 25,33 ----
    __FSEXT_fcntl,
    __FSEXT_ioctl,
+   __FSEXT_lseek,
+   __FSEXT_link,
+   __FSEXT_unlink,
+   __FSEXT_dup2,
+   __FSEXT_fstat
  } __FSEXT_Fnumber;
  
***************
*** 36,45 ****
     caller's functionality. */
  typedef int (__FSEXT_Function)(__FSEXT_Fnumber _function_number,
! 			       int *_rv, va_list _args);
! 
! int               __FSEXT_alloc_fd(__FSEXT_Function *_function);
! int               __FSEXT_set_function(int _fd, __FSEXT_Function *_function);
! __FSEXT_Function *__FSEXT_get_function(int _fd);
  
  int               __FSEXT_add_open_handler(__FSEXT_Function *_function);
  int               __FSEXT_call_open_handlers(__FSEXT_Fnumber _function_number,
--- 41,51 ----
     caller's functionality. */
  typedef int (__FSEXT_Function)(__FSEXT_Fnumber _function_number,
!                                int *_rv, va_list _args, void* state);
  
+ int               __FSEXT_alloc_fd(__FSEXT_Function *_function, void* state);
+ int               __FSEXT_set_function(int _fd, __FSEXT_Function *_function,
+                                        void* state);
+ int               __FSEXT_get_function(int _fd, __FSEXT_Function** func,
+                                        void** state);
  int               __FSEXT_add_open_handler(__FSEXT_Function *_function);
  int               __FSEXT_call_open_handlers(__FSEXT_Fnumber _function_number,

--=====================_881006199==_
Content-Type: text/plain; charset="us-ascii"



--=====================_881006199==_--

- Raw text -


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