From 1ffe1ccb6ec5771765f1f6f0c439ed07bf345d67 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Sun, 12 Nov 2017 09:53:06 +0100 Subject: support: Add xstrndup, xunlink, xreadlink, support_create_temp_directory --- support/xunistd.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'support/xunistd.h') diff --git a/support/xunistd.h b/support/xunistd.h index c947bfd..05c2626 100644 --- a/support/xunistd.h +++ b/support/xunistd.h @@ -38,6 +38,11 @@ int xopen (const char *path, int flags, mode_t); void xstat (const char *path, struct stat64 *); void xmkdir (const char *path, mode_t); void xchroot (const char *path); +void xunlink (const char *path); + +/* Read the link at PATH. The caller should free the returned string + with free. */ +char *xreadlink (const char *path); /* Close the file descriptor. Ignore EINTR errors, but terminate the process on other errors. */ -- cgit v1.1