/usr/share/z88dk/include/fcntl.h is in z88dk-data 1.8.ds1-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | /*
* Small C+ Library
*
* fnctl.h - low level file routines
*
* djm 27/4/99
*
* $Id: fcntl.h,v 1.7 2007/06/27 20:59:34 dom Exp $
*/
#ifndef __FCNTL_H__
#define __FCNTL_H__
#include <sys/types.h>
#define O_RDONLY 0
#define O_WRONLY 1
#define O_APPEND 256
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
/* O_BINARY has no significence */
#define O_BINARY 0
typedef int mode_t;
extern int __LIB__ open(far char *name, int flags, mode_t mode);
extern int __LIB__ creat(far char *name, mode_t mode);
extern int __LIB__ close(int fd);
extern size_t __LIB__ read(int fd, void *ptr, size_t len);
extern size_t __LIB__ write(int fd, void *ptr, size_t len);
extern long __LIB__ lseek(int fd,long posn, int whence);
extern long __LIB__ tell(int fd);
extern int __LIB__ __FASTCALL__ readbyte(int fd);
extern int __LIB__ writebyte(int fd, int c);
/* Open a file returning the explicit filename, with length len */
extern int __LIB__ open_z88(far char *name, int flags, mode_t mode, char *explicit, size_t len);
/* As above except the filename is near - good for ZSock devices (z88)*/
extern int __LIB__ nropen(char *name, int flags, mode_t mode, char *explicit, size_t len);
extern int __LIB__ mkdir(char *, int mode);
extern char __LIB__ *getcwd(char *buf, size_t maxlen);
/* Following two only implemented for Sprinter ATM (20.11.2002) */
extern int __LIB__ rmdir(char *);
extern char __LIB__ *getwd(char *buf);
#endif /* _FCNTL_H */
|