summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-10-01 10:09:05 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-10-01 10:09:05 -0400
commit80ac731c907c04f60148a696162cb95d7cedc90a (patch)
tree7fe33a8ec3ec7d27db1beffa393cedc2a21d8e6a /util.h
parent04445b6bff02da758a87a48c19ee4963aba62f15 (diff)
downloadbfs-80ac731c907c04f60148a696162cb95d7cedc90a.tar.xz
util: Move redirect() and isopen() to main.c
Diffstat (limited to 'util.h')
-rw-r--r--util.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/util.h b/util.h
index b10e0e4..a9bdecf 100644
--- a/util.h
+++ b/util.h
@@ -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