summaryrefslogtreecommitdiff
path: root/src/basic/fd-util.h
Commit message (Expand)AuthorAgeFilesLines
* fd-util: add ASSERT_FD() that is similar to ASSERT_PTR() but for fdsLennart Poettering2023-04-241-0/+8
* fd-util: introduce dir_fd_is_root_or_cwd()Yu Watanabe2023-04-051-0/+4
* fd-util: add helper for converting O_RDONLY/WRONLY/RDWR to stringsLennart Poettering2023-03-291-0/+2
* fd-util: Add dir_fd_is_root()Daan De Meyer2023-03-151-0/+2
* fd-util: move ACQUIRE_NO_XYZ flags to the header the function using them is inLennart Poettering2023-03-091-8/+0
* fd-util: introduce a simple helper to check a file descriptor has O_PATHYu Watanabe2023-02-171-0/+1
* Consolidate various TAKE_* into TAKE_GENERIC(), add TAKE_STRUCT()Dan Streetman2023-01-241-8/+2
* tree-wide: use -EBADF moreYu Watanabe2022-12-211-3/+3
* tree-wide: introduce PIPE_EBADF macroYu Watanabe2022-12-201-0/+1
* tree-wide: use -EBADF for fd initializationZbigniew Jędrzejewski-Szmek2022-12-191-1/+1
* fd-util: add new helper fd_reopen_conditional()Lennart Poettering2022-11-291-0/+1
* fd-util: add new fd_cloexec_many() helperLennart Poettering2022-11-041-0/+1
* btrfs-util: move btrfs_defrag_fd() from fd-util.[ch]Yu Watanabe2022-10-251-1/+0
* fd-util: rename CLOSE_AND_REPLACE() -> close_and_replace()Yu Watanabe2022-09-171-1/+1
* fd-util: rename loop_get_diskseq() -> fd_get_diskseq()Yu Watanabe2022-04-011-0/+1
* fd-util: make TAKE_FD free of double evaluationLennart Poettering2021-11-031-3/+4
* fd-util: export get_max_fd() so that we can use it in testsLennart Poettering2021-10-271-0/+2
* fd-util: split out inner fallback loop of close_all_fds() as close_all_fds_wi...Lennart Poettering2021-10-271-0/+1
* Revert "basic/fd-util: sort the 'except' array in place"Lennart Poettering2021-10-271-1/+1
* Revert "Add variant of close_all_fds() that does not allocate and use it in f...Lennart Poettering2021-10-271-4/+1
* fd-util: add macro for generating /proc/self/fd/ paths on the flyLennart Poettering2021-08-191-1/+15
* Add variant of close_all_fds() that does not allocate and use it in freeze()Zbigniew Jędrzejewski-Szmek2021-07-231-1/+4
* basic/fd-util: sort the 'except' array in placeZbigniew Jędrzejewski-Szmek2021-07-231-1/+1
* basic: move acquire_data_fd() and fd_duplicate_data_fd() to new data-fd-util.cZbigniew Jędrzejewski-Szmek2021-06-241-4/+0
* basic: drop one btrfs-related function and move anotherZbigniew Jędrzejewski-Szmek2021-06-241-1/+1
* fd-util: introduce FDNAME_MAXYu Watanabe2021-05-121-0/+3
* tree-wide: reset the cleaned-up variable in cleanup functionsZbigniew Jędrzejewski-Szmek2021-02-161-2/+2
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
* Add CLOSE_AND_REPLACE helperZbigniew Jędrzejewski-Szmek2020-09-181-0/+10
* util: move ERRNO_IS_xyz macros to errno-util.hLennart Poettering2019-03-191-12/+0
* fd-util: beef up ERRNO_IS_xyz() macros a bitLennart Poettering2019-03-191-2/+2
* tree-wide: use c99 static for array size declarationsZbigniew Jędrzejewski-Szmek2019-01-041-1/+1
* resolve: treat some icmp errors as disconnectedYu Watanabe2018-08-061-2/+6
* tree-wide: remove Lennart's copyright linesLennart Poettering2018-06-141-4/+0
* tree-wide: drop 'This file is part of systemd' blurbLennart Poettering2018-06-141-2/+0
* main: split out reading of /proc/sys/fs/nr_open into its own functionLennart Poettering2018-06-061-0/+2
* fd-util: add new helper call fd_duplicate_data_fd()Lennart Poettering2018-05-241-0/+2
* tree-wide: be more careful with the type of array sizesLennart Poettering2018-04-271-2/+2
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-04-061-13/+0
* Merge pull request #8617 from keszybz/tmpfiles-relaxLennart Poettering2018-04-051-0/+4
|\
| * tmpfiles: add a new return code for "operational failure" when processingZbigniew Jędrzejewski-Szmek2018-04-051-0/+4
* | fd-util: introduce fd_reopen() helper for reopening an fdLennart Poettering2018-03-291-0/+2
|/
* macro: introduce new TAKE_FD() macroLennart Poettering2018-03-221-0/+8
* fd-util: drop stdio_unset_cloexec(), it's not used anymoreLennart Poettering2018-03-021-1/+0
* terminal-util: port some generic code over to rearrange_stdio()Lennart Poettering2018-03-021-0/+4
* fd-util: add new call rearrange_stdio()Lennart Poettering2018-03-021-0/+2
* util: add new safe_close_above_stdio() wrapperLennart Poettering2018-02-281-0/+7
* fd-util: move certain fds above fd #2 (#8129)Lennart Poettering2018-02-091-0/+2
* Merge pull request #7198 from poettering/stdin-stdoutLennart Poettering2017-11-191-0/+12
|\
| * fd-util: add new acquire_data_fd() API helperLennart Poettering2017-11-171-0/+10