Lines Matching refs:fd
55 int fd;
62 if ((fd = open(fname, O_RDONLY)) >= 0) {
63 if (read(fd, credp, size) >= minsize)
65 (void) close(fd);
77 int fd;
83 if ((fd = open(fname, O_RDONLY)) >= 0) {
84 if (fstat(fd, &statb) != 0 ||
86 read(fd, rv, statb.st_size) != statb.st_size) {
90 (void) close(fd);
106 int fd;
113 if ((fd = open(fname, O_RDONLY)) < 0)
118 if (fstat(fd, &statb) == 0)
120 (void) close(fd);
125 if ((ssize = read(fd, pldt, size)) < 0)
130 (void) close(fd);
139 int fd;
144 if ((fd = open(fname, O_RDONLY)) >= 0) {
145 if (read(fd, psp, sizeof (*psp)) == sizeof (*psp))
147 (void) close(fd);
156 int fd;
161 if ((fd = open(fname, O_RDONLY)) >= 0) {
162 if (read(fd, psp, sizeof (*psp)) == sizeof (*psp))
164 (void) close(fd);
179 int fd;
184 if ((fd = open(fname, O_RDONLY)) >= 0) {
185 if ((rv = read(fd, pauxv, naux * sizeof (auxv_t))) >= 0)
187 (void) close(fd);