Low level File Operations (fnctl.h)

Header {z88dk}/include/fcntl.h
Source {z88dk}/libsrc/fcntl
Include #include <fnctl.h>
Linking Platform specific
Compile n/a
Comments These library functions are compiled as part of each target’s implicit library.

These functions implement low level file operations and need to be implemented for each target. Some platforms (for example the ZX Spectrum) have several implementations for different disc systems. A dummy version to satisfy linking requirements is within the ndos library which is linked by default on platforms without file support.

Standard Functions

int open(far char *name, int flags, mode_t mode)

int creat(far char *name, mode_t mode)

int close(int fd)

size_t read(int fd, void *ptr, size_t len)

size_t write(int fd, void *ptr, size_t len)

long lseek(int fd,long posn, int whence)

long tell(int fd)

int readbyte(int fd)

int writebyte(int fd, int c)

Z88dk Extensions

int open_z88(far char *name, int flags, mode_t mode, char *explicit, size_t len)

int nropen(char *name, int flags, mode_t mode, char *explicit, size_t len)

Other Functions

int mkdir(char *dir, int mode)

char *getcwd(char *buf, size_t maxlen)

int rmdir(char *dir)

Remove a directory (Sprinter only).

char *getwd(char *buf)

(Sprinter only).

 
library/fcntl.txt · Last modified: 2007/06/27 22:58 by dom
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki