From 9015e0fb8c0fbb98f919dd3726ddbc97e46bd9fd Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 12 Aug 2000 04:48:44 +0000 Subject: Rename hinfo -> dtable. Name the former dtable array 'fdtab'. --- winsup/cygwin/fcntl.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'winsup/cygwin/fcntl.cc') diff --git a/winsup/cygwin/fcntl.cc b/winsup/cygwin/fcntl.cc index 3b609442a..793e432e7 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: -- cgit v1.2.3