newlib/winsup
Christopher Faylor 47063f00e4 Add "path.h" include throughout, where needed. Use new path_conv methods and
operators to simplify testing for directory and attributes, throughout.
* path.h (path_conv::exists): New method.
(path_conv::has_attribute): Ditto.
(path_conv::isdir): Ditto.
(path_conv::DWORD &): New operator.
(path_conv::int &): Ditto.
* dir.cc (rmdir): Eliminate a goto.
* dtable.cc (dtable::build_fhandler): Accept opt and suffix info for
path_conv.check.  Return fh == NULL on path_conv error.  Pass unit to set_name
as appropriate.
(dtable::reset_unix_path_name): New method.
* dtable.h (dtable): Declare new method.  Reflect arg changes to
build_fhandler.
* fhandler.cc (fhandler_disk_dummy_name): Eliminate.
(fhandler_base::set_name): Expect paths to be NULL.  Build unix_path_name from
win32_path_name when it is a device.
(fhandler_base::reset_unix_path_name): New method.
(fhandler_base::raw_read): Report EISDIR when ERROR_INVALID_FUNCTION or
ERROR_INVALID_PARAMETER and reading a directory.
(fhandler_disk_file::fstat): Don't call stat_dev since we should now never be
calling fhandler_disk_file methods with devices.
(fhandler_base::fhandler_base): Clear {unix,win32}_path_name.
(fhandler_base::~fhandler_base): Always free {unix,win32}_path_name.
(fhandler_disk_file::fhandler_disk_file): Remove set_no_free_names kludge.
(fhandler_disk_file::open): Ditto.
* fhandler.h (fhandler_base::no_free_names): Eliminate.
(fhandler_base::set_no_free_names): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::fhandler_tty_slave): Don't set
unix_path_name here.
* path.cc (fchdir): Lock fd table throughout.  Use new
dtable::reset_unix_path_name method to reset path.
* syscalls.cc (stat_worker): Reorganize to always call fstat method.  Pass
path_conv method to fhandler_*::open.
(chroot): Elminate a goto.
2001-10-01 04:10:07 +00:00
..
bz2lib * Makefile.in: Add -U_WIN32 to CFLAGS compile line to avoid inappropriate 2001-04-19 03:55:02 +00:00
cygwin Add "path.h" include throughout, where needed. Use new path_conv methods and 2001-10-01 04:10:07 +00:00
doc expand entry "How can I get bash filename completion to be case insensitive?" 2001-09-23 11:19:13 +00:00
mingw 2001-09-19 Earnie Boyd <earnie@SF.net> 2001-09-19 15:37:19 +00:00
subauth * Makefile.in: Use 'rm -f' when cleaning. 2001-05-20 04:25:02 +00:00
testsuite * libltp/lib/get_high_address.c (get_high_address): Get inaccessible 2001-09-20 15:44:41 +00:00
utils * Makefile.in (mingw_getopt.o): Ensure that newlib include directories are not 2001-09-22 00:40:37 +00:00
w32api 2001-09-18 Danny Smith <dannysmith@users.sourceforge.net> 2001-09-19 23:56:12 +00:00
ChangeLog * Makefile.common: Change method for finding current directory. 2001-05-15 05:11:55 +00:00
configure * configure.in: Fix typo. 2001-05-05 04:18:16 +00:00
configure.in * configure.in: Fix typo. 2001-05-05 04:18:16 +00:00
CYGWIN_LICENSE
MAINTAINERS DJ is sole setup maintainer now. 2000-08-10 23:51:25 +00:00
Makefile.common * Makefile.common: Change method for finding current directory. 2001-05-15 05:11:55 +00:00
Makefile.in * Makefile.common: Extend VERBOSE default. 2000-10-02 02:05:23 +00:00