Home
last modified time | relevance | path

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

/linux-4.4.14/include/linux/
Duserfaultfd_k.h24 #define UFFD_CLOEXEC O_CLOEXEC
27 #define UFFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
Deventfd.h22 #define EFD_CLOEXEC O_CLOEXEC
25 #define EFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
Dtimerfd.h26 #define TFD_CLOEXEC O_CLOEXEC
Dnet.h79 #define SOCK_CLOEXEC O_CLOEXEC
/linux-4.4.14/include/uapi/asm-generic/
Dfcntl.h61 #ifndef O_CLOEXEC
62 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/linux-4.4.14/arch/mips/include/asm/
Dsocket.h45 #define SOCK_CLOEXEC O_CLOEXEC
/linux-4.4.14/arch/parisc/include/uapi/asm/
Dfcntl.h16 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
/linux-4.4.14/arch/alpha/include/uapi/asm/
Dfcntl.h17 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
/linux-4.4.14/arch/sparc/include/uapi/asm/
Dfcntl.h20 #define O_CLOEXEC 0x400000 macro
/linux-4.4.14/include/uapi/linux/
Deventpoll.h22 #define EPOLL_CLOEXEC O_CLOEXEC
Dsignalfd.h16 #define SFD_CLOEXEC O_CLOEXEC
Dinotify.h70 #define IN_CLOEXEC O_CLOEXEC
/linux-4.4.14/tools/testing/selftests/exec/
Dexecveat.c222 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); in run_tests()
234 int fd_cloexec = open_or_die("execveat", O_RDONLY|O_CLOEXEC); in run_tests()
235 int fd_script_cloexec = open_or_die("script", O_RDONLY|O_CLOEXEC); in run_tests()
/linux-4.4.14/fs/
Dsignalfd.c262 BUILD_BUG_ON(SFD_CLOEXEC != O_CLOEXEC); in SYSCALL_DEFINE4()
286 O_RDWR | (flags & (O_CLOEXEC | O_NONBLOCK))); in SYSCALL_DEFINE4()
Dfile.c536 if (flags & O_CLOEXEC) in __alloc_fd()
845 if (flags & O_CLOEXEC) in do_dup2()
889 if ((flags & ~O_CLOEXEC) != 0) in SYSCALL_DEFINE3()
Dfcntl.c253 err = f_dupfd(arg, filp, O_CLOEXEC); in do_fcntl()
749 O_NOFOLLOW | O_NOATIME | O_CLOEXEC | in fcntl_init()
Deventfd.c397 BUILD_BUG_ON(EFD_CLOEXEC != O_CLOEXEC); in eventfd_file_create()
Deventpoll.c1771 BUILD_BUG_ON(EPOLL_CLOEXEC != O_CLOEXEC); in SYSCALL_DEFINE1()
1785 fd = get_unused_fd_flags(O_RDWR | (flags & O_CLOEXEC)); in SYSCALL_DEFINE1()
1791 O_RDWR | (flags & O_CLOEXEC)); in SYSCALL_DEFINE1()
Dtimerfd.c382 BUILD_BUG_ON(TFD_CLOEXEC != O_CLOEXEC); in SYSCALL_DEFINE2()
Dpipe.c771 if (flags & ~(O_CLOEXEC | O_NONBLOCK | O_DIRECT)) in __do_pipe_flags()
Dopen.c894 flags &= ~FMODE_NONOTIFY & ~O_CLOEXEC; in build_open_flags()
Duserfaultfd.c1274 BUILD_BUG_ON(UFFD_CLOEXEC != O_CLOEXEC); in userfaultfd_file_create()
/linux-4.4.14/arch/powerpc/kvm/
Dbook3s_64_vio.c139 stt, O_RDWR | O_CLOEXEC); in kvm_vm_ioctl_create_spapr_tce()
Dbook3s_64_mmu_hv.c1482 ret = anon_inode_getfd("kvm-htab", &kvm_htab_fops, ctx, rwflag | O_CLOEXEC); in kvm_vm_ioctl_get_htab_fd()
/linux-4.4.14/tools/hv/
Dhv_fcopy_daemon.c87 O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744); in hv_start_fcopy()
Dhv_kvp_daemon.c252 fd = open(fname, O_RDWR | O_CREAT | O_CLOEXEC, 0644 /* rw-r--r-- */); in kvp_file_init()
/linux-4.4.14/tools/testing/selftests/memfd/
Dfuse_test.c243 fd = open(argv[1], O_RDONLY | O_CLOEXEC); in main()
/linux-4.4.14/tools/testing/selftests/vm/
Duserfaultfd.c439 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK); in userfaultfd_stress()
484 if (pipe2(&pipefd[cpu*2], O_CLOEXEC | O_NONBLOCK)) { in userfaultfd_stress()
/linux-4.4.14/drivers/staging/android/
Dsw_sync.c167 int fd = get_unused_fd_flags(O_CLOEXEC); in sw_sync_ioctl_create_fence()
Dsync.c572 int fd = get_unused_fd_flags(O_CLOEXEC); in sync_fence_ioctl_merge()
/linux-4.4.14/samples/uhid/
Duhid-example.c415 fd = open(path, O_RDWR | O_CLOEXEC); in main()
/linux-4.4.14/kernel/bpf/
Dsyscall.c123 O_RDWR | O_CLOEXEC); in bpf_map_new_fd()
575 O_RDWR | O_CLOEXEC); in bpf_prog_new_fd()
/linux-4.4.14/drivers/misc/cxl/
Dapi.c260 flags = O_RDWR | O_CLOEXEC; in cxl_get_fd()
/linux-4.4.14/fs/proc/
Dfd.c43 f_flags |= O_CLOEXEC; in seq_show()
/linux-4.4.14/net/core/
Dscm.c286 ? O_CLOEXEC : 0); in scm_detach_fds()
/linux-4.4.14/fs/notify/fanotify/
Dfanotify_user.c38 __O_SYNC | O_DSYNC | O_CLOEXEC | \
730 f_flags |= O_CLOEXEC; in SYSCALL_DEFINE2()
/linux-4.4.14/include/uapi/drm/
Ddrm.h671 #define DRM_CLOEXEC O_CLOEXEC
/linux-4.4.14/drivers/iio/
Dindustrialio-event.c189 indio_dev, O_RDONLY | O_CLOEXEC); in iio_event_getfd()
/linux-4.4.14/fs/autofs4/
Ddev-ioctl.c239 fd = get_unused_fd_flags(O_CLOEXEC); in autofs_dev_ioctl_open_mountpoint()
/linux-4.4.14/fs/notify/inotify/
Dinotify_user.c675 BUILD_BUG_ON(IN_CLOEXEC != O_CLOEXEC); in SYSCALL_DEFINE1()
/linux-4.4.14/Documentation/
Ddma-buf-sharing.txt443 To avoid this problem, userspace must have a way to request O_CLOEXEC
446 userspace control setting of O_CLOEXEC flag passed in to dma_buf_fd().
Dadding-syscalls.txt108 flags argument should include a value that is equivalent to setting O_CLOEXEC
113 of the O_CLOEXEC constant, as it is architecture-specific and is part of a
/linux-4.4.14/fs/9p/
Dvfs_inode_dotl.c195 { O_CLOEXEC, P9_DOTL_CLOEXEC }, in v9fs_mapped_dotl_flags()
/linux-4.4.14/virt/kvm/
Dkvm_main.c2255 return anon_inode_getfd("kvm-vcpu", &kvm_vcpu_fops, vcpu, O_RDWR | O_CLOEXEC); in create_vcpu_fd()
2705 ret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC); in kvm_ioctl_create_device()
2980 r = anon_inode_getfd("kvm-vm", &kvm_vm_fops, kvm, O_RDWR | O_CLOEXEC); in kvm_dev_ioctl_create_vm()
/linux-4.4.14/net/
Dcompat.c276 ? O_CLOEXEC : 0); in scm_detach_fds_compat()
Dsocket.c1220 BUILD_BUG_ON(SOCK_CLOEXEC != O_CLOEXEC); in SYSCALL_DEFINE3()
1237 retval = sock_map_fd(sock, flags & (O_CLOEXEC | O_NONBLOCK)); in SYSCALL_DEFINE3()
/linux-4.4.14/Documentation/ioctl/
Dbotching-up-ioctls.txt175 * Always have O_CLOEXEC support.
/linux-4.4.14/drivers/vfio/
Dvfio.c1258 ret = get_unused_fd_flags(O_CLOEXEC); in vfio_group_get_device_fd()
/linux-4.4.14/ipc/
Dmqueue.c792 fd = get_unused_fd_flags(O_CLOEXEC); in SYSCALL_DEFINE4()
/linux-4.4.14/drivers/media/v4l2-core/
Dvideobuf2-core.c1865 if (flags & ~(O_CLOEXEC | O_ACCMODE)) { in vb2_core_expbuf()
/linux-4.4.14/tools/perf/
Dbuiltin-trace.c73 #ifndef O_CLOEXEC
74 # define O_CLOEXEC 02000000 macro
/linux-4.4.14/drivers/staging/android/ion/
Dion.c1148 fd = dma_buf_fd(dmabuf, O_CLOEXEC); in ion_share_dma_buf_fd()
/linux-4.4.14/drivers/infiniband/core/
Duverbs_cmd.c355 ret = get_unused_fd_flags(O_CLOEXEC); in ib_uverbs_get_context()
1326 ret = get_unused_fd_flags(O_CLOEXEC); in ib_uverbs_create_comp_channel()
/linux-4.4.14/mm/
Dshmem.c2958 fd = get_unused_fd_flags((flags & MFD_CLOEXEC) ? O_CLOEXEC : 0); in SYSCALL_DEFINE2()
/linux-4.4.14/drivers/android/
Dbinder.c1664 target_fd = task_get_unused_fd_flags(target_proc, O_CLOEXEC); in binder_transaction()
/linux-4.4.14/kernel/events/
Dcore.c8289 f_flags |= O_CLOEXEC; in SYSCALL_DEFINE5()