2005-07-14 14:55:50 +00:00
|
|
|
.\" Copyright 2005 walter harms (walter.harms@informatik.uni-oldenburg.de)
|
2007-09-20 06:52:22 +00:00
|
|
|
.\" and Copyright 2005 Michael Kerrisk (mtk.manpages@gmail.com).
|
2005-07-14 14:55:50 +00:00
|
|
|
.\" Distributed under the GNU General Public License.
|
|
|
|
.\"
|
2007-05-18 08:43:42 +00:00
|
|
|
.TH CANONICALIZE_FILE_NAME 3 2005-07-14 "GNU" "Linux Programmer's Manual"
|
2005-07-14 13:55:28 +00:00
|
|
|
.SH NAME
|
2005-07-14 14:55:50 +00:00
|
|
|
canonicalize_file_name \- return the canonicalized filename
|
2005-07-14 13:55:28 +00:00
|
|
|
.SH SYNOPSIS
|
getresuid.2, mremap.2, poll.2, remap_file_pages.2, setresuid.2, splice.2, sync_file_range.2, syscall.2, tee.2, vmsplice.2, INFINITY.3, aio_init.3, asprintf.3, assert_perror.3, basename.3, bsd_signal.3, canonicalize_file_name.3, clog10.3, crypt.3, dl_iterate_phdr.3, dlopen.3, encrypt.3, exp10.3, fcloseall.3, fenv.3, fopencookie.3, ftw.3, getaddrinfo_a.3, getloadavg.3, getutent.3, grantpt.3, hsearch.3, lseek64.3, memmem.3, mempcpy.3, pow10.3, program_invocation_name.3, ptsname.3, putgrent.3, sched_getcpu.3, sincos.3, strchr.3, strfry.3, strnlen.3, strptime.3, strstr.3, strverscmp.3, swab.3, sysv_signal.3, tsearch.3, unlockpt.3, wcwidth.3: Add reference to feature_test_macros(7)
Some pages simply list feature test macro requirements in
the form:
#define #GNU_SOURCE
#include <someheader.h>
For these pages, add a "See feature_test_macros(7)" comment
on the "#define" line.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-10-31 04:31:47 +00:00
|
|
|
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
|
2005-07-14 13:55:28 +00:00
|
|
|
.br
|
|
|
|
.B #include <stdlib.h>
|
|
|
|
.sp
|
2007-04-03 15:32:52 +00:00
|
|
|
.BI "char *canonicalize_file_name(const char *" path ");"
|
2005-07-14 13:55:28 +00:00
|
|
|
.SH DESCRIPTION
|
2005-07-14 14:55:50 +00:00
|
|
|
The call
|
|
|
|
.I canonicalize_file_name(path)
|
|
|
|
is equivalent to the call
|
|
|
|
.IR "realpath(path,\ NULL)" .
|
2005-07-14 13:55:28 +00:00
|
|
|
.SH "CONFORMING TO"
|
|
|
|
The function is a GNU extension.
|
|
|
|
.SH "SEE ALSO"
|
getresuid.2, intro.2, mremap.2, open.2, poll.2, posix_fadvise.2, pread.2, remap_file_pages.2, setresuid.2, signal.2, splice.2, sync_file_range.2, tee.2, vmsplice.2, INFINITY.3, asprintf.3, assert_perror.3, basename.3, bsd_signal.3, canonicalize_file_name.3, clog10.3, crypt.3, dl_iterate_phdr.3, dlopen.3, dprintf.3, encrypt.3, exp10.3, fcloseall.3, fenv.3, ffs.3, fmemopen.3, fopencookie.3, ftw.3, getdate.3, getline.3, getloadavg.3, getopt.3, getsubopt.3, getutent.3, grantpt.3, hsearch.3, intro.3, lseek64.3, memmem.3, mempcpy.3, mq_receive.3, mq_send.3, posix_fallocate.3, pow10.3, program_invocation_name.3, ptsname.3, putgrent.3, readdir.3, sigset.3, sincos.3, stpcpy.3, stpncpy.3, strchr.3, strfry.3, strnlen.3, strptime.3, strsignal.3, strstr.3, strverscmp.3, swab.3, sysv_signal.3, tsearch.3, unlocked_stdio.3, unlockpt.3, wcpcpy.3, wcpncpy.3, wcsdup.3, wcwidth.3: SEE ALSO: Remove redundant reference to feature_test_macros(7)
Reported-by: Florian Lehmann <flo.lehmann@googlemail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-10-31 05:05:22 +00:00
|
|
|
.BR realpath (3)
|