2011-03-30 13:49:47 +00:00
|
|
|
.TH CHDIR 2
|
|
|
|
.SH NAME
|
|
|
|
chdir \- change working directory
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B #include <u.h>
|
|
|
|
.br
|
|
|
|
.B #include <libc.h>
|
|
|
|
.PP
|
|
|
|
.B
|
|
|
|
int chdir(char *dirname)
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.I Chdir
|
|
|
|
changes the working directory
|
|
|
|
of the invoking process to
|
|
|
|
.IR dirname .
|
|
|
|
The working directory is the starting point for
|
|
|
|
evaluating file names that do not begin with
|
|
|
|
.L /
|
|
|
|
or
|
|
|
|
.LR # ,
|
|
|
|
as explained in
|
|
|
|
.IR intro (2).
|
|
|
|
When Plan 9 boots, the initial process has
|
|
|
|
.L /
|
|
|
|
for its working directory.
|
|
|
|
.SH SOURCE
|
|
|
|
.B /sys/src/libc/9syscall
|
|
|
|
.SH SEE ALSO
|
2020-08-25 11:21:24 +00:00
|
|
|
.IR intro (2),
|
|
|
|
.IR getwd (2)
|
2011-03-30 13:49:47 +00:00
|
|
|
.SH DIAGNOSTICS
|
|
|
|
Sets
|
|
|
|
.IR errstr .
|