summary refs log tree commit diff
path: root/support/xunistd.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-11-12 09:53:06 +0100
committerFlorian Weimer <fweimer@redhat.com>2017-11-12 09:53:06 +0100
commit1ffe1ccb6ec5771765f1f6f0c439ed07bf345d67 (patch)
treea5d96c2270d9f919e4cda3c17649e5cec4ff519e /support/xunistd.h
parent456b40a97f7e867803b2f47f5fcd3f1fa4bc1f6e (diff)
downloadglibc-1ffe1ccb6ec5771765f1f6f0c439ed07bf345d67.tar.gz
glibc-1ffe1ccb6ec5771765f1f6f0c439ed07bf345d67.tar.xz
glibc-1ffe1ccb6ec5771765f1f6f0c439ed07bf345d67.zip
support: Add xstrndup, xunlink, xreadlink, support_create_temp_directory
Diffstat (limited to 'support/xunistd.h')
-rw-r--r--support/xunistd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/support/xunistd.h b/support/xunistd.h
index c947bfd8fb..05c2626a7b 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.  */