Query: realpath
OS: hpux
Section: 3x
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
realpath(3X) realpath(3X)NAMErealpath - resolve pathnameSYNOPSISDESCRIPTIONThe function derives, from the pathname pointed to by file_name, an absolute pathname that names the same file, whose resolution does not involve or symbolic links. The generated pathname is stored, up to a maximum of bytes, in the buffer pointed to by resolved_name.RETURN VALUEOn successful completion, returns a pointer to the resolved name. Otherwise, returns a null pointer and sets errno to indicate the error, and the contents of the buffer pointed to by resolved_name are undefined.ERRORSThe function will fail if: Read or search permission was denied for a component of file_name. Either the file_name or resolved_name argument is a null pointer. An error occurred while reading from the file system. Too many symbolic links were encountered in resolving path. The file_name argument is longer than or a pathname component is longer than A component of file_name does not name an existing file or file_name points to an empty string. A component of the path prefix is not a directory. The function may fail if: Pathname resolution of a symbolic link produced an intermediate result whose length exceeds Insufficient storage space is available.SEE ALSOsysconf(2), getcwd(3C), thread_safety(5), glossary(9), <stdlib.h>.CHANGE HISTORYFirst released in Issue 4, Version 2. realpath(3X)
Related Man Pages |
---|
realpath(3c) - opensolaris |
realpath(3p) - centos |
realpath(3) - mojave |
resolvepath(2) - opensolaris |
resolvepath(2) - sunos |
Similar Topics in the Unix Linux Community |
---|
Search and replace |
file_cnt=`ls $in_dir/$file_name | wc -l` not working |
Removal of space |
Error code with if statement |
Error with file test script |