summaryrefslogtreecommitdiff
path: root/src/basic/fd-util.c
Commit message (Expand)AuthorAgeFilesLines
* 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-191-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-171-0/+12
* tree-wide: use -EBADF moreYu Watanabe2022-12-211-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
* Add variant of close_all_fds() that does not allocate and use it in freeze()Zbigniew Jędrzejewski-Szmek2021-07-231-4/+4
* basic/fd-util: sort the 'except' array in placeZbigniew Jędrzejewski-Szmek2021-07-231-83/+57
* basic: move acquire_data_fd() and fd_duplicate_data_fd() to new data-fd-util.cZbigniew Jędrzejewski-Szmek2021-06-241-339/+0
* basic: drop one btrfs-related function and move anotherZbigniew Jędrzejewski-Szmek2021-06-241-0/+20
* fd-util: introduce FDNAME_MAXYu Watanabe2021-05-121-1/+1
* treewide: tighten variable scope in loops (#18372)Susant Sahani2021-01-271-6/+2
* sort-util: make cmp_int() generic, so that we can reuse it elsewhereLennart Poettering2020-12-171-4/+0
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
* fd-util: port close_all_fds() to close_range()Lennart Poettering2020-10-141-0/+90
* Merge pull request #17143 from keszybz/late-exec-resolution-altLennart Poettering2020-09-241-4/+2
|\
| * Add CLOSE_AND_REPLACE helperZbigniew Jędrzejewski-Szmek2020-09-181-4/+2
* | basic: update fd_get_path() to use proc_mounted() helperLennart Poettering2020-09-231-5/+3
|/
* tree-wide: fix spelling of "fallback"Zbigniew Jędrzejewski-Szmek2020-08-201-1/+1