subpack-glpk
Rev | Line | |
---|
[9] | 1 | /* zio.h (simulation of non-standard low-level i/o functions) */ |
---|
| 2 | |
---|
| 3 | /* Written by Andrew Makhorin <mao@gnu.org>, April 2011 |
---|
| 4 | * For conditions of distribution and use, see copyright notice in |
---|
| 5 | * zlib.h */ |
---|
| 6 | |
---|
| 7 | /* WARNING: this file should *not* be used by applications. It is |
---|
| 8 | part of the implementation of the compression library and is |
---|
| 9 | subject to change. Applications should only use zlib.h. */ |
---|
| 10 | |
---|
| 11 | #ifndef ZIO_H |
---|
| 12 | #define ZIO_H |
---|
| 13 | |
---|
| 14 | #define O_RDONLY 0x00 |
---|
| 15 | #define O_WRONLY 0x01 |
---|
| 16 | #define O_CREAT 0x10 |
---|
| 17 | #define O_TRUNC 0x20 |
---|
| 18 | #define O_APPEND 0x30 |
---|
| 19 | |
---|
| 20 | #define open _glp_zlib_open |
---|
| 21 | int open(const char *path, int oflag, ...); |
---|
| 22 | |
---|
| 23 | #define read _glp_zlib_read |
---|
| 24 | long read(int fd, void *buf, unsigned long nbyte); |
---|
| 25 | |
---|
| 26 | #define write _glp_zlib_write |
---|
| 27 | long write(int fd, const void *buf, unsigned long nbyte); |
---|
| 28 | |
---|
| 29 | #define lseek _glp_zlib_lseek |
---|
| 30 | long lseek(int fd, long offset, int whence); |
---|
| 31 | |
---|
| 32 | #define close _glp_zlib_close |
---|
| 33 | int close(int fd); |
---|
| 34 | |
---|
| 35 | #endif |
---|
| 36 | |
---|
| 37 | /* eof */ |
---|
Note: See
TracBrowser
for help on using the repository browser.