Home
last modified time | relevance | path

Searched refs:fdinfo (Results 1 - 3 of 3) sorted by relevance

/third_party/eudev/src/shared/
H A Dpath-util.c335 char path[strlen("/proc/self/fdinfo/") + DECIMAL_STR_MAX(int)]; in fd_fdinfo_mnt_id()
336 _cleanup_free_ char *fdinfo = NULL; in fd_fdinfo_mnt_id() local
342 xsprintf(path, "/proc/self/fdinfo/%i", fd); in fd_fdinfo_mnt_id()
348 xsprintf(path, "/proc/self/fdinfo/%i", subfd); in fd_fdinfo_mnt_id()
351 r = read_full_file(path, &fdinfo, NULL); in fd_fdinfo_mnt_id()
352 if (r == -ENOENT) /* The fdinfo directory is a relatively new addition */ in fd_fdinfo_mnt_id()
357 p = startswith(fdinfo, "mnt_id:"); in fd_fdinfo_mnt_id()
359 p = strstr(fdinfo, "\nmnt_id:"); in fd_fdinfo_mnt_id()
389 * /proc/self/fdinfo/<fd>. This is almost as good as in fd_is_mount_point()
394 * fallback. Exporting the mnt_id in fdinfo i in fd_is_mount_point()
[all...]
/third_party/ltp/lib/
H A Dtst_rtnetlink.c158 struct pollfd fdinfo = { in tst_rtnl_wait() local
163 return poll(&fdinfo, 1, 1000); in tst_rtnl_wait()
/third_party/rust/crates/rustix/src/io/
H A Dprocfs.rs298 /// Returns a handle to Linux's `/proc/self/fdinfo` directory.
300 /// This ensures that `/proc/self/fdinfo` is `procfs`, that nothing is mounted
317 // Open "/proc/self/fdinfo". in proc_self_fdinfo()
318 let proc_self_fdinfo = proc_opendirat(proc_self, cstr!("fdinfo"))?; in proc_self_fdinfo()
328 /// Returns a handle to a Linux `/proc/self/fdinfo/<fd>` file.
330 /// This ensures that `/proc/self/fdinfo/<fd>` is `procfs`, that nothing is

Completed in 3 milliseconds