Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fchdir(2) — DG/UX R4.11MU05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chroot(2)



fchdir(2)                      DG/UX R4.11MU05                     fchdir(2)


NAME
       fchdir - change the working directory of the calling process

SYNOPSIS
       #include <unistd.h>

       int  fchdir (int fildes)

   where:
       fildes    The open file descriptor of the desired working directory

DESCRIPTION
       Fildes refers to a directory that is made the current working
       directory of the calling process.  If fildes refers to a symbolic
       link, the target of the symbolic link is made the current working
       directory.

       If the call fails, the current working directory is not changed.

ACCESS CONTROL
       The calling process must have execute permission to the named
       directory.

RETURN VALUE
       0      The current directory was successfully changed.

       -1     An error occurred.  errno is set to indicate the error.

DIAGNOSTICS
       Errno may be set to one of the following error codes:

       EACCES         Execute permission to the directory is denied.

       EBADF          The fildes is not an open file descriptor.

       ENOTDIR        The open fildes does not reference a directory.

SEE ALSO
       chroot(2).


Licensed material--property of copyright holder(s)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026