Lines Matching defs:fd
2461 int fd;
2467 if ((fd = __open(buf, O_RDONLY, 0)) >= 0) {
2468 while (__pread(fd, sp, sizeof (*sp), 0) == sizeof (*sp)) {
2470 (void) __close(fd);
2475 (void) __close(fd);
2485 int fd;
2494 if ((fd = __open(buf, O_WRONLY, 0)) >= 0) {
2505 if (__writev(fd, iov, 3) >= 0) {
2506 (void) __close(fd);
2509 (void) __close(fd);
2518 int fd;
2523 if ((fd = __open("/proc/self/rmap", O_RDONLY, 0)) < 0 ||
2524 fstat(fd, &statb) < 0)
2527 if ((nmap = __read(fd, prmap, statb.st_size)) <= 0)
2536 if (fd >= 0)
2537 (void) __close(fd);