diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
| commit | 97d5c458cfa039d857301e1ca7d5af3beb37131d (patch) | |
| tree | b460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man3/getwd.3 | |
| parent | b89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff) | |
build: Better Build System
Diffstat (limited to 'static/unix-v10/man3/getwd.3')
| -rw-r--r-- | static/unix-v10/man3/getwd.3 | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/static/unix-v10/man3/getwd.3 b/static/unix-v10/man3/getwd.3 new file mode 100644 index 00000000..3f26286d --- /dev/null +++ b/static/unix-v10/man3/getwd.3 @@ -0,0 +1,41 @@ +.TH GETWD 3 +.CT 2 dirs +.SH NAME +getwd, getcwd \(mi get current directory +.SH SYNOPSIS +.B char *getwd(buf) +.br +.B char *buf; +.PP +.B char *getcwd(buf, size) +.br +.B char *buf; +.SH DESCRIPTION +.I Getwd +and +.I getcwd +fill +.I buf +with a null-terminated string representing the current directory +and return +.IR buf . +.PP +.I Getwd +is in the style of BSD systems and +.I getcwd +in that of System V. +If +.I buf +is 0, +.I getcwd +will call +.IR malloc (3) +to allocate +.I size +bytes for the buffer. +.SH "SEE ALSO +.IR pwd (1) +.SH DIAGNOSTICS +On error, zero is returned and +.I buf +is filled with a diagnostic message. |
