X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=original%2Fman3%2Fgetcwd.3;h=c0f2d5dbb430d8b024dee2fc640f234dd5d3bca8;hb=e9e6c106d11bd9cca5f4a6585364b93f5ae3007a;hp=f8ecc5aa444859631b8c5dbba31884084150374e;hpb=c03a7a882c608ebf399d1b044ce7a6daa922351a;p=linuxjm%2FLDP_man-pages.git diff --git a/original/man3/getcwd.3 b/original/man3/getcwd.3 index f8ecc5aa..c0f2d5db 100644 --- a/original/man3/getcwd.3 +++ b/original/man3/getcwd.3 @@ -1,5 +1,6 @@ .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de) .\" +.\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. @@ -19,7 +20,8 @@ .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. -.\" License. +.\" %%%LICENSE_END +.\" .\" Modified Wed Jul 21 22:35:42 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified 18 Mar 1996 by Martin Schulze (joey@infodrom.north.de): .\" Corrected description of getwd(). @@ -29,7 +31,7 @@ .\" .TH GETCWD 3 2010-09-20 "GNU" "Linux Programmer's Manual" .SH NAME -getcwd, getwd, get_current_dir_name \- Get current working directory +getcwd, getwd, get_current_dir_name \- get current working directory .SH SYNOPSIS .nf .B #include @@ -151,7 +153,7 @@ furthermore, its value may depend on the file system, see For portability and security reasons, use of .BR getwd () is deprecated. -.SH "RETURN VALUE" +.SH RETURN VALUE On success, these functions return a pointer to a string containing the pathname of the current working directory. In the case @@ -159,7 +161,7 @@ In the case and .BR getwd () this is the same value as -.IR buf. +.IR buf . On failure, these functions return NULL, and .I errno @@ -181,7 +183,7 @@ The .I size argument is zero and .I buf -is not a null pointer. +is not a NULL pointer. .TP EINVAL .BR getwd (): @@ -203,7 +205,7 @@ The argument is less than the length of the absolute pathname of the working directory, including the terminating null byte. You need to allocate a bigger array and try again. -.SH "CONFORMING TO" +.SH CONFORMING TO .BR getcwd () conforms to POSIX.1-2001. Note however that POSIX.1-2001 leaves the behavior of @@ -244,7 +246,7 @@ directory (".") and calling .BR fchdir (2) to return is usually a faster and more reliable alternative when sufficiently many file descriptors are available, especially on platforms other than Linux. -.SH "SEE ALSO" +.SH SEE ALSO .BR chdir (2), .BR fchdir (2), .BR open (2),