date and time created 91/03/22 14:27:55 by bostic
[unix-history] / usr / src / share / man / man3f / chdir.3
CommitLineData
cc7830fb
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.\"
6281a954 5.\" @(#)chdir.3 6.1 (Berkeley) %G%
cc7830fb 6.\"
6281a954 7.TH CHDIR 3F ""
cc7830fb
KM
8.UC 5
9.SH NAME
10chdir \- change default directory
11.SH SYNOPSIS
12.B integer function chdir (dirname)
13.br
14.B character*(*) dirname
15.SH DESCRIPTION
16The default directory for creating and locating files will be
17changed to
18.I dirname.
19Zero is returned if successful; an error code otherwise.
20.SH FILES
21.ie \nM /usr/ucb/lib/libU77.a
22.el /usr/lib/libU77.a
23.SH "SEE ALSO"
24chdir(2), cd(1), perror(3F)
25.SH BUGS
26Pathnames can be no longer than MAXPATHLEN as defined in
27.RI < sys/param.h >.
28.PP
29Use of this function may cause
30.B inquire
31by unit to fail.