Home
last modified time | relevance | path

Searched refs:dupfd (Results 1 – 11 of 11) sorted by relevance

/titanic_51/usr/src/lib/libast/common/sfio/
H A Dsfsetfd.c37 reg int dupfd; local
40 while((dupfd = sysfcntlf(fd,F_DUPFD,newfd)) < 0 && errno == EINTR)
42 return dupfd;
45 if((dupfd = sysdupf(fd)) < 0 || dupfd >= newfd)
46 return dupfd;
52 CLOSE(dupfd);
/titanic_51/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfsetfd.c37 reg int dupfd; local
40 while((dupfd = sysfcntlf(fd,F_DUPFD,newfd)) < 0 && errno == EINTR)
42 return dupfd;
45 if((dupfd = sysdupf(fd)) < 0 || dupfd >= newfd)
46 return dupfd;
52 CLOSE(dupfd);
/titanic_51/usr/src/uts/common/syscall/
H A Dopen.c67 int fd, dupfd; in copen() local
245 dupfd = getminor(vp->v_rdev); in copen()
253 if ((fp = getf(dupfd)) == NULL) { in copen()
264 releasef(dupfd); in copen()
/titanic_51/usr/src/cmd/sendmail/libmilter/
H A Dlistener.c721 socket_t dupfd = INVALID_SOCKET; local
879 dupfd = fcntl(connfd, F_DUPFD, 256);
880 if (ValidSocket(dupfd) && SM_FD_OK_SELECT(dupfd))
883 connfd = dupfd;
884 dupfd = INVALID_SOCKET;
/titanic_51/usr/src/cmd/sh/
H A Dio.c400 int dupfd; in restore() local
403 if ((dupfd = fdmap[i].dup_fd) > 0) in restore()
404 renamef(dupfd, fdmap[i].org_fd); in restore()
/titanic_51/usr/src/lib/libshell/common/sh/
H A Dio.c1057 int dupfd,toclose= -1; in sh_redirect() local
1062 dupfd = strtol(fname,&number,10); in sh_redirect()
1065 toclose = dupfd; in sh_redirect()
1068 if(*number || dupfd > IOUFD) in sh_redirect()
1073 if(shp->subshell && dupfd==1 && (sfset(sfstdout,0,0)&SF_STRING)) in sh_redirect()
1076 dupfd = sffileno(sfstdout); in sh_redirect()
1078 else if(shp->sftable[dupfd]) in sh_redirect()
1079 sfsync(shp->sftable[dupfd]); in sh_redirect()
1089 dupfd = shp->coutpipe; in sh_redirect()
1091 dupfd = shp->cpipe[0]; in sh_redirect()
[all …]
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dio.c1268 int dupfd,toclose= -1; in sh_redirect() local
1273 dupfd = strtol(fname,&number,10); in sh_redirect()
1276 toclose = dupfd; in sh_redirect()
1279 if(*number || dupfd > IOUFD) in sh_redirect()
1284 VALIDATE_FD(shp, dupfd); in sh_redirect()
1285 if(shp->subshell && dupfd==1) in sh_redirect()
1291 dupfd = sffileno(sfstdout); in sh_redirect()
1293 else if(shp->sftable[dupfd]) in sh_redirect()
1294 sfsync(shp->sftable[dupfd]); in sh_redirect()
1295 if(dupfd! in sh_redirect()
[all...]
/titanic_51/usr/src/lib/libbc/libc/gen/common/
H A Dsetlocale.c665 int dupfd; in openlocale() local
667 if ((dupfd = dup(fd)) < 1) { in openlocale()
672 fd = dupfd; in openlocale()
/titanic_51/usr/src/lib/libproc/common/
H A DPcontrol.c68 static int minfd; /* minimum file descriptor returned by dupfd(fd, 0) */
356 * Call set_minfd() once before calling dupfd() several times.
385 dupfd(int fd, int dfd) in dupfd() function
508 (fd = dupfd(fd, 0)) < 0) { in Pxcreate()
518 (fd = dupfd(fd, 0)) < 0) { in Pxcreate()
528 (fd = dupfd(fd, 0)) < 0) { in Pxcreate()
816 (fd = dupfd(fd, 0)) < 0) { in Pgrab()
846 (fd = dupfd(fd, 0)) < 0) { in Pgrab()
867 (fd = dupfd(fd, 0)) < 0) { in Pgrab()
1472 (fd = dupfd(f in Preopen()
[all...]
H A DPsyscall.c140 (fd = dupfd(fd, 0)) < 0) in Pcreate_agent()
146 (fd = dupfd(fd, 0)) < 0) in Pcreate_agent()
H A DPcontrol.h265 extern int dupfd(int, int);