Searched defs:fdinfo (Results 1 - 2 of 2) sorted by relevance

/systemd/src/basic/
H A Dmount-util.c41 char path[strlen("/proc/self/fdinfo/") + DECIMAL_STR_MAX(int)];
42 _cleanup_free_ char *fdinfo = NULL; local
48 xsprintf(path, "/proc/self/fdinfo/%i", fd);
54 xsprintf(path, "/proc/self/fdinfo/%i", subfd);
57 r = read_full_file(path, &fdinfo, NULL);
58 if (r == -ENOENT) /* The fdinfo directory is a relatively new addition */
63 p = startswith(fdinfo, "mnt_id:");
65 p = strstr(fdinfo, "\nmnt_id:");
97 * /proc/self/fdinfo/<fd>. This is almost as good as
102 * fallback. Exporting the mnt_id in fdinfo i
[all...]
/systemd/src/coredump/
H A Dcoredump.c480 /* Joins /proc/[pid]/fd/ and /proc/[pid]/fdinfo/ into the following lines:
512 proc_fdinfo_fd = openat(dirfd(proc_fd_dir), "../fdinfo", O_DIRECTORY|O_NOFOLLOW|O_CLOEXEC|O_PATH);
521 _cleanup_fclose_ FILE *fdinfo = NULL; local
533 /* Use the directory entry from /proc/[pid]/fd with /proc/[pid]/fdinfo */
538 fdinfo = fdopen(fd, "re");
539 if (fdinfo == NULL) {
544 FOREACH_LINE(line, fdinfo, break) {

Completed in 28 milliseconds