FILDES - descriptors for various file functions.

Usage:

#include <fildes.h>

Description:

This file #defines a number of descriptors used by "fildes" functions. These functions are

access    close     creat    fdopen
fileno    fileptr   lseek    open
read      write

<fildes.h> also references the external variable "_fdv", an array that is used to maintain file descriptors.

Notes:

The "fildes" functions are attempts to emulate UNIX system calls. Since GCOS8 I/O is based on different concepts, the emulation will never be perfect. Users are STRONGLY urged to use the <stdio.h> I/O functions instead of the "fildes" ones.

"fildes" calls cannot be used on arbitrary files. Typically, "fildes" calls can only be used on files that were created and written with other "fildes" calls.

On GCOS8, "fildes" functions are implemented using <stdio.h> functions. On UNIX, the reverse is true. For this reason, the GCOS8 functions "fileno", "fileptr", and "fdopen" (which perform mappings between "fildes" and <stdio.h> routines) may not behave the same as their UNIX counterparts.

Copyright © 1996, Thinkage Ltd.