Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gen/realpath.3,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libc/gen/realpath.3,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.14.2.1 retrieving revision 1.15 diff -u -p -r1.14.2.1 -r1.15 --- src/lib/libc/gen/realpath.3 2013/06/23 06:21:05 1.14.2.1 +++ src/lib/libc/gen/realpath.3 2013/03/05 02:46:33 1.15 @@ -1,4 +1,4 @@ -.\" $NetBSD: realpath.3,v 1.14.2.1 2013/06/23 06:21:05 tls Exp $ +.\" $NetBSD: realpath.3,v 1.15 2013/03/05 02:46:33 soda Exp $ .\" .\" Copyright (c) 1994 .\" The Regents of the University of California. All rights reserved. @@ -32,7 +32,7 @@ .\" .\" from: @(#)realpath.3 8.2 (Berkeley) 2/16/94 .\" -.Dd May 24, 2013 +.Dd June 21, 2012 .Dt REALPATH 3 .Os .Sh NAME @@ -75,7 +75,7 @@ and return the absolute pathname corresp .Fa pathname . .Sh RETURN VALUES If -.Fa resolvedname +.Fa resolvednamed is .Dv NULL , it will be allocated and the returned pointer can be deallocated using @@ -92,7 +92,7 @@ returns and .Fa resolvedname was not allocated by -.Fn realpath , +.Nm , it will contain the pathname which caused the problem. .Sh ERRORS The function @@ -100,35 +100,15 @@ The function may fail and set the external variable .Va errno for any of the errors specified for the library functions -.\" First sorted by section, then by name. +.Xr chdir 2 , +.Xr close 2 , +.Xr fchdir 2 , .Xr lstat 2 , -.Xr readlink 2 , -.Xr getcwd 3 +.Xr malloc 3 , +.Xr open 2 , +.Xr readlink 2 and -.Xr malloc 3 . -.Pp -In addition, the following errors may be reported: -.Bl -tag -width Er -.It Bq Er EINVAL -The value of the -.Fa pathname -argument is -.Dv NULL . -.It Bq Er ELOOP -Too many symbolic links were encountered in translating the -.Fa pathname . -.It Bq Er ENAMETOOLONG -The resulting absolute pathname exceeds -.Dv MAXPATHLEN -characters. -.It Bq Er ENOENT -The value of the -.Fa pathname -argument is an empty string; -or a symbolic link to an empty string is encountered. -.It Bq Er ENOTDIR -A component of the path prefix is not a directory. -.El +.Xr getcwd 3 . .Sh SEE ALSO .Xr getcwd 3 .Sh STANDARDS