From 80ac731c907c04f60148a696162cb95d7cedc90a Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 1 Oct 2020 10:09:05 -0400 Subject: util: Move redirect() and isopen() to main.c --- util.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'util.h') diff --git a/util.h b/util.h index b10e0e4..a9bdecf 100644 --- a/util.h +++ b/util.h @@ -109,26 +109,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. * -- cgit v1.2.3