diff options
| author | Karel Zak <kzak@redhat.com> | 2021-01-28 10:27:21 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2021-01-28 10:27:21 +0100 |
| commit | 867df2617cdf2a0eca0778c016ac684ead7c91c7 (patch) | |
| tree | 0c7b2c3465f2c1c3805e766919949102fd8660b3 /include/fileutils.h | |
| parent | 67f2918a6b1e1d0417f832a2e78f56aee422b379 (diff) | |
| download | util-linux-867df2617cdf2a0eca0778c016ac684ead7c91c7.tar.gz | |
lib: use ul_prefix for close_all_fds() and mkdir_p()
The names are too generic and it makes problems in static libraries.
Addresses: https://gitlab.com/cryptsetup/cryptsetup/-/issues/623
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/fileutils.h')
| -rw-r--r-- | include/fileutils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fileutils.h b/include/fileutils.h index 7047ac5ccb..10fe46a25d 100644 --- a/include/fileutils.h +++ b/include/fileutils.h @@ -55,7 +55,7 @@ static inline int is_same_inode(const int fd, const struct stat *st) extern int dup_fd_cloexec(int oldfd, int lowfd); extern unsigned int get_fd_tabsize(void); -extern int mkdir_p(const char *path, mode_t mode); +extern int ul_mkdir_p(const char *path, mode_t mode); extern char *stripoff_last_component(char *path); /* This is readdir()-like function, but skips "." and ".." directory entries */ @@ -87,7 +87,7 @@ static inline int close_range(unsigned int first, unsigned int last) #endif /* __linux__ */ #ifndef HAVE_CLOSE_RANGE -extern void close_all_fds(unsigned int first, unsigned int last); +extern void ul_close_all_fds(unsigned int first, unsigned int last); #endif #define UL_COPY_READ_ERROR (-1) |
