Searched refs:fdinfo_buf (Results 1 – 1 of 1) sorted by relevance
98 struct proc_fdinfo *fdinfo_buf = NULL; in closefrom() local105 if ((fdinfo_buf = malloc(sz)) == NULL) in closefrom()107 r = proc_pidinfo(pid, PROC_PIDLISTFDS, 0, fdinfo_buf, sz); in closefrom()111 if (fdinfo_buf[i].proc_fd >= lowfd) in closefrom()112 close(fdinfo_buf[i].proc_fd); in closefrom()114 free(fdinfo_buf); in closefrom()117 free(fdinfo_buf); in closefrom()