OSDN Git Service

* fhandler.cc (fhandler_base::write): Use bool parameter in calls to
authorcorinna <corinna>
Fri, 9 Apr 2004 08:43:28 +0000 (08:43 +0000)
committercorinna <corinna>
Fri, 9 Apr 2004 08:43:28 +0000 (08:43 +0000)
commit3a268edc0498b604385ca99b8c4375419997352e
tree41d551e9367ab25fcf59ff7c604b6c579eb2c61c
parent3a1e2ad2e466cdd961512494e01cf0700e46901a
* fhandler.cc (fhandler_base::write): Use bool parameter in calls to
set_did_lseek.
(fhandler_base::fhandler_base): Accomodate new status and open_status
constructor.
* fhandler.h: Remove status bit enumerator.
(FHDEVN): Remove.
(FHISSETF): Remove.
(FHSETF): Remove.
(FHCLEARF): Remove.
(FHCONDSETF): Remove.
(FHSTATOFF): Remove.
(UNCONNECTED, CONNECT_PENDING, CONNECTED): Substitute by enum
connect_state.
(fhandler_base::status): Define as bitfield struct type status_flags.
Remove unused flags entirely.  Accomodate all status access methods.
(open_status): Define as bitfield struct type status_flags.
(fhandler_socket): Move socket related status bits to here.  Redefine
had_connect_or_listen to be part of these status bits.  Accomodate
related access methods.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Use pc.issymlink
instead of dropped method get_symlink_p.
(fhandler_base::open_fs): Remove setting dropped status flags.
* fhandler_socket.cc: Use values from enum connect_state throughout.
(fhandler_socket::fhandler_socket): Initialize status bits.
* fhandler_virtual.cc (fhandler_virtual::open): Remove setting dropped
status flags.
* net.cc: Use values from enum connect_state throughout.
* select.cc: Ditto.
* shared_info.h: Protect struct console_state using _FHANDLER_H_
instead of FHDEVN.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.cc
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_disk_file.cc
winsup/cygwin/fhandler_socket.cc
winsup/cygwin/fhandler_virtual.cc
winsup/cygwin/net.cc
winsup/cygwin/select.cc
winsup/cygwin/shared_info.h