realpath(3): Upgrade to POSIX IEEE Std 1003.1-2008
authorJohn Marino <draco@marino.st>
Sat, 5 May 2012 16:07:58 +0000 (18:07 +0200)
committerJohn Marino <draco@marino.st>
Sat, 5 May 2012 16:43:31 +0000 (18:43 +0200)
commitdcd5dd2ef4ecd2f3a28a1e860d8852ce68a991ac
treee1346de89dcd919236e704ec985062603d2f866d
parent11a868c0bb87b301563ac3731259f1e222cbf3bc
realpath(3): Upgrade to POSIX IEEE Std 1003.1-2008

Recent updates to realpath implements some of the missing POSIX
functionality, but the requirement to allocate memory for the pointer
returned by the function when a null pointer is passed to the
resolved_path argument was missing.

The prototype changes in the following ways:
1.  The restrict type qualifier is added to both arguments
2.  The second argument changes from "char resolved[PATH_MAX]" to
    "char * resolved"

The new prototype is backwards-compatible with the old one.

This should bring realpath up to Open Group Specifications Issue 7
IEEE Std 1003.1-2008
http://pubs.opengroup.org/onlinepubs/9699919799/functions/realpath.html

Taken from:
FreeBSD SVN 206893 (20 APR 2010)
FreeBSD SVN 206898 (20 APR 2010)
FreeBSD SVN 217144 (08 JAN 2011)
FreeBSD SVN 227090 (04 NOV 2011)
include/stdlib.h
lib/libc/stdlib/realpath.3
lib/libc/stdlib/realpath.c