Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fd_chdir(3H) — Pixar HSI 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fd_chdir(3H)

fd_create(3H)

fd_directory(3H)

fd_mkdir(3H)

fd_open(3H)

fd_rename(3H)

fd_stat(3H)

fd_statfs(3H)

fd_truncate(3H)

fd_unlink(3H)

libfd(3H)

fdcwd(7)

FD_CHDIR(3H)  —  Pixar Programmer’s Manual — libfd

NAME

fd_chdir− change current fast-disk working directory
fd_getwd− obtain current fast-disk working directory

SYNOPSIS

#include <fd.h>

fd_chdir(path)
char ∗path;

char ∗fd_getwd(pathp)
char ∗pathp;

DESCRIPTION

Libfd maintains a current working directory, which is used by Fast-Disk library services (for example, fd_create(3H)) to resolve the absolute location of pathnames that do not begin with a ‘/’. Fd_chdir changes the current Fast-Disk working directory to be path. Upon successful completion, fd_chdir returns 0; otherwise, a value of −1 is returned and errno is set to indicate the error. 

Fd_getwd copies a NUL-terminated string representing the current Fast-Disk working directory into the buffer pointed to by pathp. The buffer must be at least FD_MAXPATH+1 characters long.  fd_getwd returns its argument. 

ERRORS

fd_chdir will fail and the current Fast-Disk working directory will be unchanged under the following circumstances:

[ENOTDIR] A component of the path prefix, or path itself is not a Fast-Disk directory. 

[ENOENT] A component of the path name that must exist does not exist. 

[ENAMETOOLONG]
The absolute pathname of the new current working directory would exceed FD_MAXPATH characters. 

[EIO] A disk I/O error occurred. 

SEE ALSO

fd_chdir(3H), fd_create(3H), fd_directory(3H), fd_mkdir(3H), fd_open(3H), fd_rename(3H), fd_stat(3H), fd_statfs(3H), fd_truncate(3H), fd_unlink(3H), libfd(3H), fdcwd(7)

Release β  —  Last change: 10/12/88

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