Lines Matching +full:socket +full:- +full:based
5 * See the COPYING file in the top-level directory.
11 #include "qemu/error-report.h"
12 #include "9p-util.h"
20 if (fd == -1) { in fgetxattrat_nofollow()
21 return -1; in fgetxattrat_nofollow()
34 if (fd == -1) { in flistxattrat_nofollow()
35 return -1; in flistxattrat_nofollow()
47 if (fd == -1) { in fremovexattrat_nofollow()
48 return -1; in fremovexattrat_nofollow()
60 if (fd == -1) { in fsetxattrat_nofollow()
61 return -1; in fsetxattrat_nofollow()
86 return -1; in create_socket_file_at_cwd()
88 fd = socket(PF_UNIX, SOCK_DGRAM, 0); in create_socket_file_at_cwd()
89 if (fd == -1) { in create_socket_file_at_cwd()
93 if (err == -1) { in create_socket_file_at_cwd()
97 * FIXME: Should rather be using descriptor-based fchmod() on the in create_socket_file_at_cwd()
98 * socket file descriptor above (preferably before bind() call), in create_socket_file_at_cwd()
99 * instead of path-based fchmodat(), to prevent concurrent transient in create_socket_file_at_cwd()
102 * macOS (12.x) does not support such operations on socket file in create_socket_file_at_cwd()
119 if (fd == -1) { in qemu_mknodat()
128 return -1; in qemu_mknodat()
131 return -1; in qemu_mknodat()
139 /* Stop using the thread-local cwd */ in qemu_mknodat()
140 pthread_fchdir_np(-1); in qemu_mknodat()