466
|
1 <refentry id="chdir">
|
|
2 <refnamediv>
|
468
|
3 <refname>Chdir</refname>
|
|
4 <refname>Chxdir</refname>
|
|
5 <refpurpose>change directory</refpurpose>
|
466
|
6 </refnamediv>
|
|
7
|
|
8 <refsynopsisdiv>
|
|
9 <funcsynopsis>
|
|
10 <funcprototype>
|
|
11 <funcdef><function>chdir</function></funcdef>
|
472
|
12 <paramdef>char *<parameter>dirname</parameter></paramdef>
|
|
13 </funcprototype>
|
|
14
|
|
15 <funcprototype>
|
656
|
16 <funcdef><function>chxdir</function></funcdef>
|
472
|
17 <paramdef>char *<parameter>dirname</parameter></paramdef>
|
466
|
18 </funcprototype>
|
|
19 </funcsynopsis>
|
|
20
|
|
21 </refsynopsisdiv>
|
|
22
|
472
|
23 <refsect1><title>Assembler Equivalent</title>
|
|
24 <para>
|
|
25 os9 I$CHGDIR
|
|
26 </para>
|
|
27 </refsect1>
|
466
|
28 <refsect1><title>Description</title>
|
|
29 <para>
|
472
|
30 These calls change the current data directory and the current
|
|
31 execution directory, respectively, for the running task.
|
|
32 "Dirname" is a pointer to a string that gives a pathname for
|
|
33 a directory.
|
|
34 </para>
|
|
35 </refsect1>
|
|
36 <refsect1><title>Diagnostics</title>
|
|
37 <para>
|
|
38 Each call returns 0 after a successful call, or -1 if "dirname"
|
|
39 is not a directory path name, or it is not searchable.
|
|
40 </para>
|
|
41 </refsect1>
|
|
42 <refsect1><title>See Also</title>
|
|
43 <para>
|
|
44 OS-9 shell commands "chd" and "chx".
|
466
|
45 </para>
|
|
46 </refsect1>
|
|
47 </refentry>
|