/linux-4.1.27/include/linux/ |
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 | 75 #define SOCK_CLOEXEC O_CLOEXEC
|
/linux-4.1.27/include/uapi/asm-generic/ |
D | fcntl.h | 61 #ifndef O_CLOEXEC 62 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
|
/linux-4.1.27/arch/mips/include/asm/ |
D | socket.h | 45 #define SOCK_CLOEXEC O_CLOEXEC
|
/linux-4.1.27/arch/parisc/include/uapi/asm/ |
D | fcntl.h | 16 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
|
/linux-4.1.27/arch/alpha/include/uapi/asm/ |
D | fcntl.h | 17 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
|
/linux-4.1.27/arch/sparc/include/uapi/asm/ |
D | fcntl.h | 20 #define O_CLOEXEC 0x400000 macro
|
/linux-4.1.27/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.1.27/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.1.27/tools/testing/selftests/vm/ |
D | hugetlbfstest.c | 61 | O_LARGEFILE | O_CLOEXEC, 0600); in open_file()
|
/linux-4.1.27/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 | 485 if (flags & O_CLOEXEC) in __alloc_fd() 778 if (flags & O_CLOEXEC) in do_dup2() 822 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 | 732 if (flags & ~(O_CLOEXEC | O_NONBLOCK | O_DIRECT)) in __do_pipe_flags()
|
D | open.c | 890 flags &= ~FMODE_NONOTIFY & ~O_CLOEXEC; in build_open_flags()
|
/linux-4.1.27/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 | 1475 ret = anon_inode_getfd("kvm-htab", &kvm_htab_fops, ctx, rwflag | O_CLOEXEC); in kvm_vm_ioctl_get_htab_fd()
|
/linux-4.1.27/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 | 254 fd = open(fname, O_RDWR | O_CREAT | O_CLOEXEC, 0644 /* rw-r--r-- */); in kvp_file_init()
|
/linux-4.1.27/tools/testing/selftests/memfd/ |
D | fuse_test.c | 243 fd = open(argv[1], O_RDONLY | O_CLOEXEC); in main()
|
/linux-4.1.27/kernel/bpf/ |
D | syscall.c | 105 err = anon_inode_getfd("bpf-map", &bpf_map_fops, map, O_RDWR | O_CLOEXEC); in map_create() 537 err = anon_inode_getfd("bpf-prog", &bpf_prog_fops, prog, O_RDWR | O_CLOEXEC); in bpf_prog_load()
|
/linux-4.1.27/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.1.27/samples/uhid/ |
D | uhid-example.c | 415 fd = open(path, O_RDWR | O_CLOEXEC); in main()
|
/linux-4.1.27/net/core/ |
D | scm.c | 286 ? O_CLOEXEC : 0); in scm_detach_fds()
|
/linux-4.1.27/fs/proc/ |
D | fd.c | 43 f_flags |= O_CLOEXEC; in seq_show()
|
/linux-4.1.27/fs/notify/fanotify/ |
D | fanotify_user.c | 38 __O_SYNC | O_DSYNC | O_CLOEXEC | \ 726 f_flags |= O_CLOEXEC; in SYSCALL_DEFINE2()
|
/linux-4.1.27/include/uapi/drm/ |
D | drm.h | 671 #define DRM_CLOEXEC O_CLOEXEC
|
/linux-4.1.27/drivers/iio/ |
D | industrialio-event.c | 183 indio_dev, O_RDONLY | O_CLOEXEC); in iio_event_getfd()
|
/linux-4.1.27/fs/autofs4/ |
D | dev-ioctl.c | 239 fd = get_unused_fd_flags(O_CLOEXEC); in autofs_dev_ioctl_open_mountpoint()
|
/linux-4.1.27/fs/notify/inotify/ |
D | inotify_user.c | 675 BUILD_BUG_ON(IN_CLOEXEC != O_CLOEXEC); in SYSCALL_DEFINE1()
|
/linux-4.1.27/virt/kvm/ |
D | kvm_main.c | 2012 return anon_inode_getfd("kvm-vcpu", &kvm_vcpu_fops, vcpu, O_RDWR | O_CLOEXEC); in create_vcpu_fd() 2457 ret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC); in kvm_ioctl_create_device() 2741 r = anon_inode_getfd("kvm-vm", &kvm_vm_fops, kvm, O_RDWR | O_CLOEXEC); in kvm_dev_ioctl_create_vm()
|
/linux-4.1.27/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().
|
/linux-4.1.27/fs/9p/ |
D | vfs_inode_dotl.c | 195 { O_CLOEXEC, P9_DOTL_CLOEXEC }, in v9fs_mapped_dotl_flags()
|
/linux-4.1.27/net/ |
D | compat.c | 276 ? O_CLOEXEC : 0); in scm_detach_fds_compat()
|
D | socket.c | 1229 BUILD_BUG_ON(SOCK_CLOEXEC != O_CLOEXEC); in SYSCALL_DEFINE3() 1246 retval = sock_map_fd(sock, flags & (O_CLOEXEC | O_NONBLOCK)); in SYSCALL_DEFINE3()
|
/linux-4.1.27/Documentation/ioctl/ |
D | botching-up-ioctls.txt | 175 * Always have O_CLOEXEC support.
|
/linux-4.1.27/drivers/vfio/ |
D | vfio.c | 1208 ret = get_unused_fd_flags(O_CLOEXEC); in vfio_group_get_device_fd()
|
/linux-4.1.27/ipc/ |
D | mqueue.c | 796 fd = get_unused_fd_flags(O_CLOEXEC); in SYSCALL_DEFINE4()
|
/linux-4.1.27/drivers/staging/android/ion/ |
D | ion.c | 1146 fd = dma_buf_fd(dmabuf, O_CLOEXEC); in ion_share_dma_buf_fd()
|
/linux-4.1.27/drivers/infiniband/core/ |
D | uverbs_cmd.c | 353 ret = get_unused_fd_flags(O_CLOEXEC); in ib_uverbs_get_context() 1311 ret = get_unused_fd_flags(O_CLOEXEC); in ib_uverbs_create_comp_channel()
|
/linux-4.1.27/drivers/media/v4l2-core/ |
D | videobuf2-core.c | 2414 if (eb->flags & ~(O_CLOEXEC | O_ACCMODE)) { in vb2_expbuf()
|
/linux-4.1.27/mm/ |
D | shmem.c | 2949 fd = get_unused_fd_flags((flags & MFD_CLOEXEC) ? O_CLOEXEC : 0); in SYSCALL_DEFINE2()
|
/linux-4.1.27/drivers/android/ |
D | binder.c | 1664 target_fd = task_get_unused_fd_flags(target_proc, O_CLOEXEC); in binder_transaction()
|
/linux-4.1.27/kernel/events/ |
D | core.c | 7960 f_flags |= O_CLOEXEC; in SYSCALL_DEFINE5()
|