Searched refs:fdpath (Results 1 – 2 of 2) sorted by relevance
128 char fdpath[PATH_MAX], *endp; in closefrom() local134 len = snprintf(fdpath, sizeof(fdpath), "/proc/%ld/fd", (long)getpid()); in closefrom()135 if (len > 0 && (size_t)len < sizeof(fdpath) && (dirp = opendir(fdpath))) { in closefrom()
754 char *fdpath = NULL, *userstr = NULL, *ipstr = NULL; in change_filter() local774 if (asprintf(&fdpath, "/dev/fd/%d", dev) == -1) in change_filter()788 pargv[2] = fdpath; in change_filter()835 free(fdpath); in change_filter()