Searched refs:fdpath (Results 1 – 2 of 2) sorted by relevance
73 char fdpath[PATH_MAX], *endp; in closefrom() local79 len = snprintf(fdpath, sizeof(fdpath), "/proc/%ld/fd", (long)getpid()); in closefrom()80 if (len > 0 && (size_t)len < sizeof(fdpath) && (dirp = opendir(fdpath))) { in closefrom()
753 char *fdpath = NULL, *userstr = NULL, *ipstr = NULL; in change_filter() local773 if (asprintf(&fdpath, "/dev/fd/%d", dev) == -1) in change_filter()787 pargv[2] = fdpath; in change_filter()834 free(fdpath); in change_filter()