From 46409d50e5632b28b88cfa4991fffef9adaa490d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 15 Jun 2016 15:47:01 -0500 Subject: Add readlink0() and readlinkat0() which null terminate the data. --- lib/lib.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/lib.h') diff --git a/lib/lib.h b/lib/lib.h index f545a794..3088f252 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -207,6 +207,8 @@ int dev_major(int dev); int dev_makedev(int major, int minor); struct passwd *bufgetpwuid(uid_t uid); struct group *bufgetgrgid(gid_t gid); +int readlinkat0(int dirfd, char *path, char *buf, int len); +int readlink0(char *path, char *buf, int len); #define HR_SPACE 1 // Space between number and units #define HR_B 2 // Use "B" for single byte units -- cgit v1.2.3