Home
last modified time | relevance | path

Searched refs:O_CLOEXEC (Results 1 – 25 of 30) sorted by relevance

12

/f-stack/tools/libutil/
H A Duucplock.c78 if ((tmpfd = open(lcktmpname, O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC, in uu_lock()
91 if ((fd = open(lckname, O_RDONLY | O_CLOEXEC)) < 0) in uu_lock()
135 if ((fd = open(lckname, O_RDWR | O_CLOEXEC)) < 0) in uu_lock_txfr()
H A Dpidfile.c82 fd = openat(dirfd, filename, O_RDONLY | O_CLOEXEC); in pidfile_read()
141 dirfd = open(pfh->pf_dir, O_CLOEXEC | O_DIRECTORY | O_NONBLOCK); in pidfile_open()
156 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC | O_NONBLOCK, mode); in pidfile_open()
H A Dlogin_auth.c101 if ((fd = open(file, O_RDONLY | O_CLOEXEC)) < 0) in auth_cat()
H A Dquotafile.c152 if ((qf->fd = open(qf->qfname, qf->accmode|O_CLOEXEC)) < 0 && in quota_open()
183 if ((qf->fd = open(qf->qfname, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, 0)) < in quota_open()
550 if ((newqf->fd = open(qf->qfname, O_RDWR|O_CREAT|O_TRUNC|O_CLOEXEC, in quota_convert()
H A Dlogin_cap.c242 else if ((r = open(login_dbarray[0], O_RDONLY | O_CLOEXEC)) >= 0) in login_getclassbyname()
H A Dpw_util.c179 lockfd = flopen(masterpasswd, O_RDONLY|O_NONBLOCK|O_CLOEXEC, 0); in pw_lock()
H A Dgr_util.c106 lockfd = flopen(group_file, O_RDONLY|O_NONBLOCK|O_CLOEXEC, 0); in gr_lock()
/f-stack/app/redis-5.0.5/deps/jemalloc/src/
H A Dpages.c441 #if defined(O_CLOEXEC) in os_overcommits_proc()
443 O_CLOEXEC); in os_overcommits_proc()
451 #if defined(O_CLOEXEC) in os_overcommits_proc()
453 AT_FDCWD, "/proc/sys/vm/overcommit_memory", O_RDONLY | O_CLOEXEC); in os_overcommits_proc()
462 #if defined(O_CLOEXEC) in os_overcommits_proc()
463 fd = open("/proc/sys/vm/overcommit_memory", O_RDONLY | O_CLOEXEC); in os_overcommits_proc()
H A Dprof.c1413 #if defined(O_CLOEXEC) in prof_open_maps()
1414 mfd = open(filename, O_RDONLY | O_CLOEXEC); in prof_open_maps()
/f-stack/freebsd/contrib/zlib/
H A Dgzlib.c102 #ifdef O_CLOEXEC
147 #ifdef O_CLOEXEC
230 #ifdef O_CLOEXEC
231 (cloexec ? O_CLOEXEC : 0) |
/f-stack/freebsd/contrib/zstd/zlibWrapper/
H A Dgzlib.c102 #ifdef O_CLOEXEC
147 #ifdef O_CLOEXEC
230 #ifdef O_CLOEXEC
231 (cloexec ? O_CLOEXEC : 0) |
/f-stack/freebsd/sys/
H A Dfcntl.h133 #define O_CLOEXEC 0x00100000 macro
/f-stack/tools/libxo/libxo/
H A Dxo_syslog.c258 #ifdef O_CLOEXEC in xo_send_syslog()
259 flags |= O_CLOEXEC; in xo_send_syslog()
/f-stack/freebsd/contrib/openzfs/cmd/mount_zfs/
H A Dmount_zfs.c56 int fd = open(target, O_RDONLY | O_CLOEXEC); in parse_dataset()
/f-stack/freebsd/kern/
H A Dsys_eventfd.c57 _Static_assert(EFD_CLOEXEC == O_CLOEXEC, "Mismatched EFD_CLOEXEC");
H A Dsys_procdesc.c244 fflags = O_CLOEXEC; in procdesc_falloc()
H A Duipc_syscalls.c145 oflag |= O_CLOEXEC; in kern_socket()
354 (flags & SOCK_CLOEXEC) ? O_CLOEXEC : 0, &fcaps); in kern_accept4()
580 oflag |= O_CLOEXEC; in kern_socketpair()
H A Duipc_shm.c1066 if ((flags & ~(O_ACCMODE | O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC)) != 0) in kern_shm_open2()
1094 error = falloc_caps(td, &fp, &fd, flags & O_CLOEXEC, fcaps); in kern_shm_open2()
1241 return (kern_shm_open(td, uap->path, uap->flags | O_CLOEXEC, in freebsd12_shm_open()
H A Dtty_pts.c848 if (uap->flags & ~(O_RDWR|O_NOCTTY|O_CLOEXEC)) in sys_posix_openpt()
H A Duipc_sem.c486 error = falloc(td, &fp, &fd, O_CLOEXEC); in ksem_create()
H A Dsys_pipe.c518 if (uap->flags & ~(O_CLOEXEC | O_NONBLOCK)) in sys_pipe2()
H A Dsys_generic.c880 fflags |= O_CLOEXEC; in kern_specialfd()
H A Duipc_mqueue.c2056 error = falloc(td, &fp, &fd, O_CLOEXEC); in kern_kmq_open()
/f-stack/freebsd/contrib/openzfs/contrib/pam_zfs_key/
H A Dpam_zfs_key.c551 O_RDWR | O_CLOEXEC | O_CREAT | O_NOFOLLOW, in zfs_key_config_modify_session_counter()
/f-stack/freebsd/contrib/openzfs/lib/libzfs/
H A Dlibzfs_mount.c159 O_RDONLY | O_NDELAY | O_LARGEFILE | O_CLOEXEC, 0)) < 0) { in dir_is_empty_readdir()

12