lemon-project-template-glpk
diff deps/glpk/src/zlib/zio.h @ 9:33de93886c88
Import GLPK 4.47
author | Alpar Juttner <alpar@cs.elte.hu> |
---|---|
date | Sun, 06 Nov 2011 20:59:10 +0100 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/deps/glpk/src/zlib/zio.h Sun Nov 06 20:59:10 2011 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +/* zio.h (simulation of non-standard low-level i/o functions) */ 1.5 + 1.6 +/* Written by Andrew Makhorin <mao@gnu.org>, April 2011 1.7 + * For conditions of distribution and use, see copyright notice in 1.8 + * zlib.h */ 1.9 + 1.10 +/* WARNING: this file should *not* be used by applications. It is 1.11 + part of the implementation of the compression library and is 1.12 + subject to change. Applications should only use zlib.h. */ 1.13 + 1.14 +#ifndef ZIO_H 1.15 +#define ZIO_H 1.16 + 1.17 +#define O_RDONLY 0x00 1.18 +#define O_WRONLY 0x01 1.19 +#define O_CREAT 0x10 1.20 +#define O_TRUNC 0x20 1.21 +#define O_APPEND 0x30 1.22 + 1.23 +#define open _glp_zlib_open 1.24 +int open(const char *path, int oflag, ...); 1.25 + 1.26 +#define read _glp_zlib_read 1.27 +long read(int fd, void *buf, unsigned long nbyte); 1.28 + 1.29 +#define write _glp_zlib_write 1.30 +long write(int fd, const void *buf, unsigned long nbyte); 1.31 + 1.32 +#define lseek _glp_zlib_lseek 1.33 +long lseek(int fd, long offset, int whence); 1.34 + 1.35 +#define close _glp_zlib_close 1.36 +int close(int fd); 1.37 + 1.38 +#endif 1.39 + 1.40 +/* eof */