| /linux-4.4.14/include/linux/ |
| D | userfaultfd_k.h | 24 #define UFFD_CLOEXEC O_CLOEXEC 27 #define UFFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
|
| D | eventfd.h | 22 #define EFD_CLOEXEC O_CLOEXEC 25 #define EFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
|
| D | timerfd.h | 26 #define TFD_CLOEXEC O_CLOEXEC
|
| D | net.h | 79 #define SOCK_CLOEXEC O_CLOEXEC
|
| /linux-4.4.14/include/uapi/asm-generic/ |
| D | fcntl.h | 61 #ifndef O_CLOEXEC 62 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
|
| /linux-4.4.14/arch/mips/include/asm/ |
| D | socket.h | 45 #define SOCK_CLOEXEC O_CLOEXEC
|
| /linux-4.4.14/arch/parisc/include/uapi/asm/ |
| D | fcntl.h | 16 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
|
| /linux-4.4.14/arch/alpha/include/uapi/asm/ |
| D | fcntl.h | 17 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
|
| /linux-4.4.14/arch/sparc/include/uapi/asm/ |
| D | fcntl.h | 20 #define O_CLOEXEC 0x400000 macro
|
| /linux-4.4.14/include/uapi/linux/ |
| D | eventpoll.h | 22 #define EPOLL_CLOEXEC O_CLOEXEC
|
| D | signalfd.h | 16 #define SFD_CLOEXEC O_CLOEXEC
|
| D | inotify.h | 70 #define IN_CLOEXEC O_CLOEXEC
|
| /linux-4.4.14/tools/testing/selftests/exec/ |
| D | execveat.c | 222 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/ |
| D | signalfd.c | 262 BUILD_BUG_ON(SFD_CLOEXEC != O_CLOEXEC); in SYSCALL_DEFINE4() 286 O_RDWR | (flags & (O_CLOEXEC | O_NONBLOCK))); in SYSCALL_DEFINE4()
|
| D | file.c | 536 if (flags & O_CLOEXEC) in __alloc_fd() 845 if (flags & O_CLOEXEC) in do_dup2() 889 if ((flags & ~O_CLOEXEC) != 0) in SYSCALL_DEFINE3()
|
| D | fcntl.c | 253 err = f_dupfd(arg, filp, O_CLOEXEC); in do_fcntl() 749 O_NOFOLLOW | O_NOATIME | O_CLOEXEC | in fcntl_init()
|
| D | eventfd.c | 397 BUILD_BUG_ON(EFD_CLOEXEC != O_CLOEXEC); in eventfd_file_create()
|
| D | eventpoll.c | 1771 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()
|
| D | timerfd.c | 382 BUILD_BUG_ON(TFD_CLOEXEC != O_CLOEXEC); in SYSCALL_DEFINE2()
|
| D | pipe.c | 771 if (flags & ~(O_CLOEXEC | O_NONBLOCK | O_DIRECT)) in __do_pipe_flags()
|
| D | open.c | 894 flags &= ~FMODE_NONOTIFY & ~O_CLOEXEC; in build_open_flags()
|
| D | userfaultfd.c | 1274 BUILD_BUG_ON(UFFD_CLOEXEC != O_CLOEXEC); in userfaultfd_file_create()
|
| /linux-4.4.14/arch/powerpc/kvm/ |
| D | book3s_64_vio.c | 139 stt, O_RDWR | O_CLOEXEC); in kvm_vm_ioctl_create_spapr_tce()
|
| D | book3s_64_mmu_hv.c | 1482 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/ |
| D | hv_fcopy_daemon.c | 87 O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744); in hv_start_fcopy()
|
| D | hv_kvp_daemon.c | 252 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/ |
| D | fuse_test.c | 243 fd = open(argv[1], O_RDONLY | O_CLOEXEC); in main()
|
| /linux-4.4.14/tools/testing/selftests/vm/ |
| D | userfaultfd.c | 439 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/ |
| D | sw_sync.c | 167 int fd = get_unused_fd_flags(O_CLOEXEC); in sw_sync_ioctl_create_fence()
|
| D | sync.c | 572 int fd = get_unused_fd_flags(O_CLOEXEC); in sync_fence_ioctl_merge()
|
| /linux-4.4.14/samples/uhid/ |
| D | uhid-example.c | 415 fd = open(path, O_RDWR | O_CLOEXEC); in main()
|
| /linux-4.4.14/kernel/bpf/ |
| D | syscall.c | 123 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/ |
| D | api.c | 260 flags = O_RDWR | O_CLOEXEC; in cxl_get_fd()
|
| /linux-4.4.14/fs/proc/ |
| D | fd.c | 43 f_flags |= O_CLOEXEC; in seq_show()
|
| /linux-4.4.14/net/core/ |
| D | scm.c | 286 ? O_CLOEXEC : 0); in scm_detach_fds()
|
| /linux-4.4.14/fs/notify/fanotify/ |
| D | fanotify_user.c | 38 __O_SYNC | O_DSYNC | O_CLOEXEC | \ 730 f_flags |= O_CLOEXEC; in SYSCALL_DEFINE2()
|
| /linux-4.4.14/include/uapi/drm/ |
| D | drm.h | 671 #define DRM_CLOEXEC O_CLOEXEC
|
| /linux-4.4.14/drivers/iio/ |
| D | industrialio-event.c | 189 indio_dev, O_RDONLY | O_CLOEXEC); in iio_event_getfd()
|
| /linux-4.4.14/fs/autofs4/ |
| D | dev-ioctl.c | 239 fd = get_unused_fd_flags(O_CLOEXEC); in autofs_dev_ioctl_open_mountpoint()
|
| /linux-4.4.14/fs/notify/inotify/ |
| D | inotify_user.c | 675 BUILD_BUG_ON(IN_CLOEXEC != O_CLOEXEC); in SYSCALL_DEFINE1()
|
| /linux-4.4.14/Documentation/ |
| D | dma-buf-sharing.txt | 443 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().
|
| D | adding-syscalls.txt | 108 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/ |
| D | vfs_inode_dotl.c | 195 { O_CLOEXEC, P9_DOTL_CLOEXEC }, in v9fs_mapped_dotl_flags()
|
| /linux-4.4.14/virt/kvm/ |
| D | kvm_main.c | 2255 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/ |
| D | compat.c | 276 ? O_CLOEXEC : 0); in scm_detach_fds_compat()
|
| D | socket.c | 1220 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/ |
| D | botching-up-ioctls.txt | 175 * Always have O_CLOEXEC support.
|
| /linux-4.4.14/drivers/vfio/ |
| D | vfio.c | 1258 ret = get_unused_fd_flags(O_CLOEXEC); in vfio_group_get_device_fd()
|
| /linux-4.4.14/ipc/ |
| D | mqueue.c | 792 fd = get_unused_fd_flags(O_CLOEXEC); in SYSCALL_DEFINE4()
|
| /linux-4.4.14/drivers/media/v4l2-core/ |
| D | videobuf2-core.c | 1865 if (flags & ~(O_CLOEXEC | O_ACCMODE)) { in vb2_core_expbuf()
|
| /linux-4.4.14/tools/perf/ |
| D | builtin-trace.c | 73 #ifndef O_CLOEXEC 74 # define O_CLOEXEC 02000000 macro
|
| /linux-4.4.14/drivers/staging/android/ion/ |
| D | ion.c | 1148 fd = dma_buf_fd(dmabuf, O_CLOEXEC); in ion_share_dma_buf_fd()
|
| /linux-4.4.14/drivers/infiniband/core/ |
| D | uverbs_cmd.c | 355 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/ |
| D | shmem.c | 2958 fd = get_unused_fd_flags((flags & MFD_CLOEXEC) ? O_CLOEXEC : 0); in SYSCALL_DEFINE2()
|
| /linux-4.4.14/drivers/android/ |
| D | binder.c | 1664 target_fd = task_get_unused_fd_flags(target_proc, O_CLOEXEC); in binder_transaction()
|
| /linux-4.4.14/kernel/events/ |
| D | core.c | 8289 f_flags |= O_CLOEXEC; in SYSCALL_DEFINE5()
|