add Berkeley specific header, written for compatibility
[unix-history] / usr / src / lib / libc / gen / getcwd.3
CommitLineData
861bcf00
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
1ff03aa2 5.\" @(#)getcwd.3 6.2 (Berkeley) %G%
861bcf00 6.\"
9594a5eb 7.TH GETWD 3 ""
861bcf00
KM
8.UC 5
9.SH NAME
10getwd \- get current working directory pathname
11.SH SYNOPSIS
12.nf
13.B char *getwd(pathname)
14.B char *pathname;
15.fi
16.SH DESCRIPTION
17.I Getwd
18copies the absolute pathname of the current working directory to
19.I pathname
20and returns a pointer to the result.
21.SH LIMITATIONS
9594a5eb
KM
22Maximum pathname length is MAXPATHLEN characters (1024),
23as defined in
24.I <sys/param.h>.
861bcf00
KM
25.SH DIAGNOSTICS
26.I Getwd
27returns zero and places a message in
28.I pathname
29if an error occurs.