diff options
Diffstat (limited to 'posix')
-rw-r--r-- | posix/ChangeLog | 8 | ||||
-rw-r--r-- | posix/gawkmisc.c | 17 |
2 files changed, 25 insertions, 0 deletions
diff --git a/posix/ChangeLog b/posix/ChangeLog index cba078f4..b2bcfb1b 100644 --- a/posix/ChangeLog +++ b/posix/ChangeLog @@ -1,3 +1,11 @@ +Mon Jul 7 11:01:43 2003 Arnold D. Robbins <arnold@skeeve.com> + + * Release 3.1.3: Release tar file made. + +Sun May 25 16:23:43 2003 Corinna Vinschen <vinschen@redhat.com> + + * gawkmisc.c (cygwin_premain0): New function. + Wed Mar 19 14:10:31 2003 Arnold D. Robbins <arnold@skeeve.com> This time for sure. diff --git a/posix/gawkmisc.c b/posix/gawkmisc.c index 6ca9ee3d..b421766a 100644 --- a/posix/gawkmisc.c +++ b/posix/gawkmisc.c @@ -219,3 +219,20 @@ int fd; /* no-op */ return; } + +#ifdef __CYGWIN__ +#include <sys/cygwin.h> + +extern int _fmode; +void +cygwin_premain0 (int argc, char **argv, struct per_process *myself) +{ + static struct __cygwin_perfile pf[] = + { + {"", O_RDONLY | O_TEXT}, + /*{"", O_WRONLY | O_BINARY},*/ + {NULL, 0} + }; + cygwin_internal (CW_PERFILE, pf); +} +#endif |