Searched refs:status_fd (Results 1 - 2 of 2) sorted by relevance
/freebsd-11-stable/usr.sbin/rpc.statd/ |
H A D | file.c | 52 static int status_fd; /* File descriptor for the open file */ variable 140 if (lseek(status_fd, desired_size - 1, SEEK_SET) == -1 || 141 write(status_fd, "\0", 1) < 0) 179 status_fd = open(filename, O_RDWR); 180 if ((status_fd < 0) && (errno == ENOENT)) 182 status_fd = open(filename, O_RDWR | O_CREAT, 0644); 185 if (status_fd < 0) 191 mmap(NULL, 0x10000000, PROT_READ | PROT_WRITE, MAP_SHARED, status_fd, 0); 196 status_file_len = lseek(status_fd, 0L, SEEK_END); 214 lseek(status_fd, [all...] |
/freebsd-11-stable/contrib/gdb/gdb/ |
H A D | procfs.c | 367 int status_fd; /* File descriptor for /proc status file */ member in struct:procinfo 562 * three fields of the procinfo struct (ctl_fd, status_fd, and 618 pi->status_fd = fd; 667 pi->ctl_fd = pi->as_fd = pi->status_fd = fd; 742 if (pi->status_fd > 0) 743 close (pi->status_fd); 745 pi->ctl_fd = pi->as_fd = pi->status_fd = 0; 1117 if (pi->status_fd == 0 && 1125 if (lseek (pi->status_fd, 0, SEEK_SET) < 0) 1132 pi->status_valid = (read (pi->status_fd, [all...] |
Completed in 82 milliseconds