git: realpath(3): Upgrade to POSIX IEEE Std 1003.1-2008
John Marino
marino at crater.dragonflybsd.org
Sat May 5 09:44:02 PDT 2012
commit dcd5dd2ef4ecd2f3a28a1e860d8852ce68a991ac
Author: John Marino <draco at marino.st>
Date: Sat May 5 18:07:58 2012 +0200
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)
Summary of changes:
include/stdlib.h | 3 +-
lib/libc/stdlib/realpath.3 | 46 +++++++++++++++++++++++------------
lib/libc/stdlib/realpath.c | 57 +++++++++++++++++++++++++++++++++----------
3 files changed, 74 insertions(+), 32 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/dcd5dd2ef4ecd2f3a28a1e860d8852ce68a991ac
--
DragonFly BSD source repository
More information about the Commits
mailing list