|
|
1.1 root 1:
2:
3: chdir() COHERENT System Call chdir()
4:
5:
6:
7:
8: Change working directory
9:
10: cchhddiirr(_d_i_r_e_c_t_o_r_y) cchhaarr *_d_i_r_e_c_t_o_r_y;
11:
12: The working directory (or _c_u_r_r_e_n_t _d_i_r_e_c_t_o_r_y) is the directory
13: from which the search for a file name begins if a path name does
14: not begin with `/'. By convention, the working directory has the
15: name `.'. chdir changes the working directory to the directory
16: pointed to by directory. This change is in effect until the
17: program exits or calls cchhddiirr again.
18:
19: ***** See Also *****
20:
21: cd, chmod(), chroot(), COHERENT system calls, directory
22:
23: ***** Diagnostics *****
24:
25: chdir returns zero if successful. It returns -1 if an error oc-
26: curred, e.g., that directory does not exist, is not a directory,
27: or is not searchable.
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.