Lines Matching refs:fd
171 int fd = open("/proc/self/auxv", O_RDONLY);
173 if (fd >= 0) {
174 while (read(fd, &auxb, sizeof (auxv_t)) == sizeof (auxv_t)) {
180 (void) close(fd);
191 int fd;
195 fd = open("/proc/self/status", O_RDONLY);
197 if (fd >= 0) {
198 if (read(fd, &ps, sizeof (ps)) == sizeof (ps)) {
205 (void) close(fd);
251 int fd;
257 fd = open("/proc/self/psinfo", O_RDONLY);
259 if (fd >= 0) {
260 if (read(fd, &pi, sizeof (pi)) == sizeof (pi)) {
276 (void) close(fd);
724 mmap(void *addr, size_t len, int prot, int flags, int fd, off_t pos)
741 result = mmapfunc(addr, len, prot, flags, fd, pos);
776 mmap64(void *addr, size_t len, int prot, int flags, int fd, off64_t pos)
793 result = mmap64func(addr, len, prot, flags, fd, pos);