Lines Matching defs:status_fd
169 int status_fd = open(procname, O_RDONLY, 0);
170 if (status_fd < 0) {
176 bytes = read(status_fd, &pstatus, sizeof(pstatus));
179 close(status_fd);
187 close(status_fd);
195 close(status_fd);
199 close(status_fd);
222 int status_fd = open(procname, O_RDONLY, 0);
223 if (status_fd < 0) {
229 ssize_t bytes = read(status_fd, &status, sizeof(status));
232 close(status_fd);
244 close(status_fd);
394 int status_fd = open(procname, O_RDONLY, 0);
395 if (status_fd < 0) {
403 bytes = read(status_fd, &status, sizeof(status));
406 close(status_fd);
410 close(status_fd);