diff options
author | Christopher Faylor <cgf@redhat.com> | 2003-02-14 03:03:26 +0000 |
---|---|---|
committer | Christopher Faylor <cgf@redhat.com> | 2003-02-14 03:03:26 +0000 |
commit | e07f1ec5d50d3781167acad813023c327a98bfd8 (patch) | |
tree | d14e67e6282ef41f8e1efda6dcbc41cc8a62e90a /winsup/cygwin/fhandler_zero.cc | |
parent | 335bdeb9375bfba164a07467a0ce6e9341a89a55 (diff) | |
download | gdb-e07f1ec5d50d3781167acad813023c327a98bfd8.tar.gz |
merge from trunk.
Reorganize includes throughout so that path.h comes before fhandler.h.
Eliminate path_conv arguments from fhandler functions which take them,
throughout. Use get_name() and get_win32_name() consistently throughout for
fhandler objects. Use build_fh_* functions throughout, where appropriate.
* fhandler.h (fhandler_base): Store path_conv struct here. Remove dev.
* dtable.h (dtable::build_fhandler_*): Remove.
(build_fh_dev): New.
(build_fh_pc): New.
(build_fh_name): New.
* dtable.cc (build_fh_dev): New.
(build_fh_pc): New.
(build_fh_name): New.
* fhandler.h (fhandler_base::set_name): Change argument.
* fhandler.cc (fhandler_base::set_name): Just accept a path_conv argument.
(executable_states): Move.
* path.h (executable_state): Accept.
* syscalls.cc (stat_worker): Make static.
* winsup.h (stat_worker): Remove definition.
Diffstat (limited to 'winsup/cygwin/fhandler_zero.cc')
-rw-r--r-- | winsup/cygwin/fhandler_zero.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_zero.cc b/winsup/cygwin/fhandler_zero.cc index 64ad21fdc8f..3051769a138 100644 --- a/winsup/cygwin/fhandler_zero.cc +++ b/winsup/cygwin/fhandler_zero.cc @@ -13,6 +13,7 @@ details. */ #include "winsup.h" #include <errno.h> #include "security.h" +#include "path.h" #include "fhandler.h" fhandler_dev_zero::fhandler_dev_zero () @@ -21,7 +22,7 @@ fhandler_dev_zero::fhandler_dev_zero () } int -fhandler_dev_zero::open (path_conv *, int flags, mode_t) +fhandler_dev_zero::open (int flags, mode_t) { set_flags ((flags & ~O_TEXT) | O_BINARY); set_nohandle (true); |