delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/06/10/09:33:05

Date: Mon, 10 Jun 2002 13:59:02 +0100
From: "Richard Dawe" <rich AT phekda DOT freeserve DOT co DOT uk>
Sender: rich AT phekda DOT freeserve DOT co DOT uk
To: djgpp-workers AT delorie DOT com
X-Mailer: Emacs 21.3.50 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
Subject: fsext.txh: Link to all hooked functions; describe /dev/{zero,full}
Message-Id: <E17HOfC-0000oP-00@phekda.freeserve.co.uk>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

Below is a patch to add links to the other functions that can be hooked
using FSEXT. Some where already linked to, but this adds some more links.
These links could be helpful, when you're trying to work out what
an FSEXT handler will receive in the va_list.

I've also added some bumph on /dev/zero & /dev/full, to match similar
bumpy for /dev/null & /dev/tty.

OK to commit?

Thanks, bye, Rich =]

Index: src/libc/fsext/fsext.txh
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/fsext/fsext.txh,v
retrieving revision 1.13
diff -u -3 -r1.13 fsext.txh
--- src/libc/fsext/fsext.txh	2002/04/19 18:53:31	1.13
+++ src/libc/fsext/fsext.txh	2002/06/10 12:50:29
@@ -27,24 +27,27 @@
 
 @item __FSEXT_open
 
-An open handler.  This is called just before the library is about to
-issue the DOS OpenFile call on behalf of your program.  Do not use
-this extension to emulate symlinks.  Use @code{__FSEXT_readlink} handler
-instead.
+An open handler (@pxref{_open}).  This is called just before the library
+is about to issue the DOS OpenFile call on behalf of your program.
+Do not use this extension to emulate symlinks.
+Use @code{__FSEXT_readlink} handler instead.
 
 @item __FSEXT_creat
 
-A create handler.  Called when a file needs to be created.  Note that
-the handler should both create the ``file'' and open it.
+A create handler (@pxref{_creat}, @pxref{_creatnew}).  Called when
+a file needs to be created.  Note that the handler should both create
+the ``file'' and open it.
 
 @item __FSEXT_read
 
-A read handler.  Called when data should be read from a ``file''.
+A read handler (@pxref{_read}).  Called when data should be read from
+a ``file''.
 
 @item __FSEXT_write
 
-A write handler.  Called to write data to a ``file''.
-On ``text'' files it receives the ORIGINAL (unconverted) buffer.
+A write handler (@pxref{write}, @pxref{_write}).  Called to write data
+to a ``file''.  On ``text'' files it receives
+the ORIGINAL (unconverted) buffer.
 
 @item __FSEXT_ready
 
@@ -72,15 +75,15 @@
 
 @item __FSEXT_close
 
-A close handler.  Called when the ``file'' should be closed.
+A close handler (@pxref{_close}).  Called when the ``file'' should be closed.
 
 @item __FSEXT_fcntl
 
-A file fcntl handler.
+A file fcntl handler (@pxref{fcntl}).
 
 @item __FSEXT_ioctl
 
-A file ioctl handler.
+A file ioctl handler (@pxref{ioctl (General description)}).
 
 @item __FSEXT_lseek
 
@@ -97,8 +100,8 @@
 
 @item __FSEXT_unlink
 
-A file unlink handler (@pxref{unlink}).  This is most relevant to file
-system extensions that emulate a directory structure.
+A file unlink handler (@pxref{remove}, @pxref{unlink}).  This is most
+relevant to file system extensions that emulate a directory structure.
 
 @item __FSEXT_dup
 
@@ -178,6 +181,13 @@
 @file{/dev/tty} are already mapped to the appropriate DOS names
 @file{NUL} and @file{CON}, respectively, so you don't need to write
 extensions for these.
+
+Please note that the special Unix filenames @file{/dev/zero} and
+@file{/dev/full} can be made available by calling the functions
+@code{__install_dev_zero} (@pxref{__install_dev_zero}) and
+@code{__install_dev_full} (@pxref{__install_dev_full}) respectively,
+so you don't need to write extensions for these.  These are implemented
+using File System Extensions.
 
 Programs using the DJGPP debug support functions in @file{libdbg.a} may
 have problems using File System Extensions, because the debug support

- Raw text -


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