Home
last modified time | relevance | path

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

/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()
/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.c481 _syscall5(int, sys_renameat2, int, oldfd, const char *, old, int, newfd,
485 int newfd, const char *new, int flags)
488 return renameat(oldfd, old, newfd, new);
/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()
/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()
/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()