Lines Matching refs:fd
53 int fd, operation, serrno, trunc; in vflopenat() local
74 if ((fd = openat(dirfd, path, flags, mode)) == -1) in vflopenat()
77 if (flock(fd, operation) == -1) { in vflopenat()
80 (void)close(fd); in vflopenat()
86 (void)close(fd); in vflopenat()
89 if (fstat(fd, &fsb) == -1) { in vflopenat()
92 (void)close(fd); in vflopenat()
99 (void)close(fd); in vflopenat()
102 if (trunc && ftruncate(fd, 0) != 0) { in vflopenat()
105 (void)close(fd); in vflopenat()
114 if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) { in vflopenat()
116 (void)close(fd); in vflopenat()
121 return (fd); in vflopenat()