lemon-project-template-glpk

view deps/glpk/src/zlib/zio.h @ 11:4fc6ad2fb8a6

Test GLPK in src/main.cc
author Alpar Juttner <alpar@cs.elte.hu>
date Sun, 06 Nov 2011 21:43:29 +0100
parents
children
line source
1 /* zio.h (simulation of non-standard low-level i/o functions) */
3 /* Written by Andrew Makhorin <mao@gnu.org>, April 2011
4 * For conditions of distribution and use, see copyright notice in
5 * zlib.h */
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. */
11 #ifndef ZIO_H
12 #define ZIO_H
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
20 #define open _glp_zlib_open
21 int open(const char *path, int oflag, ...);
23 #define read _glp_zlib_read
24 long read(int fd, void *buf, unsigned long nbyte);
26 #define write _glp_zlib_write
27 long write(int fd, const void *buf, unsigned long nbyte);
29 #define lseek _glp_zlib_lseek
30 long lseek(int fd, long offset, int whence);
32 #define close _glp_zlib_close
33 int close(int fd);
35 #endif
37 /* eof */