summaryrefslogtreecommitdiffstats
path: root/src/basic/fd-util.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* basic: add fds_are_same_mount() helperLuca Boccassi2023-12-051-26/+37
* fd-util: refuse O_CREAT in fd_reopenMike Yuan2023-11-081-11/+6
* fd-util: add new FORMAT_PROC_PID_FD_PATH() helperLennart Poettering2023-11-021-0/+8
* fd-uitl: rename PIPE_EBADF → EBADF_PAIR, and add EBADF_TRIPLETLennart Poettering2023-10-261-1/+1
* fd-util: use close_many() where appropriateLennart Poettering2023-10-181-2/+1
* fd-util: add new helper close_many_unset()Lennart Poettering2023-10-181-0/+7
* serialize: add serialize_fd_many() helperLennart Poettering2023-10-181-0/+7
* various: use _NEG_ macros to reduce indentationZbigniew Jędrzejewski-Szmek2023-08-161-8/+6
* tree-wide: drop _pure_ + _const_ from local, static functionsLennart Poettering2023-08-091-1/+1
* fd-util: do not call statx() twice when it does not provide mount IDYu Watanabe2023-07-211-2/+2
* fd-util: make path_is_root_at() not fail even when /proc is mountedYu Watanabe2023-07-211-8/+10
* fd-util: Add extra shortcut to path_is_root_at()Daan De Meyer2023-06-131-2/+2
* fd-util: Add path_is_root_at()Daan De Meyer2023-06-061-2/+11
* tree-wide: use parse_fd()David Tardon2023-05-051-1/+2
* fd-util: skip to check mount ID if kernel is too old and /proc is not mountedYu Watanabe2023-04-181-7/+15
* fd-util: slightly optimize dir_fd_is_root()Yu Watanabe2023-04-101-8/+12
* Merge pull request #27041 from poettering/fdstore-dumpDaan De Meyer2023-03-301-0/+13
|\
| * fd-util: add helper for converting O_RDONLY/WRONLY/RDWR to stringsLennart Poettering2023-03-291-0/+13
* | fd-util: make fd_get_path() support AT_FDCWDYu Watanabe2023-03-301-0/+5
|/
* fd-util: cover some corner cases with fd_reopen() on symlinksLennart Poettering2023-03-271-1/+14
* fd-util: make sure fd_reopen() works with AT_FDCWD systematicallyLennart Poettering2023-03-211-3/+9
* fd-util: Add dir_fd_is_root()Daan De Meyer2023-03-151-0/+52
* fd-util: introduce a simple helper to check a file descriptor has O_PATHYu Watanabe2023-02-161-0/+12
* tree-wide: use -EBADF moreYu Watanabe2022-12-201-1/+1
* basic/fd-util: rearrange variable declarationsZbigniew Jędrzejewski-Szmek2022-12-191-14/+10
* tree-wide: use -EBADF for fd initializationZbigniew Jędrzejewski-Szmek2022-12-191-18/+18
* all: avoid various "-Wcast-align=strict" warningsThomas Haller2022-12-091-1/+2
* fd-util: add new helper fd_reopen_conditional()Lennart Poettering2022-11-291-0/+31
* basic: rename util.h to logarithm.hZbigniew Jędrzejewski-Szmek2022-11-081-1/+0
* fd-util: add new fd_cloexec_many() helperLennart Poettering2022-11-041-0/+19
* fd-util: make fd_in_set() (and thus close_all_fds()) handle invalidated fds i...Lennart Poettering2022-11-041-1/+9
* btrfs-util: move btrfs_defrag_fd() from fd-util.[ch]Yu Watanabe2022-10-251-15/+0
* fd-util: rename CLOSE_AND_REPLACE() -> close_and_replace()Yu Watanabe2022-09-171-1/+1
* glibc: Remove #include <linux/fs.h> to resolve fsconfig_command/mount_attr co...Rudi Heitbaum2022-07-241-0/+2
* fd-util: rename loop_get_diskseq() -> fd_get_diskseq()Yu Watanabe2022-04-011-0/+23
* fd-util: use ERRNO_IS_XYZ() macros where appropriateLennart Poettering2022-02-141-12/+8
* tree-wide: port various places over to new stat_inode_same() helperLennart Poettering2022-02-141-8/+3
* Define FOREACH_DIRENT through FOREACH_DIRENT_ALLZbigniew Jędrzejewski-Szmek2021-12-151-1/+0
* tree-wide: use new RET_NERRNO() helper at various placesLennart Poettering2021-11-161-12/+3
* fd-util: export get_max_fd() so that we can use it in testsLennart Poettering2021-10-271-1/+1
* fd-util: split out close_all_fds() special case handling and call it from clo...Lennart Poettering2021-10-271-65/+104
* fd-util: close_all() check d_typeLennart Poettering2021-10-271-0/+3
* fd-util: always return 0 on success in close_all_fds()Lennart Poettering2021-10-271-7/+3
* fd-util: special case invocation of close_all_fds() with single exception fdLennart Poettering2021-10-271-0/+15
* fd-util: split out inner fallback loop of close_all_fds() as close_all_fds_wi...Lennart Poettering2021-10-271-30/+37
* Revert "basic/fd-util: sort the 'except' array in place"Lennart Poettering2021-10-271-57/+83
* Revert "Add variant of close_all_fds() that does not allocate and use it in f...Lennart Poettering2021-10-271-4/+4
* fd-util: tweak error handling in fd_reopen()Lennart Poettering2021-10-221-3/+6
* fd-util: when re-opening a directory with fd_reopen() go via openat(…, ".",...Lennart Poettering2021-10-221-0/+10
* tree-wide: port things over to FORMAT_PROC_FD_PATH()Lennart Poettering2021-08-191-6/+2