Home
last modified time | relevance | path

Searched refs:F_DUPFD (Results 1 – 25 of 42) sorted by relevance

12

/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dfcntl.c106 #ifndef F_DUPFD in main()
109 if (F_DUPFD > f_local) f_local = F_DUPFD; in main()
171 #ifndef F_DUPFD in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dfcntl.c63 #if F_DUPFD >= _ast_F_LOCAL
64 case F_DUPFD:
H A Ddup2.c43 return(fcntl(d1, F_DUPFD, d2));
/illumos-gate/usr/src/lib/libgen/common/
H A Dp2open.c88 (void) fcntl(tocmd[0], F_DUPFD, 0); in __p2open()
92 (void) fcntl(fromcmd[1], F_DUPFD, 1); in __p2open()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfsetfd.c39 #ifdef F_DUPFD /* the simple case */
40 while((dupfd = sysfcntlf(fd,F_DUPFD,newfd)) < 0 && errno == EINTR)
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dprocopen.c181 if (fcntl(arg1, F_DUPFD, arg2) != arg2) in modify()
204 if (arg1 != i && arg2 != i && fcntl(arg1, F_DUPFD, i) != i) in modify()
267 #if F_dupfd_cloexec == F_DUPFD in modify()
271 if (fcntl(arg1, F_DUPFD, arg2) != arg2) in modify()
354 fcntl(m->arg.fd.child.fd, F_DUPFD, m->arg.fd.parent.fd); in restore()
359 fcntl(m->save, F_DUPFD, m->arg.fd.child.fd); in restore()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dsuid_exec.c200 if(fcntl(n,F_DUPFD,FDIN) != FDIN) in main()
390 if(fcntl(n,F_DUPFD,FDVERIFY) != FDVERIFY) in setids()
452 if(fcntl(pv[1],F_DUPFD,FDSYNC) != FDSYNC) in setids()
H A Dsubshell.c125 if((sp->tmpfd = fd = fcntl(1,F_DUPFD,10)) >= 0) in sh_subtmpfile()
149 if((sh_fcntl(fds[1],F_DUPFD, 1)) != 1) in sh_subtmpfile()
563 sp->pwdfd = fcntl(n,F_DUPFD,10); in sh_subshell()
701 if (fcntl(sp->tmpfd,F_DUPFD,1) != 1) in sh_subshell()
H A Dio.c599 fd = sh_fcntl(f2,F_DUPFD,10); in io_preserve()
666 if((f2 = sh_fcntl(f1,F_DUPFD, f2)) < 0) in sh_iorenumber()
942 if((pv[out]=sh_fcntl(fd,F_DUPFD,10)) >=10) in sh_coaccept()
1319 if((fd=sh_fcntl(dupfd,F_DUPFD,3))<0) in sh_redirect()
1507 if((r=sh_fcntl(fd,F_DUPFD,10)) > 0) in sh_redirect()
1538 if((fn=fcntl(fd,F_DUPFD,10)) < 0) in sh_redirect()
1718 if((savefd = sh_fcntl(origfd, F_DUPFD, 10)) < 0 && errno!=EBADF) in sh_iosave()
1818 sh_fcntl(savefd, F_DUPFD, origfd); in sh_iorestore()
2613 case F_DUPFD: in sh_fcntl()
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmlog.c66 if ((ret = fcntl(fd, F_DUPFD, 3)) == 3) { in openttymonlog()
238 if ((ret = fcntl(fd, F_DUPFD, 3)) < 0) in opendebug()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Ddup.c41 return (fcntl(fildes, F_DUPFD, 0)); in dup()
/illumos-gate/usr/src/lib/libmail/common/
H A Dpopenvp.c83 (void) fcntl(yourside, F_DUPFD, stdio); in popenvp()
/illumos-gate/usr/src/tools/cscope-fast/
H A Dmypopen.c73 (void) fcntl(yourside, F_DUPFD, stdio); in mypopen()
/illumos-gate/usr/src/ucbhead/sys/
H A Dfcntl.h74 #define F_DUPFD 0 /* Duplicate fildes */ macro
/illumos-gate/usr/src/lib/libpkg/common/
H A Ddstream.c730 fd2 = fcntl(fd, F_DUPFD, fd); in ds_ginit()
732 (void) fcntl(ds_fd, F_DUPFD, fd); in ds_ginit()
745 (void) fcntl(fd2, F_DUPFD, fd); in ds_ginit()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dmkservice.c287 fd = fcntl(accept_fd, F_DUPFD, 10); in Accept()
449 if((sp->fd = fcntl(fd, F_DUPFD, 10))>=10) in b_mkservice()
/illumos-gate/usr/src/boot/sys/sys/
H A Dfcntl.h218 #define F_DUPFD 0 /* duplicate file descriptor */ macro
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Dhistory.c154 if((n = fcntl(acctfd, F_DUPFD, 10)) >= 0) in acctinit()
273 if((n=fcntl(fd,F_DUPFD,10))>=0) in sh_histinit()
389 if((n = sh_fcntl(fd,F_DUPFD, 10)) >= 0) in sh_histinit()
1201 if(fcntl(newfd, F_DUPFD, oldfd) !=oldfd) in hist_exceptf()
/illumos-gate/usr/src/uts/common/sys/
H A Dfcntl.h101 #define F_DUPFD 0 /* Duplicate fildes */ macro
/illumos-gate/usr/src/lib/udapl/udapl_tavor/tavor/
H A Ddapl_tavor_hca.c249 tmpfd = fcntl(fd, F_DUPFD, 256); in dapli_process_tavor_node()
503 tmpfd = fcntl(fd, F_DUPFD, 256); in dapls_ib_open_hca()
/illumos-gate/usr/src/lib/brand/shared/brand/common/
H A Dbrand_util.c294 fd_new = fcntl(fd, F_DUPFD, 0); in brand_close_fh()
/illumos-gate/usr/src/cmd/sh/
H A Dio.c390 f = fcntl(fd, F_DUPFD, 10); in savefd()
/illumos-gate/usr/src/cmd/truss/
H A Dmain.c2009 int dfd = fcntl(fd, F_DUPFD, 3); in xcreat()
2028 (void) fcntl(2, F_DUPFD, 1); in setoutput()
2031 (void) fcntl(ofd, F_DUPFD, 1); in setoutput()
2035 (void) fcntl(1, F_DUPFD, 2); in setoutput()
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_deleted.c172 return (__systemcall(rval, SYS_fcntl + 1024, fd, F_DUPFD, 0)); in s10_dup()
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dns_files.c576 if (fcntl(p[1], F_DUPFD, 1) != 1) { in read_execout()

12