Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-08-12 08:48:44 +0400
committerChristopher Faylor <me@cgf.cx>2000-08-12 08:48:44 +0400
commit9015e0fb8c0fbb98f919dd3726ddbc97e46bd9fd (patch)
tree14cc365950ecf7a837508a410cf4dd0fa4ab3b97 /winsup/cygwin/pipe.cc
parent86bf05d54094008ba6e8a1c692d4a71879ee6590 (diff)
Rename hinfo -> dtable. Name the former dtable array 'fdtab'.
Diffstat (limited to 'winsup/cygwin/pipe.cc')
-rw-r--r--winsup/cygwin/pipe.cc14
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);
}