1CHDIR(2)                      System Calls Manual                     CHDIR(2)
2
3
4

NAME

6       chdir, chroot - change default directory
7

SYNOPSIS

9       chdir(dirname)
10       char *dirname;
11
12       chroot(dirname)
13       char *dirname;
14

DESCRIPTION

16       Dirname  is the address of the pathname of a directory, terminated by a
17       null byte.  Chdir causes this directory to become the  current  working
18       directory, the starting point for path names not beginning with `/'.
19
20       Chroot  sets  the  root  directory,  the  starting point for path names
21       beginning with `/'.  The call is restricted to the super-user.
22

SEE ALSO

24       cd(1)
25

DIAGNOSTICS

27       Zero is returned if the directory is changed; -1  is  returned  if  the
28       given name is not that of a directory or is not searchable.
29

ASSEMBLER

31       (chdir = 12.)
32       sys chdir; dirname
33
34       (chroot = 61.)
35       sys chroot; dirname
36
37
38
39                                                                      CHDIR(2)
Impressum