Home
last modified time | relevance | path

Searched refs:newfd (Results 1 – 18 of 18) sorted by relevance

/openbmc/qemu/contrib/ivshmem-server/
H A Divshmem-server.c136 int newfd; in ivshmem_server_handle_new_conn() local
141 newfd = qemu_accept(server->sock_fd, in ivshmem_server_handle_new_conn()
144 if (newfd < 0) { in ivshmem_server_handle_new_conn()
149 qemu_socket_set_nonblock(newfd); in ivshmem_server_handle_new_conn()
150 IVSHMEM_SERVER_DEBUG(server, "accept()=%d\n", newfd); in ivshmem_server_handle_new_conn()
154 peer->sock_fd = newfd; in ivshmem_server_handle_new_conn()
167 close(newfd); in ivshmem_server_handle_new_conn()
219 close(newfd); in ivshmem_server_handle_new_conn()
/openbmc/qemu/linux-user/
H A Dfd-trans.h117 static inline void fd_trans_dup(int oldfd, int newfd) in fd_trans_dup() argument
120 internal_fd_trans_unregister_unsafe(newfd); in fd_trans_dup()
122 internal_fd_trans_register_unsafe(newfd, target_fd_trans[oldfd]); in fd_trans_dup()
H A Dsyscall.c482 _syscall5(int, sys_renameat2, int, oldfd, const char *, old, int, newfd,
486 int newfd, const char *new, int flags)
489 return renameat(oldfd, old, newfd, new);
/openbmc/sdeventplus/example/
H A Dfollow.cpp25 int newfd = open(fifo, O_NONBLOCK | O_RDONLY); in reader() local
26 if (newfd < 0) in reader()
32 source.set_fd(newfd); in reader()
/openbmc/linux/fs/
H A Dfile.c1203 static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags) in ksys_dup3() argument
1212 if (unlikely(oldfd == newfd)) in ksys_dup3()
1215 if (newfd >= rlimit(RLIMIT_NOFILE)) in ksys_dup3()
1219 err = expand_files(files, newfd); in ksys_dup3()
1228 return do_dup2(files, file, newfd, flags); in ksys_dup3()
1237 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags) in SYSCALL_DEFINE3() argument
1239 return ksys_dup3(oldfd, newfd, flags); in SYSCALL_DEFINE3()
1242 SYSCALL_DEFINE2(dup2, unsigned int, oldfd, unsigned int, newfd) in SYSCALL_DEFINE2() argument
1244 if (unlikely(newfd == oldfd)) { /* corner case */ in SYSCALL_DEFINE2()
1254 return ksys_dup3(oldfd, newfd, 0); in SYSCALL_DEFINE2()
/openbmc/qemu/io/
H A Dchannel-file.c51 int newfd = dup(fd); in qio_channel_file_new_dupfd() local
53 if (newfd < 0) { in qio_channel_file_new_dupfd()
58 return qio_channel_file_new_fd(newfd); in qio_channel_file_new_dupfd()
/openbmc/qemu/net/
H A Ddgram.c328 int newfd; in net_dgram_mcast_init() local
367 newfd = net_dgram_mcast_create(saddr, NULL, errp); in net_dgram_mcast_init()
368 if (newfd < 0) { in net_dgram_mcast_init()
374 dup2(newfd, fd); in net_dgram_mcast_init()
375 close(newfd); in net_dgram_mcast_init()
H A Dsocket.c337 int newfd; in net_socket_fd_init_dgram() local
365 newfd = net_socket_mcast_create(&saddr, NULL, errp); in net_socket_fd_init_dgram()
366 if (newfd < 0) { in net_socket_fd_init_dgram()
370 dup2(newfd, fd); in net_socket_fd_init_dgram()
371 close(newfd); in net_socket_fd_init_dgram()
/openbmc/linux/tools/include/uapi/linux/
H A Dseccomp.h136 __u32 newfd; member
/openbmc/linux/include/uapi/linux/
H A Dseccomp.h136 __u32 newfd; member
/openbmc/qemu/hw/ppc/
H A Dspapr_iommu.c333 int newfd = -1; in spapr_tce_set_need_vfio() local
349 &newfd, in spapr_tce_set_need_vfio()
355 tcet->fd = newfd; in spapr_tce_set_need_vfio()
/openbmc/linux/Documentation/translations/zh_CN/userspace-api/
H A Dseccomp_filter.rst219 ``SECCOMP_ADDFD_FLAG_SETFD`` 标志,并设置 ``newfd`` 成员为要使用的特定数字。
/openbmc/linux/net/
H A Dsocket.c1966 int newfd; in __sys_accept4_file() local
1974 newfd = get_unused_fd_flags(flags); in __sys_accept4_file()
1975 if (unlikely(newfd < 0)) in __sys_accept4_file()
1976 return newfd; in __sys_accept4_file()
1981 put_unused_fd(newfd); in __sys_accept4_file()
1984 fd_install(newfd, newfile); in __sys_accept4_file()
1985 return newfd; in __sys_accept4_file()
/openbmc/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c240 __u32 newfd; member
4105 addfd.newfd = 0; in TEST()
4122 addfd.newfd = 1; in TEST()
4125 addfd.newfd = 0; in TEST()
4152 addfd.newfd = 42; in TEST()
4180 addfd.newfd = 0; in TEST()
4258 addfd.newfd = 0; in TEST()
4270 addfd.newfd = 100; in TEST()
/openbmc/linux/kernel/
H A Dseccomp.c1682 if (addfd.newfd && !(addfd.flags & SECCOMP_ADDFD_FLAG_SETFD)) in seccomp_notify_addfd()
1692 kaddfd.fd = addfd.newfd; in seccomp_notify_addfd()
/openbmc/linux/include/linux/
H A Dsyscalls.h374 asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags);
1007 asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd);
/openbmc/linux/Documentation/userspace-api/
H A Dseccomp_filter.rst268 ``SECCOMP_ADDFD_FLAG_SETFD`` flag can be used, and set the ``newfd`` member to
/openbmc/linux/Documentation/trace/
H A Dftrace.rst3647 bash-1998 [000] d... 140.733504: sys_dup2(oldfd: a, newfd: 1)