Lines Matching full:fd

18     int fd = openat_file(dirfd, filename,  in fgetxattrat_nofollow()  local
20 if (fd == -1) { in fgetxattrat_nofollow()
23 ret = fgetxattr(fd, name, value, size, 0, 0); in fgetxattrat_nofollow()
24 close_preserve_errno(fd); in fgetxattrat_nofollow()
32 int fd = openat_file(dirfd, filename, in flistxattrat_nofollow() local
34 if (fd == -1) { in flistxattrat_nofollow()
37 ret = flistxattr(fd, list, size, 0); in flistxattrat_nofollow()
38 close_preserve_errno(fd); in flistxattrat_nofollow()
46 int fd = openat_file(dirfd, filename, O_PATH_9P_UTIL | O_NOFOLLOW, 0); in fremovexattrat_nofollow() local
47 if (fd == -1) { in fremovexattrat_nofollow()
50 ret = fremovexattr(fd, name, 0); in fremovexattrat_nofollow()
51 close_preserve_errno(fd); in fremovexattrat_nofollow()
59 int fd = openat_file(dirfd, filename, O_PATH_9P_UTIL | O_NOFOLLOW, 0); in fsetxattrat_nofollow() local
60 if (fd == -1) { in fsetxattrat_nofollow()
63 ret = fsetxattr(fd, name, value, size, 0, flags); in fsetxattrat_nofollow()
64 close_preserve_errno(fd); in fsetxattrat_nofollow()
78 int fd, err; in create_socket_file_at_cwd() local
88 fd = socket(PF_UNIX, SOCK_DGRAM, 0); in create_socket_file_at_cwd()
89 if (fd == -1) { in create_socket_file_at_cwd()
90 return fd; in create_socket_file_at_cwd()
92 err = bind(fd, (struct sockaddr *) &addr, sizeof(addr)); in create_socket_file_at_cwd()
109 close_preserve_errno(fd); in create_socket_file_at_cwd()
118 int fd = openat_file(dirfd, filename, O_CREAT, mode); in qemu_mknodat() local
119 if (fd == -1) { in qemu_mknodat()
120 return fd; in qemu_mknodat()
122 close(fd); in qemu_mknodat()