Searched refs:fdpath (Results 1 – 2 of 2) sorted by relevance
126 char fdpath[PATH_MAX], *endp; in closefrom() local137 len = snprintf(fdpath, sizeof(fdpath), "/proc/%ld/fd", (long)getpid()); in closefrom()138 if (len > 0 && (size_t)len < sizeof(fdpath) && (dirp = opendir(fdpath))) { in closefrom()
750 char *fdpath = NULL, *userstr = NULL, *ipstr = NULL; in change_filter() local770 if (asprintf(&fdpath, "/dev/fd/%d", pfctl_fd(pfh)) == -1) in change_filter()784 pargv[2] = fdpath; in change_filter()831 free(fdpath); in change_filter()