summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-04-20 10:16:44 +0000
committerkib <kib@FreeBSD.org>2010-04-20 10:16:44 +0000
commit0be03f320b674f387da392d9e4fece5b67a79ae1 (patch)
tree49cd6b92975d51b11b3034ce84d086a90b7f707b /include
parentdf535bd79d3648211cc1b5783e543ab3c1bea2bc (diff)
downloadFreeBSD-src-0be03f320b674f387da392d9e4fece5b67a79ae1.zip
FreeBSD-src-0be03f320b674f387da392d9e4fece5b67a79ae1.tar.gz
Slightly modernize realpath(3).
SUSv4 requires that implementation returns EINVAL if supplied path is NULL, and ENOENT if path is empty string [1]. Bring prototype in conformance with SUSv4, adding restrict keywords. Allow the resolved path buffer pointer be NULL, in which case realpath(3) allocates storage with malloc(). PR: kern/121897 [1] MFC after: 2 weeks
Diffstat (limited to 'include')
-rw-r--r--include/stdlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index b8cd1a3..b833203 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -201,7 +201,7 @@ int posix_openpt(int);
char *ptsname(int);
int putenv(char *);
long random(void);
-char *realpath(const char *, char resolved_path[]);
+char *realpath(const char * __restrict, char * __restrict);
unsigned short
*seed48(unsigned short[3]);
#ifndef _SETKEY_DECLARED
OpenPOWER on IntegriCloud