source: trunk/minix/man/man3/getcwd.3@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 932 bytes
Line 
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.\"
5.\" @(#)getwd.3 6.2 (Berkeley) 5/12/86
6.\"
7.TH GETCWD 3 "May 12, 1986"
8.UC 5
9.SH NAME
10getcwd \- get current working directory pathname
11.SH SYNOPSIS
12.nf
13.ft B
14#include <unistd.h>
15
16char *getcwd(char *\fIpathname\fP, size_t \fIlen\fP)
17.fi
18.SH DESCRIPTION
19.B Getcwd
20copies the absolute pathname of the current working directory to
21.I pathname
22and returns a pointer to the result.
23.I Pathname
24is a character array of length
25.IR len .
26.SH DIAGNOSTICS
27.B Getcwd
28returns a null pointer and sets
29.B errno
30if an error occurs. The error will reflect the system call errors that
31may occur if the path to the current directory is searched upwards to
32the root directory. The error
33.B ERANGE
34is returned if the result does not fit within
35.I len
36bytes.
Note: See TracBrowser for help on using the repository browser.