diff options
author | Christopher Faylor <me@cgf.cx> | 2000-11-03 04:27:03 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-11-03 04:27:03 +0000 |
commit | bb5d559a73794be49fd63b97086bf7e982504399 (patch) | |
tree | 2ddb43199de5cf752e36a35cf06a51f7803f21dd /winsup/cygwin/automode.c | |
parent | 6857eb1b3b79aa92498e6b9dded43ae4a8265669 (diff) | |
download | newlib-bb5d559a73794be49fd63b97086bf7e982504399.zip newlib-bb5d559a73794be49fd63b97086bf7e982504399.tar.gz newlib-bb5d559a73794be49fd63b97086bf7e982504399.tar.bz2 |
* pinfo.cc (pinfo::init): Reverse order of setting status and pid info in an
execed process to avoid a race.
* sigproc.cc (wait_subproc): Print more info when a WFSO error occurs.
* automode.c: New file.
* syscalls.cc (close_all_files): Streamline slightly.
* cygheap.cc (ccalloc): Clear *entire* allocated array.
Diffstat (limited to 'winsup/cygwin/automode.c')
-rw-r--r-- | winsup/cygwin/automode.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/winsup/cygwin/automode.c b/winsup/cygwin/automode.c new file mode 100644 index 0000000..4e9be21 --- /dev/null +++ b/winsup/cygwin/automode.c @@ -0,0 +1,26 @@ +/* automode.c + + Copyright 2000 Red Hat, Inc. + +This file is part of Cygwin. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file "CYGWIN_LICENSE" for +details. */ + +#include <windows.h> +#include <sys/fcntl.h> +#include <sys/cygwin.h> + +extern int _fmode; +void +cygwin_premain0 (int argc, char **argv) +{ + static struct __cygwin_perfile pf[] = + { + {"", O_RDONLY | O_TEXT}, + {"", O_WRONLY | O_BINARY}, + {NULL, 0} + }; + cygwin_internal (CW_PERFILE, pf); +} |