libc/winsup
Christopher Faylor e35f391fa5 Remove fcntl.h includes throughout.
* fhandler.h: Move fcntl.h include here.
(fhandler_base::set_flags): Accept supplied_bin argument.  Make non-inlined.
* dtable.cc (dtable::init_std_file_from_handle): Just use binmode from pc.
(reset_to_open_binmode): Use set_flags.
* cygwin.din (open): Avoid newlib wrapper.
(read): Ditto.
(unlink): Ditto.
(write): Ditto.
* fhandler.cc (fhandler_base::set_flags): Accept supplied_bin argument.  Make
binmode decisions here.
(fhandler_base::open): Avoid using pc if it is NULL.  Eliminate binmode logic.
Just call set_flags with binmode argument.
(fhandler_base::init): Call set_flags with binmode argument.
* fhandler_clipboard.cc (fhandler_dev_clipboard::open): Ditto.
* fhandler_console.cc (fhandler_console::open): Ditto.
(fhandler_console::init): Force binary on open.
* fhandler_disk_file.cc (fhandler_disk_file::open): Don't set binmode here.
Let it happen in base class.
* fhandler_dsp.cc (fhandler_dev_dsp::open): Force binmode open.  Set return
value appropriately if unable to open.
* fhandler_proc.cc (fhandler_proc::open): Make sure flags are set before
open_status.
* fhandler_process.cc (fhandler_process::open): Ditto.
* fhandler_registry.cc (fhandler_registry::open): Ditto.
* fhandler_random.cc (fhandler_dev_random::fhandler_dev_random): Ditto.
* fhandler_raw.cc (fhandler_dev_raw::open): Force O_BINARY by default.
* fhandler_serial.cc (fhandler_serial::init): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::open): Ditto.
(fhandler_pty_master::open): Ditto.
* fhandler_virtual.cc (fhandler_virtual::open): Ditto.
* fhandler_windows.cc (fhandler_windows::open): Ditto.
* fhandler_zero.cc (fhandler_dev_zero::open): Ditto.
* net.cc (fdsock): Ditto.
* path.cc (path_conv::check): Avoid checking for extension when error or
directory.
(set_flags): Set PATH_TEXT explicitly, when appropriate.
(mount_info::conv_to_win32_path): Use set_flags() to set path flags.
* path.h (PATH_TEXT): New enum.
(path_conv::binmode): Return appropriate constant based on binmode.
* pipe.cc (make_pipe): Set binmode to O_TEXT xor O_BINARY.
* syscalls.cc (setmode_helper): Make debugging message a little clearer.
(setmode): Set binmode via set_flags.
2002-06-05 01:42:28 +00:00
..
bz2lib * Makefile.in: Add -U_WIN32 to CFLAGS compile line to avoid inappropriate 2001-04-19 03:55:02 +00:00
cygserver * autoload.cc (LoadFuncEx): Define via new LoadFuncEx2 macro. 2002-05-28 01:55:40 +00:00
cygwin Remove fcntl.h includes throughout. 2002-06-05 01:42:28 +00:00
doc * how-programming.texinfo: Add more words to the "how to build". 2002-06-02 06:18:53 +00:00
mingw Merging MinGW changes 2002-05-28 13:13:45 +00:00
subauth * Makefile.in: Comment out install for now. 2001-10-12 20:02:41 +00:00
testsuite * winsup.api/systemcall.c (main): Ensure that stdin is redirected. 2002-02-27 23:01:10 +00:00
utils * umount.cc (version): New global variable. 2002-06-04 01:31:28 +00:00
w32api * include/winnt.h (PACE_HEADER, PACCESS_ALLOWED_ACE, 2002-06-04 22:41:50 +00:00
CYGWIN_LICENSE remove a comma 2002-05-12 19:29:20 +00:00
ChangeLog * configure.in: Complain about lack of w32api directory. 2002-06-02 05:54:33 +00:00
MAINTAINERS Nuke 2001-12-31 23:24:10 +00:00
Makefile.common Add missing ChangeLog. 2001-12-14 18:26:43 +00:00
Makefile.in * configure.in: Remove cinstall target. 2002-04-25 23:19:28 +00:00
configure * configure.in: Complain about lack of w32api directory. 2002-06-02 05:54:33 +00:00
configure.in * configure.in: Complain about lack of w32api directory. 2002-06-02 05:54:33 +00:00