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/pipe.cc | |
parent | 86bf05d54094008ba6e8a1c692d4a71879ee6590 (diff) | |
download | cygnal-9015e0fb8c0fbb98f919dd3726ddbc97e46bd9fd.tar.gz cygnal-9015e0fb8c0fbb98f919dd3726ddbc97e46bd9fd.tar.bz2 cygnal-9015e0fb8c0fbb98f919dd3726ddbc97e46bd9fd.zip |
Rename hinfo -> dtable. Name the former dtable array 'fdtab'.
Diffstat (limited to 'winsup/cygwin/pipe.cc')
-rw-r--r-- | winsup/cygwin/pipe.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc index b601bf690..951e9f431 100644 --- a/winsup/cygwin/pipe.cc +++ b/winsup/cygwin/pipe.cc @@ -22,16 +22,16 @@ make_pipe (int fildes[2], unsigned int psize, int mode) int fdr, fdw; SECURITY_ATTRIBUTES *sa = (mode & O_NOINHERIT) ? &sec_none_nih : &sec_none; - if ((fdr = dtable.find_unused_handle ()) < 0) + if ((fdr = fdtab.find_unused_handle ()) < 0) set_errno (ENMFILE); - else if ((fdw = dtable.find_unused_handle (fdr + 1)) < 0) + else if ((fdw = fdtab.find_unused_handle (fdr + 1)) < 0) set_errno ( ENMFILE); else if (!CreatePipe (&r, &w, sa, psize)) __seterrno (); else { - fhandler_base *fhr = dtable.build_fhandler (fdr, FH_PIPER, "/dev/piper"); - fhandler_base *fhw = dtable.build_fhandler (fdw, FH_PIPEW, "/dev/pipew"); + fhandler_base *fhr = fdtab.build_fhandler (fdr, FH_PIPER, "/dev/piper"); + fhandler_base *fhw = fdtab.build_fhandler (fdw, FH_PIPEW, "/dev/pipew"); int binmode = mode & O_TEXT ? 0 : 1; fhr->init (r, GENERIC_READ, binmode); @@ -69,7 +69,7 @@ _pipe (int filedes[2], unsigned int psize, int mode) int res = make_pipe (filedes, psize, mode); /* This type of pipe is not interruptible so set the appropriate flag. */ if (!res) - dtable[filedes[0]]->set_r_no_interrupt (1); + fdtab[filedes[0]]->set_r_no_interrupt (1); return res; } @@ -79,7 +79,7 @@ dup (int fd) int res; SetResourceLock(LOCK_FD_LIST,WRITE_LOCK|READ_LOCK," dup"); - res = dup2 (fd, dtable.find_unused_handle ()); + res = dup2 (fd, fdtab.find_unused_handle ()); ReleaseResourceLock(LOCK_FD_LIST,WRITE_LOCK|READ_LOCK," dup"); @@ -89,5 +89,5 @@ dup (int fd) int dup2 (int oldfd, int newfd) { - return dtable.dup2 (oldfd, newfd); + return fdtab.dup2 (oldfd, newfd); } |