diff options
Diffstat (limited to 'man3/realpath.3')
-rw-r--r-- | man3/realpath.3 | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/man3/realpath.3 b/man3/realpath.3 index 512807217..70838232c 100644 --- a/man3/realpath.3 +++ b/man3/realpath.3 @@ -23,7 +23,7 @@ Standard C library .P .RS -4 Feature Test Macro Requirements for glibc (see -.BR feature_test_macros (7)): +.MR feature_test_macros 7 ): .RE .P .BR realpath (): @@ -59,13 +59,13 @@ If is specified as NULL, then .BR realpath () uses -.BR malloc (3) +.MR malloc 3 to allocate a buffer of up to .B PATH_MAX bytes to hold the resolved pathname, and returns a pointer to this buffer. The caller should deallocate this buffer using -.BR free (3). +.MR free 3 . .\" Even if we use resolved_path == NULL, then realpath() will still .\" return ENAMETOOLONG if the resolved pathname would exceed PATH_MAX .\" bytes -- MTK, Dec 04 @@ -118,7 +118,7 @@ Out of memory. A component of the path prefix is not a directory. .SH ATTRIBUTES For an explanation of the terms used in this section, see -.BR attributes (7). +.MR attributes 7 . .TS allbox; lbx lb lb @@ -160,7 +160,7 @@ SUSv2 prescribes and .BR NAME_MAX , as found in \fI<limits.h>\fP or provided by the -.BR pathconf (3) +.MR pathconf 3 function. A typical source fragment would be .P @@ -200,15 +200,15 @@ According to POSIX.1-2001 a buffer of size suffices, but .B PATH_MAX need not be a defined constant, and may have to be obtained using -.BR pathconf (3). +.MR pathconf 3 . And asking -.BR pathconf (3) +.MR pathconf 3 does not really help, since, on the one hand POSIX warns that the result of -.BR pathconf (3) +.MR pathconf 3 may be huge and unsuitable for mallocing memory, and on the other hand -.BR pathconf (3) +.MR pathconf 3 may return \-1 to signify that .B PATH_MAX is not bounded. @@ -223,9 +223,9 @@ but standardized in POSIX.1-2008, allows this design problem to be avoided. .\" .BR mount (8) .\" needed a private version. .SH SEE ALSO -.BR realpath (1), -.BR readlink (2), -.BR canonicalize_file_name (3), -.BR getcwd (3), -.BR pathconf (3), -.BR sysconf (3) +.MR realpath 1 , +.MR readlink 2 , +.MR canonicalize_file_name 3 , +.MR getcwd 3 , +.MR pathconf 3 , +.MR sysconf 3 |