Rename hinfo -> dtable. Name the former dtable array 'fdtab'.

This commit is contained in:
Christopher Faylor
2000-08-12 04:48:44 +00:00
parent 86bf05d540
commit 9015e0fb8c
22 changed files with 183 additions and 179 deletions

View File

@ -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: