Commit | Line | Data |
---|---|---|
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 | |
10 | chdir \- change default directory | |
11 | .SH SYNOPSIS | |
12 | .B integer function chdir (dirname) | |
13 | .br | |
14 | .B character*(*) dirname | |
15 | .SH DESCRIPTION | |
16 | The default directory for creating and locating files will be | |
17 | changed to | |
18 | .I dirname. | |
19 | Zero 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" | |
24 | chdir(2), cd(1), perror(3F) | |
25 | .SH BUGS | |
26 | Pathnames can be no longer than MAXPATHLEN as defined in | |
27 | .RI < sys/param.h >. | |
28 | .PP | |
29 | Use of this function may cause | |
30 | .B inquire | |
31 | by unit to fail. |