This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

patch to export fcloseall and fcloseall_r


Hi,

Earlier I had posted on the main list regarding the exporting of fcloseall and fcloseall_r from the cygwin dll. Well I have gone ahead and built a new cygwin dll with those functions exported. I tested the functionality by modifying this test program slightly for cygwin:

http://www.phanderson.com/C/fileread.html

It worked fine, FWICT, and it seems like the addition isn't causing any adverse affects on the system. So I figured that it would be a good idea to back up my suggestions with a patch to the cygwin.din and calls.texi. So here they are.

Cheers,
Nicholas
2002-07-23  Nicholas Wourms  <nwourms@netscape.net>

    * cygwin.din (fcloseall): Add symbol for export.
    (fcloseall_r): Ditto.
Index: cygwin.din
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/cygwin.din,v
retrieving revision 1.37.2.10
diff -u -3 -p -u -p -r1.37.2.10 cygwin.din
--- cygwin.din  13 Jul 2002 20:39:24 -0000  1.37.2.10
+++ cygwin.din  23 Jul 2002 16:08:58 -0000
@@ -213,6 +249,10 @@ _fchown = fchown
 fchown32
 fclose
 _fclose = fclose
+fcloseall
+_fcloseall = fcloseall
+_fcloseall_r
+fcloseall_r = _fcloseall_r
 _fcntl
 fcntl = _fcntl
 fcvt
Index: calls.texinfo
===================================================================
RCS file: /cvs/src/src/winsup/doc/calls.texinfo,v
retrieving revision 1.4
diff -u -3 -p -u -p -r1.4 calls.texinfo
--- calls.texinfo   14 Jun 2002 11:33:30 -0000  1.4
+++ calls.texinfo   23 Jul 2002 16:08:25 -0000
@@ -616,6 +616,8 @@ in MS IP stack but may not be implemente
 @item endgrent
 @item endhostent
 @item facl
+@item fcloseall
+@item fcloseall_r
 @item ffs
 @item fstatfs
 @item ftime

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]