diff options
author | Christopher Faylor <me@cgf.cx> | 2000-08-12 04:48:44 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-08-12 04:48:44 +0000 |
commit | 9015e0fb8c0fbb98f919dd3726ddbc97e46bd9fd (patch) | |
tree | 14cc365950ecf7a837508a410cf4dd0fa4ab3b97 /winsup/cygwin/fcntl.cc | |
parent | 86bf05d54094008ba6e8a1c692d4a71879ee6590 (diff) | |
download | newlib-9015e0fb8c0fbb98f919dd3726ddbc97e46bd9fd.zip newlib-9015e0fb8c0fbb98f919dd3726ddbc97e46bd9fd.tar.gz newlib-9015e0fb8c0fbb98f919dd3726ddbc97e46bd9fd.tar.bz2 |
Rename hinfo -> dtable. Name the former dtable array 'fdtab'.
Diffstat (limited to 'winsup/cygwin/fcntl.cc')
-rw-r--r-- | winsup/cygwin/fcntl.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/winsup/cygwin/fcntl.cc b/winsup/cygwin/fcntl.cc index 3b60944..793e432 100644 --- a/winsup/cygwin/fcntl.cc +++ b/winsup/cygwin/fcntl.cc @@ -23,7 +23,7 @@ _fcntl (int fd, int cmd,...) int res; SetResourceLock(LOCK_FD_LIST,WRITE_LOCK|READ_LOCK, "_fcntl"); - if (dtable.not_open (fd)) + if (fdtab.not_open (fd)) { set_errno (EBADF); res = -1; @@ -36,24 +36,24 @@ _fcntl (int fd, int cmd,...) va_start (args, cmd); arg = va_arg (args,int); va_end (args); - res = dup2 (fd, dtable.find_unused_handle (arg)); + res = dup2 (fd, fdtab.find_unused_handle (arg)); goto done; case F_GETFD: - res = dtable[fd]->get_close_on_exec () ? FD_CLOEXEC : 0; + res = fdtab[fd]->get_close_on_exec () ? FD_CLOEXEC : 0; goto done; case F_SETFD: va_start (args, cmd); arg = va_arg (args, int); va_end (args); - dtable[fd]->set_close_on_exec (arg); + fdtab[fd]->set_close_on_exec (arg); res = 0; goto done; case F_GETFL: { - res = dtable[fd]->get_flags (); + res = fdtab[fd]->get_flags (); goto done; } case F_SETFL: @@ -71,8 +71,8 @@ _fcntl (int fd, int cmd,...) syscall_printf ("fcntl (%d, F_SETFL, %d)", arg); - dtable[fd]->set_access (temp); - dtable[fd]->set_flags (arg); + fdtab[fd]->set_access (temp); + fdtab[fd]->set_flags (arg); res = 0; goto done; @@ -86,7 +86,7 @@ _fcntl (int fd, int cmd,...) va_start (args, cmd); fl = va_arg (args,struct flock *); va_end (args); - res = dtable[fd]->lock (cmd, fl); + res = fdtab[fd]->lock (cmd, fl); goto done; } default: |