Lines Matching refs:fdinfo
335 char path[strlen("/proc/self/fdinfo/") + DECIMAL_STR_MAX(int)];
336 _cleanup_free_ char *fdinfo = NULL;
342 xsprintf(path, "/proc/self/fdinfo/%i", fd);
348 xsprintf(path, "/proc/self/fdinfo/%i", subfd);
351 r = read_full_file(path, &fdinfo, NULL);
352 if (r == -ENOENT) /* The fdinfo directory is a relatively new addition */
357 p = startswith(fdinfo, "mnt_id:");
359 p = strstr(fdinfo, "\nmnt_id:");
389 * /proc/self/fdinfo/<fd>. This is almost as good as
394 * fallback. Exporting the mnt_id in fdinfo is a pretty recent