| Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3) |
REALPATHSection: Linux Programmer's Manual (3)Updated: July 29th 1994 Index NAMErealpath - returns the canonicalized absolute pathname.SYNOPSIS#include <sys/param.h> #include <unistd.h> char *realpath(char *path, char resolved_path[]); DESCRIPTIONrealpath expands all symbolic links and resolves references to '/./', '/../' and extra '/' characters in the null terminated string named by path and stores the canonicalized absolute pathname in the buffer of size MAXPATHLEN named by resolved_path. The resulting path will have no symbolic link, '/./' or '/../' components.RETURN VALUEIf there is no error, it returns a pointer to the resolved_path.Otherwise it returns a NULL pointer and places in resolved_path the absolute pathname of the path component which could not be resolved. The global variable errno is set to indicate the error. ERRORS
SEE ALSO
IndexThis document was created by using the manual pages. Time: 11:58:05 GMT, March 24, 2025 |
|
© 2001 Red Hat, Inc. All rights reserved. About Red Hat : Legal statement : Privacy statement : Y2K statement : Contact Red Hat |