Home
last modified time | relevance | path

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

/linux-4.1.27/include/linux/
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.h75 #define SOCK_CLOEXEC O_CLOEXEC
/linux-4.1.27/include/uapi/asm-generic/
Dfcntl.h61 #ifndef O_CLOEXEC
62 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/linux-4.1.27/arch/mips/include/asm/
Dsocket.h45 #define SOCK_CLOEXEC O_CLOEXEC
/linux-4.1.27/arch/parisc/include/uapi/asm/
Dfcntl.h16 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
/linux-4.1.27/arch/alpha/include/uapi/asm/
Dfcntl.h17 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
/linux-4.1.27/arch/sparc/include/uapi/asm/
Dfcntl.h20 #define O_CLOEXEC 0x400000 macro
/linux-4.1.27/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.1.27/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.1.27/tools/testing/selftests/vm/
Dhugetlbfstest.c61 | O_LARGEFILE | O_CLOEXEC, 0600); in open_file()
/linux-4.1.27/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.c485 if (flags & O_CLOEXEC) in __alloc_fd()
778 if (flags & O_CLOEXEC) in do_dup2()
822 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.c732 if (flags & ~(O_CLOEXEC | O_NONBLOCK | O_DIRECT)) in __do_pipe_flags()
Dopen.c890 flags &= ~FMODE_NONOTIFY & ~O_CLOEXEC; in build_open_flags()
/linux-4.1.27/arch/powerpc/kvm/
Dbook3s_64_vio.c139 stt, O_RDWR | O_CLOEXEC); in kvm_vm_ioctl_create_spapr_tce()
Dbook3s_64_mmu_hv.c1475 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/
Dhv_fcopy_daemon.c87 O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744); in hv_start_fcopy()
Dhv_kvp_daemon.c254 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/
Dfuse_test.c243 fd = open(argv[1], O_RDONLY | O_CLOEXEC); in main()
/linux-4.1.27/kernel/bpf/
Dsyscall.c105 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/
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.1.27/samples/uhid/
Duhid-example.c415 fd = open(path, O_RDWR | O_CLOEXEC); in main()
/linux-4.1.27/net/core/
Dscm.c286 ? O_CLOEXEC : 0); in scm_detach_fds()
/linux-4.1.27/fs/proc/
Dfd.c43 f_flags |= O_CLOEXEC; in seq_show()
/linux-4.1.27/fs/notify/fanotify/
Dfanotify_user.c38 __O_SYNC | O_DSYNC | O_CLOEXEC | \
726 f_flags |= O_CLOEXEC; in SYSCALL_DEFINE2()
/linux-4.1.27/include/uapi/drm/
Ddrm.h671 #define DRM_CLOEXEC O_CLOEXEC
/linux-4.1.27/drivers/iio/
Dindustrialio-event.c183 indio_dev, O_RDONLY | O_CLOEXEC); in iio_event_getfd()
/linux-4.1.27/fs/autofs4/
Ddev-ioctl.c239 fd = get_unused_fd_flags(O_CLOEXEC); in autofs_dev_ioctl_open_mountpoint()
/linux-4.1.27/fs/notify/inotify/
Dinotify_user.c675 BUILD_BUG_ON(IN_CLOEXEC != O_CLOEXEC); in SYSCALL_DEFINE1()
/linux-4.1.27/virt/kvm/
Dkvm_main.c2012 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/
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().
/linux-4.1.27/fs/9p/
Dvfs_inode_dotl.c195 { O_CLOEXEC, P9_DOTL_CLOEXEC }, in v9fs_mapped_dotl_flags()
/linux-4.1.27/net/
Dcompat.c276 ? O_CLOEXEC : 0); in scm_detach_fds_compat()
Dsocket.c1229 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/
Dbotching-up-ioctls.txt175 * Always have O_CLOEXEC support.
/linux-4.1.27/drivers/vfio/
Dvfio.c1208 ret = get_unused_fd_flags(O_CLOEXEC); in vfio_group_get_device_fd()
/linux-4.1.27/ipc/
Dmqueue.c796 fd = get_unused_fd_flags(O_CLOEXEC); in SYSCALL_DEFINE4()
/linux-4.1.27/drivers/staging/android/ion/
Dion.c1146 fd = dma_buf_fd(dmabuf, O_CLOEXEC); in ion_share_dma_buf_fd()
/linux-4.1.27/drivers/infiniband/core/
Duverbs_cmd.c353 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/
Dvideobuf2-core.c2414 if (eb->flags & ~(O_CLOEXEC | O_ACCMODE)) { in vb2_expbuf()
/linux-4.1.27/mm/
Dshmem.c2949 fd = get_unused_fd_flags((flags & MFD_CLOEXEC) ? O_CLOEXEC : 0); in SYSCALL_DEFINE2()
/linux-4.1.27/drivers/android/
Dbinder.c1664 target_fd = task_get_unused_fd_flags(target_proc, O_CLOEXEC); in binder_transaction()
/linux-4.1.27/kernel/events/
Dcore.c7960 f_flags |= O_CLOEXEC; in SYSCALL_DEFINE5()