| /f-stack/app/nginx-1.16.1/src/os/unix/ |
| H A D | ngx_socket.h | 33 #define ngx_nonblocking(s) fcntl(s, F_SETFL, fcntl(s, F_GETFL) | O_NONBLOCK) 36 #define ngx_blocking(s) fcntl(s, F_SETFL, fcntl(s, F_GETFL) & ~O_NONBLOCK)
|
| H A D | ngx_files.c | 767 if (fcntl(fd, F_SETLK, &fl) == -1) { in ngx_trylock_fd() 784 if (fcntl(fd, F_SETLKW, &fl) == -1) { in ngx_lock_fd() 801 if (fcntl(fd, F_SETLK, &fl) == -1) { in ngx_unlock_fd() 836 flags = fcntl(fd, F_GETFL); in ngx_directio_on() 842 return fcntl(fd, F_SETFL, flags | O_DIRECT); in ngx_directio_on() 851 flags = fcntl(fd, F_GETFL); in ngx_directio_off() 857 return fcntl(fd, F_SETFL, flags & ~O_DIRECT); in ngx_directio_off()
|
| H A D | ngx_process.c | 153 if (fcntl(ngx_processes[s].channel[0], F_SETOWN, ngx_pid) == -1) { in ngx_spawn_process() 160 if (fcntl(ngx_processes[s].channel[0], F_SETFD, FD_CLOEXEC) == -1) { in ngx_spawn_process() 168 if (fcntl(ngx_processes[s].channel[1], F_SETFD, FD_CLOEXEC) == -1) { in ngx_spawn_process()
|
| /f-stack/freebsd/contrib/openzfs/cmd/zed/ |
| H A D | zed_file.c | 101 if (fcntl(fd, F_SETLK, &lock) < 0) { in zed_file_lock() 128 if (fcntl(fd, F_SETLK, &lock) < 0) in zed_file_unlock() 154 if (fcntl(fd, F_GETLK, &lock) < 0) in zed_file_is_locked() 207 flags = fcntl(fd, F_GETFD); in zed_file_close_on_exec() 213 if (fcntl(fd, F_SETFD, flags) == -1) in zed_file_close_on_exec()
|
| H A D | zed_disk_event.c | 371 if ((fflags = fcntl(fd, F_GETFL)) & O_NONBLOCK) in zed_disk_event_init() 372 (void) fcntl(fd, F_SETFL, fflags & ~O_NONBLOCK); in zed_disk_event_init()
|
| /f-stack/freebsd/contrib/openzfs/lib/libzfs/os/linux/ |
| H A D | libzfs_sendrecv_os.c | 44 cur_psize = fcntl(infd, F_GETPIPE_SZ); in libzfs_set_pipe_max() 47 fcntl(infd, F_SETPIPE_SZ, in libzfs_set_pipe_max()
|
| /f-stack/dpdk/drivers/common/sfc_efx/base/ |
| H A D | ef10_phy.c | 100 __in unsigned int fcntl, in mcdi_phy_decode_link_mode() argument 134 if (fcntl == MC_CMD_FCNTL_OFF) in mcdi_phy_decode_link_mode() 136 else if (fcntl == MC_CMD_FCNTL_RESPOND) in mcdi_phy_decode_link_mode() 138 else if (fcntl == MC_CMD_FCNTL_GENERATE) in mcdi_phy_decode_link_mode() 140 else if (fcntl == MC_CMD_FCNTL_BIDIR) in mcdi_phy_decode_link_mode() 143 EFSYS_PROBE1(mc_pcol_error, int, fcntl); in mcdi_phy_decode_link_mode() 174 unsigned int fcntl; in ef10_phy_link_ev() local 214 &fcntl, &fec); in ef10_phy_link_ev() 230 epp->ep_fcntl = fcntl; in ef10_phy_link_ev()
|
| H A D | siena_phy.c | 49 __in unsigned int fcntl, in siena_phy_decode_link_mode() argument 73 if (fcntl == MC_CMD_FCNTL_OFF) in siena_phy_decode_link_mode() 75 else if (fcntl == MC_CMD_FCNTL_RESPOND) in siena_phy_decode_link_mode() 77 else if (fcntl == MC_CMD_FCNTL_BIDIR) in siena_phy_decode_link_mode() 80 EFSYS_PROBE1(mc_pcol_error, int, fcntl); in siena_phy_decode_link_mode() 94 unsigned int fcntl; in siena_phy_link_ev() local 120 &link_mode, &fcntl); in siena_phy_link_ev() 137 epp->ep_fcntl = fcntl; in siena_phy_link_ev()
|
| H A D | siena_mac.c | 75 unsigned int fcntl; in siena_mac_reconfigure() local 94 fcntl = MC_CMD_FCNTL_AUTO; in siena_mac_reconfigure() 96 fcntl = (epp->ep_fcntl & EFX_FCNTL_GENERATE) in siena_mac_reconfigure() 100 fcntl = MC_CMD_FCNTL_OFF; in siena_mac_reconfigure() 102 MCDI_IN_SET_DWORD(req, SET_MAC_IN_FCNTL, fcntl); in siena_mac_reconfigure()
|
| H A D | efx_mac.c | 316 __in unsigned int fcntl, in efx_mac_fcntl_set() argument 330 if ((fcntl & ~(EFX_FCNTL_RESPOND | EFX_FCNTL_GENERATE)) != 0) { in efx_mac_fcntl_set() 346 epp->ep_fcntl = fcntl; in efx_mac_fcntl_set() 354 if (fcntl & EFX_FCNTL_RESPOND) in efx_mac_fcntl_set() 361 if (fcntl & EFX_FCNTL_GENERATE) in efx_mac_fcntl_set()
|
| /f-stack/app/redis-5.0.5/deps/jemalloc/src/ |
| H A D | pages.c | 447 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc() 458 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc() 467 fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in os_overcommits_proc()
|
| /f-stack/dpdk/drivers/net/mlx4/ |
| H A D | mlx4_utils.c | 34 int ret = fcntl(fd, F_GETFL); in mlx4_fd_set_non_blocking() 36 if (ret != -1 && !fcntl(fd, F_SETFL, ret | O_NONBLOCK)) in mlx4_fd_set_non_blocking()
|
| /f-stack/freebsd/contrib/openzfs/contrib/pyzfs/libzfs_core/ |
| H A D | _libzfs_core.py | 33 import fcntl 1742 fcntl.fcntl(rfd, fcntl.F_SETFD, fcntl.FD_CLOEXEC) 1743 fcntl.fcntl(wfd, fcntl.F_SETFD, fcntl.FD_CLOEXEC)
|
| /f-stack/dpdk/examples/ipsec-secgw/test/ |
| H A D | pkttest.py | 4 import fcntl 59 …info = fcntl.ioctl(self.s.fileno(), Interface.IOCTL_GET_INFO, struct.pack('256s', bytes(ifname[:1…
|
| /f-stack/dpdk/lib/librte_power/ |
| H A D | guest_channel.c | 84 flags = fcntl(fd, F_GETFL, 0); in guest_channel_host_connect() 92 if (fcntl(fd, F_SETFL, flags) < 0) { in guest_channel_host_connect()
|
| /f-stack/dpdk/drivers/net/mlx5/linux/ |
| H A D | mlx5_socket.c | 178 flags = fcntl(server_socket, F_GETFL, 0); in mlx5_pmd_socket_init() 181 ret = fcntl(server_socket, F_SETFL, flags | O_NONBLOCK); in mlx5_pmd_socket_init()
|
| /f-stack/app/nginx-1.16.1/auto/ |
| H A D | unix | 181 ngx_feature_incs="#include <fcntl.h>" 184 ngx_feature_test="fcntl(0, F_READAHEAD, 1);" 191 ngx_feature_incs="#include <fcntl.h>" 201 ngx_feature_incs="#include <fcntl.h>" 204 ngx_feature_test="fcntl(0, F_SETFL, O_DIRECT);" 215 ngx_feature_incs="#include <fcntl.h>" 218 ngx_feature_test="fcntl(0, F_NOCACHE, 1);" 226 #include <sys/fcntl.h>" 859 #include <fcntl.h>" 1007 #include <fcntl.h>"
|
| /f-stack/dpdk/drivers/net/virtio/virtio_user/ |
| H A D | vhost_user.c | 436 flag = fcntl(fd, F_GETFL); in virtio_user_start_server() 437 if (fcntl(fd, F_SETFL, flag | O_NONBLOCK) < 0) { in virtio_user_start_server() 465 flag = fcntl(fd, F_GETFD); in vhost_user_setup() 466 if (fcntl(fd, F_SETFD, flag | FD_CLOEXEC) < 0) in vhost_user_setup()
|
| /f-stack/app/redis-5.0.5/src/ |
| H A D | anet_ff.c | 147 INIT_FUNCTION(fcntl); in ff_mod_init() 382 int fcntl(int sockfd, int cmd, void *p) in fcntl() function 385 INIT_FUNCTION(fcntl); in fcntl()
|
| /f-stack/app/micro_thread/ |
| H A D | mt_sys_hook.cpp | 307 int fcntl(int fd, int cmd, ...) in fcntl() function 314 mt_hook_syscall(fcntl); in fcntl() 318 return mt_real_func(fcntl)(fd, cmd, arg); in fcntl()
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/randombytes/sysrandom/ |
| H A D | randombytes_sysrandom.c | 191 (void) fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in randombytes_sysrandom_random_dev_open()
|
| /f-stack/freebsd/contrib/openzfs/include/os/linux/spl/sys/ |
| H A D | Makefile.am | 16 fcntl.h \
|
| /f-stack/tools/libutil/ |
| H A D | flopen.c | 114 if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) { in vflopenat()
|
| /f-stack/dpdk/drivers/vdpa/mlx5/ |
| H A D | mlx5_vdpa_event.c | 74 flags = fcntl(priv->eventc->fd, F_GETFL); in mlx5_vdpa_event_qp_global_prepare() 75 ret = fcntl(priv->eventc->fd, F_SETFL, flags | O_NONBLOCK); in mlx5_vdpa_event_qp_global_prepare() 466 flags = fcntl(priv->err_chnl->fd, F_GETFL); in mlx5_vdpa_err_event_setup() 467 ret = fcntl(priv->err_chnl->fd, F_SETFL, flags | O_NONBLOCK); in mlx5_vdpa_err_event_setup()
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/randombytes/salsa20/ |
| H A D | randombytes_salsa20_random.c | 232 (void) fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in randombytes_salsa20_random_random_dev_open()
|