Home
last modified time | relevance | path

Searched refs:fcntl (Results 1 – 25 of 57) sorted by relevance

123

/f-stack/app/nginx-1.16.1/src/os/unix/
H A Dngx_socket.h33 #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 Dngx_files.c767 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 Dngx_process.c153 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 Dzed_file.c101 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 Dzed_disk_event.c371 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 Dlibzfs_sendrecv_os.c44 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 Def10_phy.c100 __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 Dsiena_phy.c49 __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 Dsiena_mac.c75 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 Defx_mac.c316 __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 Dpages.c447 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 Dmlx4_utils.c34 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.py33 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 Dpkttest.py4 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 Dguest_channel.c84 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 Dmlx5_socket.c178 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 Dunix181 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 Dvhost_user.c436 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 Danet_ff.c147 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 Dmt_sys_hook.cpp307 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 Drandombytes_sysrandom.c191 (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 DMakefile.am16 fcntl.h \
/f-stack/tools/libutil/
H A Dflopen.c114 if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) { in vflopenat()
/f-stack/dpdk/drivers/vdpa/mlx5/
H A Dmlx5_vdpa_event.c74 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 Drandombytes_salsa20_random.c232 (void) fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); in randombytes_salsa20_random_random_dev_open()

123