Home
last modified time | relevance | path

Searched refs:fcntl (Results 101 – 125 of 320) sorted by relevance

12345678910>>...13

/illumos-gate/usr/src/cmd/bhyve/test/tests/mevent/
H A Dread_pause.c116 if (fcntl(pipefds[0], F_SETFL, O_NONBLOCK) != 0) { in main()
H A Dread_disable.c116 if (fcntl(pipefds[0], F_SETFL, O_NONBLOCK) != 0) { in main()
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_connect.c116 if ((fctlflg = fcntl(fd, F_GETFL, 0)) < 0) { in _tx_connect()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_context.c85 (void) fcntl(zfd, F_SETFD, FD_CLOEXEC); in mdb_context_create()
H A Dmdb_shell.c76 (void) fcntl(fd, F_SETFD, FD_CLOEXEC); in closefd_walk()
/illumos-gate/usr/src/cmd/bhyve/
H A Dblock_if.c426 if (fcntl(bc->bc_fd, F_FREESP, &fl)) in blockif_proc()
748 if ((flags = fcntl(fd, F_GETFL)) >= 0) { in blockif_open()
750 if (fcntl(fd, F_SETFL, flags) != -1) { in blockif_open()
1199 if ((flags = fcntl(bc->bc_fd, F_GETFL)) >= 0) { in blockif_set_wce()
1205 if (fcntl(bc->bc_fd, F_SETFL, flags) == -1) { in blockif_set_wce()
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dirp.c213 flags = fcntl(pvt->fdCxn, F_GETFL, 0); in irs_irp_connect()
222 if (fcntl(pvt->fdCxn, F_SETFL, flags) < 0) { in irs_irp_connect()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dconf.c1513 if ((j = fcntl(kmem, F_GETFD, 0)) < 0 || in getla()
1514 fcntl(kmem, F_SETFD, j | FD_CLOEXEC) < 0) in getla()
1598 if ((j = fcntl(kmem, F_GETFD, 0)) < 0 || in getla()
1836 if ((j = fcntl(kmem, F_GETFD, 0)) < 0 || in getla()
2556 if ((j = fcntl(kmem, F_GETFD, 0)) < 0 ||
2938 return fcntl(fd, F_SETFL, O_SYNC);
3596 int omode = fcntl(fd, F_GETFL, 0);
3626 int omode = fcntl(fd, F_GETFL, 0);
5244 (void) fcntl(fd, F_SETFD, FD_CLOEXEC);
5270 if ((j = fcntl(i, F_GETFD, 0)) != -1)
[all …]
/illumos-gate/usr/src/ucbhead/sys/
H A Dfcntl.h235 extern int fcntl(int, int, ...);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmain.c479 fdflags = fcntl(0, F_GETFL);
690 if ((fdflags = fcntl(ttyfd, F_GETFL)) == -1
691 || fcntl(ttyfd, F_SETFL, fdflags & ~O_NONBLOCK) < 0)
2708 flags = fcntl(pty_master, F_GETFL);
2710 || fcntl(pty_master, F_SETFL, flags | O_NONBLOCK) == -1)
2712 flags = fcntl(ifd, F_GETFL);
2714 || fcntl(ifd, F_SETFL, flags | O_NONBLOCK) == -1)
2717 flags = fcntl(ofd, F_GETFL);
2719 || fcntl(ofd, F_SETFL, flags | O_NONBLOCK) == -1)
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Diod_cl.c120 (void) fcntl(fd, F_SETFD, FD_CLOEXEC); in smb_iod_open_door()
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_cache_door.c137 (void) fcntl(doorfd, F_SETFD, FD_CLOEXEC); in __ns_ldap_trydoorcall_getfd()
/illumos-gate/usr/src/cmd/stat/common/
H A Dmnt.c93 (void) fcntl(fileno(mpt), F_SETLKW, &lb); in do_mnttab()
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dmsgs.c180 if (fcntl(fd, F_GETFL, 0) != -1) in calculate_nopen()
/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/contrib/ast/src/lib/libast/features/
H A Dtvlib5 #include <fcntl.h>
/illumos-gate/usr/src/lib/libadm/common/
H A Dputdev.c345 while ((fcntl(fileno(oam_devtab), F_SETLK, &lockinfo) == -1) && in lkdevtab()
348 if (fcntl(fileno(oam_devtab), F_SETLKW, &lockinfo) == -1) in lkdevtab()
392 noerr = (fcntl(fileno(oam_devtab), F_SETLK, &lockinfo) != -1); in unlkdevtab()
H A Ddevreserv.c271 if (fcntl(lkfilefd, F_SETLK, &lkinfo) != -1) locked = TRUE; in locklkfile()
617 noerr = (fcntl(lkfilefd, F_SETLK, &lkinfo) != -1); in freelkfile()
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dlistener.c455 if ((fdflags = fcntl(sock, F_GETFD, 0)) == -1 ||
456 fcntl(sock, F_SETFD, fdflags | FD_CLOEXEC) == -1)
879 dupfd = fcntl(connfd, F_DUPFD, 256);
/illumos-gate/usr/src/test/os-tests/tests/file-locking/
H A Druntests.c105 if (fcntl(lf->lf_fd, cmd, fl) == -1) { in flock_fcntl()
414 VERIFY3S(fcntl(lf->lf_fd, cmd, &fl), ==, -1); in flock_test_invalid()
432 VERIFY3S(fcntl(lf->lf_fd, cmd, &fl), ==, -1); in flock_test_invalid64()
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dclnt_simple.c146 (void) fcntl(fd, F_SETFD, 1); /* close on exec */ in rpc_call()
/illumos-gate/usr/src/boot/sys/sys/
H A Dfcntl.h318 int fcntl(int, int, ...);
/illumos-gate/usr/src/cmd/fm/modules/common/ip-transport/
H A Dip.c477 (void) fcntl(ipx->ipx_fd, F_SETFL, in ip_xprt_thread()
478 fcntl(ipx->ipx_fd, F_GETFL, 0) & ~O_NONBLOCK); in ip_xprt_thread()
629 oflags = fcntl(fd, F_GETFL, 0); in ip_xprt_setup()
630 (void) fcntl(fd, F_SETFL, oflags | O_NONBLOCK); in ip_xprt_setup()
/illumos-gate/usr/src/cmd/bnu/
H A Dcallers.c326 if ( fcntl(dcf, F_SETFL,
327 (fcntl(dcf, F_GETFL, 0) & ~O_NDELAY)) < 0 ) {
984 (void) fcntl(dcf,F_SETFL, fcntl(dcf, F_GETFL, 0) & ~O_NDELAY);
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioUnixfile.cc243 flag = fcntl(getfd(), F_GETFL, 0); in SetBlocking()
252 if (fcntl(getfd(), F_SETFL, flag) < 0) { in SetBlocking()

12345678910>>...13