Searched refs:fdinfo_buf (Results 1 – 1 of 1) sorted by relevance
100 struct proc_fdinfo *fdinfo_buf = NULL; in closefrom() local107 if ((fdinfo_buf = malloc(sz)) == NULL) in closefrom()109 r = proc_pidinfo(pid, PROC_PIDLISTFDS, 0, fdinfo_buf, sz); in closefrom()113 if (fdinfo_buf[i].proc_fd >= lowfd) in closefrom()114 close(fdinfo_buf[i].proc_fd); in closefrom()116 free(fdinfo_buf); in closefrom()119 free(fdinfo_buf); in closefrom()