Home
last modified time | relevance | path

Searched refs:fcntl (Results 76 – 100 of 320) sorted by relevance

12345678910>>...13

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dtruncate.c64 if (fcntl(fildes, F_FREESP, &lck) == -1) { in ftruncate()
H A Dgetut.c328 if ((fc = fcntl(fd, F_GETFL, NULL)) == -1 || (fc & O_RDWR) != O_RDWR) in _compat_pututline()
351 (void) fcntl(fd, F_SETFL, fc | O_APPEND); in _compat_pututline()
383 (void) fcntl(fd, F_SETFL, fc); in _compat_pututline()
H A Dfdopendir.c62 if (fcntl(fd, F_SETFD, FD_CLOEXEC) < 0) in fdopendir()
H A Dclosefrom.c95 if (fcntl(i, F_GETFD) < 0) in fdwalk()
H A Dlfmt_log.c93 fcntl(fd, F_SETFD, 1) == -1)) in __lfmt_log()
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dfdopen.c62 if (fcntl(fd, F_GETFD) == -1) in fdopen()
/illumos-gate/usr/src/lib/libadm/common/
H A Dputdgrp.c321 while ((fcntl(fileno(oam_dgroup), F_SETLK, &lockinfo) == -1) && in lkdgrptab()
333 if (fcntl(fileno(oam_dgroup), F_SETLKW, in lkdgrptab()
384 noerr = (fcntl(fileno(oam_dgroup), F_SETLK, &lockinfo) != -1); in unlkdgrptab()
/illumos-gate/usr/src/lib/libpkg/common/
H A Ddstream.c723 oflag = fcntl(ds_fd, F_GETFL, 0); in ds_ginit()
730 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/lib/libcmd/
H A Dfds.c231 if ((flags = fcntl(i, F_GETFL, (char*)0)) == -1) in b_fds()
249 x = (fcntl(i, F_GETFD, (char*)0) > 0) ? "x" : "-"; in b_fds()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/dir/
H A Dopendir.c59 fcntl(fd, F_SETFD, FD_CLOEXEC) ||
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/
H A Dilbd_main.c194 if (fcntl(s, F_SETFD, FD_CLOEXEC) == -1) { in ilbd_create_client_socket()
608 if ((sflags = fcntl(new_sd, F_GETFL, 0)) == -1) { in new_req()
612 if (fcntl(new_sd, F_SETFL, sflags | O_NONBLOCK) == -1) { in new_req()
616 if (fcntl(new_sd, F_SETFD, FD_CLOEXEC) == -1) { in new_req()
/illumos-gate/usr/src/cmd/vscan/vscand/
H A Dvs_main.c423 (void) fcntl(fd, F_DUP2FD, STDIN_FILENO); in vscand_daemonize_fini()
424 (void) fcntl(fd, F_DUP2FD, STDOUT_FILENO); in vscand_daemonize_fini()
425 (void) fcntl(fd, F_DUP2FD, STDERR_FILENO); in vscand_daemonize_fini()
/illumos-gate/usr/src/test/zfs-tests/cmd/randfree_file/
H A Drandfree_file.c102 if (fcntl(fd, F_FREESP, &fl) != 0) { in main()
/illumos-gate/usr/src/cmd/bhyve/test/tests/mevent/
H A Dread_requeue.c85 if (fcntl(pipefds[0], F_SETFL, O_NONBLOCK) != 0) { in main()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dlock_file.c111 if (fcntl(fd, lock_cmd, &lock_arg) == -1) { in krb5_lock_file()
/illumos-gate/usr/src/cmd/lp/filter/postscript/postio/
H A Difdef.c107 if ( fcntl(ttyi, F_SETFL, O_NDELAY) == -1 ) { in setupline()
175 if ( (flags = fcntl(ttyi, F_GETFL, 0)) == -1 ) in resetline()
180 if ( fcntl(ttyi, F_SETFL, flags) == -1 ) in resetline()
/illumos-gate/usr/src/cmd/sh/
H A Dmain.c472 fcntl(fa, 0, fb); /* normal dup */ in Ldup()
475 fcntl(fb, 2, 1); /* autoclose for fb */ in Ldup()
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_ndpd.c271 flags = fcntl(fd, F_GETFL, 0); in i_ipadm_send_ndpd_cmd()
273 (void) fcntl(fd, F_SETFL, flags | O_NONBLOCK); in i_ipadm_send_ndpd_cmd()
/illumos-gate/usr/src/lib/libnsl/nsl/
H A D_utility.c367 cntlflag = fcntl(fd, F_GETFL, 0); in _t_is_ok()
369 (void) fcntl(fd, F_SETFL, cntlflag & ~(O_NDELAY | O_NONBLOCK)); in _t_is_ok()
377 (void) fcntl(fd, F_SETFL, cntlflag); in _t_is_ok()
385 (void) fcntl(fd, F_SETFL, cntlflag); in _t_is_ok()
396 (void) fcntl(fd, F_SETFL, cntlflag); in _t_is_ok()
403 (void) fcntl(fd, F_SETFL, cntlflag); in _t_is_ok()
/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/lib/libzonecfg/common/
H A Dgetzoneent.c222 if (fcntl(lock_fd, F_SETLKW, &lock) == -1) { in lock_index_file()
240 if (fcntl(lock_fd, F_SETLK, &lock) == -1) in unlock_index_file()
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_open.c112 if (fcntl(*fdp, F_SETFD, 1) == -1) {
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_fcntl.c46 return (fcntl(fd, cmd, argp)); in pr_fcntl()
/illumos-gate/usr/src/head/
H A Dfcntl.h131 extern int fcntl(int, int, ...);

12345678910>>...13