Searched refs:newfd (Results 1 – 10 of 10) sorted by relevance
/linux/fs/ |
H A D | file.c | 1336 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) in ksys_dup3() argument 1345 if (unlikely(oldfd == newfd)) in ksys_dup3() 1348 if (newfd >= rlimit(RLIMIT_NOFILE)) in ksys_dup3() 1352 err = expand_files(files, newfd); in ksys_dup3() 1361 return do_dup2(files, file, newfd, flags); in ksys_dup3() 1370 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3() argument 1372 return ksys_dup3(oldfd, newfd, flags); in SYSCALL_DEFINE3() 1375 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2() argument 1377 if (unlikely(newfd == oldfd)) { /* corner case */ in SYSCALL_DEFINE2() 1391 return ksys_dup3(oldfd, newfd, 0); in SYSCALL_DEFINE2()
|
/linux/tools/include/uapi/linux/ |
H A D | seccomp.h | 136 __u32 newfd; member
|
/linux/include/uapi/linux/ |
H A D | seccomp.h | 136 __u32 newfd; member
|
/linux/Documentation/translations/zh_CN/userspace-api/ |
H A D | seccomp_filter.rst | 219 ``SECCOMP_ADDFD_FLAG_SETFD`` 标志,并设置 ``newfd`` 成员为要使用的特定数字。
|
/linux/net/ |
H A D | socket.c | 1959 int newfd; in __sys_accept4_file() local 1967 newfd = get_unused_fd_flags(flags); in __sys_accept4_file() 1968 if (unlikely(newfd < 0)) in __sys_accept4_file() 1969 return newfd; in __sys_accept4_file() 1974 put_unused_fd(newfd); in __sys_accept4_file() 1977 fd_install(newfd, newfile); in __sys_accept4_file() 1978 return newfd; in __sys_accept4_file()
|
/linux/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 247 __u32 newfd; member 4165 addfd.newfd = 0; in TEST() 4182 addfd.newfd = 1; in TEST() 4185 addfd.newfd = 0; in TEST() 4212 addfd.newfd = 42; in TEST() 4240 addfd.newfd = 0; in TEST() 4318 addfd.newfd = 0; in TEST() 4330 addfd.newfd = 100; in TEST()
|
/linux/kernel/ |
H A D | seccomp.c | 1712 if (addfd.newfd && !(addfd.flags & SECCOMP_ADDFD_FLAG_SETFD)) in seccomp_notify_addfd() 1722 kaddfd.fd = addfd.newfd; in seccomp_notify_addfd()
|
/linux/include/linux/ |
H A D | syscalls.h | 389 asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags); 1046 asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
|
/linux/Documentation/userspace-api/ |
H A D | seccomp_filter.rst | 268 ``SECCOMP_ADDFD_FLAG_SETFD`` flag can be used, and set the ``newfd`` member to
|
/linux/Documentation/trace/ |
H A D | ftrace.rst | 3702 bash-1998 [000] d... 140.733504: sys_dup2(oldfd: a, newfd: 1)
|