Lots of man pages.
This commit is contained in:
parent
08df2a433e
commit
cfa37a7b11
152 changed files with 25407 additions and 148 deletions
37
man/man3/getwd.3
Normal file
37
man/man3/getwd.3
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
.TH GETWD 3
|
||||
.SH NAME
|
||||
getwd \- get current directory
|
||||
.SH SYNOPSIS
|
||||
.B #include <u.h>
|
||||
.br
|
||||
.B #include <libc.h>
|
||||
.PP
|
||||
.B
|
||||
char* getwd(char *buf, int size)
|
||||
.SH DESCRIPTION
|
||||
.I Getwd
|
||||
fills
|
||||
.I buf
|
||||
with a null-terminated string representing the current directory
|
||||
and returns
|
||||
.IR buf .
|
||||
.PP
|
||||
.I Getwd
|
||||
places no more than
|
||||
.I size
|
||||
bytes in the buffer provided.
|
||||
.SH SOURCE
|
||||
.B /sys/src/libc/9sys/getwd.c
|
||||
.SH "SEE ALSO"
|
||||
.IR pwd (1),
|
||||
.IR fd2path (2)
|
||||
.SH DIAGNOSTICS
|
||||
On error, zero is returned.
|
||||
.IR Errstr (2)
|
||||
may be consulted for more information.
|
||||
.SH BUGS
|
||||
Although the name returned by
|
||||
.I getwd
|
||||
is guaranteed to be the path used to reach the directory,
|
||||
if the name space has changed underfoot, the name may be
|
||||
incorrect.
|
||||
Loading…
Add table
Add a link
Reference in a new issue