Home
Search all pages
Subjects
By activity
Professions, Sciences, Humanities, Business, ...
User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...
Text Strings
Conversions, tests, processing, manipulation,...
Math
Integer, Floating point, Matrix, Statistics, Boolean, ...
Processing
Algorithms, Memory, Process control, Debugging, ...
Stored Data
Data storage, Integrity, Encryption, Compression, ...
Communications
Networks, protocols, Interprocess, Remote, Client Server, ...
Hard World Timing, Calendar and Clock, Audio, Video, Printer, Controls...
File System
Management, Filtering, File & Directory access, Viewers, ...
|
|
|
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
RedHat
Solaris
Others
REALPATH(3) OpenBSD Programmer's Manual REALPATH(3)
NAME
realpath - returns the canonicalized absolute pathname
SYNOPSIS
#include <sys/param.h>
#include <stdlib.h>
char *
realpath(const char *pathname, char resolvedname[MAXPATHLEN]);
DESCRIPTION
The realpath() function resolves all symbolic links, extra ``/'' charac-
ters and references to /./ and /../ in pathname, and copies the resulting
absolute pathname into the memory referenced by resolvedname. The
resolvedname argument must refer to a buffer capable of storing at least
MAXPATHLEN characters.
The realpath() function will resolve both absolute and relative paths and
return the absolute pathname corresponding to pathname. All but the last
component of pathname must exist when realpath() is called.
RETURN VALUES
The realpath() function returns resolved_name on success. If an error
occurs, realpath() returns NULL, and resolved_name contains the pathname
which caused the problem.
ERRORS
The function realpath() may fail and set the external variable errno for
any of the errors specified for the library functions chdir(2),
close(2), fchdir(2), lstat(2), open(2), readlink(2) and getcwd(3).
CAVEATS
This implementation of realpath() differs slightly from the Solaris im-
plementation. The 4.4BSD version always returns absolute pathnames,
whereas the Solaris implementation will, under certain circumstances, re-
turn a relative resolved_path when given a relative pathname.
SEE ALSO
getcwd(3)
HISTORY
The realpath() function call first appeared in 4.4BSD.
OpenBSD 2.6 February 16, 1994 1
Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts Institute of Technology, Free Software Foundation, FreeBSD Inc., and others. |
(Corrections, notes, and links courtesy of RocketAware.com)
FreeBSD Sources for realpath(3) functions OpenBSD sources for realpath(3)
Up to: Directory Access - Accessing directories of files, browsing, management, et al.
Up to: File Path Name Strings - Operations on hierarchical names (paths, files, identifiers)
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
RedHat
Solaris
Others
Rapid-Links:
Search | About | Comments | Submit Path: RocketAware > man pages >
realpath.3/
RocketAware.com is a service of Mib Software Copyright 1999, Forrest J. Cavalier III. All Rights Reserved. We welcome submissions and comments
|