diff options
author | Christopher Faylor <me@cgf.cx> | 2001-09-17 03:05:05 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-09-17 03:05:05 +0000 |
commit | 60136eb0b28717fb8e861c51f5a798c495960a06 (patch) | |
tree | ee19a95621201a3dae2b414ac8582c1a6814bc29 /winsup/cygwin/dtable.h | |
parent | 0aca521ab84e3f020085891bdab652680368ce4f (diff) | |
download | newlib-60136eb0b28717fb8e861c51f5a798c495960a06.zip newlib-60136eb0b28717fb8e861c51f5a798c495960a06.tar.gz newlib-60136eb0b28717fb8e861c51f5a798c495960a06.tar.bz2 |
* dtable.h (not_open): Assure inline.
* fhandler.h (operator []): Make const.
* sync.cc (muto::~muto): Fix typo which stopped muto event handle from ever
being closed.
Diffstat (limited to 'winsup/cygwin/dtable.h')
-rw-r--r-- | winsup/cygwin/dtable.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/dtable.h b/winsup/cygwin/dtable.h index bfeffa3..1a51c92 100644 --- a/winsup/cygwin/dtable.h +++ b/winsup/cygwin/dtable.h @@ -50,7 +50,7 @@ public: fhandler_base *build_fhandler (int fd, DWORD dev, const char *name, int unit = -1); fhandler_base *build_fhandler (int fd, const char *name, HANDLE h); - int not_open (int fd) + inline int not_open (int fd) { SetResourceLock (LOCK_FD_LIST, READ_LOCK, "not_open"); @@ -65,7 +65,7 @@ public: void init_std_file_from_handle (int fd, HANDLE handle, DWORD access, const char *name); int dup2 (int oldfd, int newfd); void fixup_after_exec (HANDLE); - inline fhandler_base *operator [](int fd) { return fds[fd]; } + inline fhandler_base *operator [](int fd) const { return fds[fd]; } select_record *select_read (int fd, select_record *s); select_record *select_write (int fd, select_record *s); select_record *select_except (int fd, select_record *s); |