diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-10-01 10:09:05 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-10-01 10:09:05 -0400 |
commit | 80ac731c907c04f60148a696162cb95d7cedc90a (patch) | |
tree | 7fe33a8ec3ec7d27db1beffa393cedc2a21d8e6a /util.h | |
parent | 04445b6bff02da758a87a48c19ee4963aba62f15 (diff) | |
download | bfs-80ac731c907c04f60148a696162cb95d7cedc90a.tar.xz |
util: Move redirect() and isopen() to main.c
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -110,26 +110,6 @@ int xreaddir(DIR *dir, struct dirent **de); char *xreadlinkat(int fd, const char *path, size_t size); /** - * Check if a file descriptor is open. - */ -bool isopen(int fd); - -/** - * Open a file and redirect it to a particular descriptor. - * - * @param fd - * The file descriptor to redirect. - * @param path - * The path to open. - * @param flags - * The flags passed to open(). - * @param mode - * The mode passed to open() (optional). - * @return fd on success, -1 on failure. - */ -int redirect(int fd, const char *path, int flags, ...); - -/** * Like dup(), but set the FD_CLOEXEC flag. * * @param fd |