COIN-OR::LEMON - Graph Library

source: lemon-project-template-glpk/deps/glpk/src/zlib/zio.h @ 9:33de93886c88

subpack-glpk
Last change on this file since 9:33de93886c88 was 9:33de93886c88, checked in by Alpar Juttner <alpar@…>, 12 years ago

Import GLPK 4.47

File size: 922 bytes
Line 
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
21int open(const char *path, int oflag, ...);
22
23#define read _glp_zlib_read
24long read(int fd, void *buf, unsigned long nbyte);
25
26#define write _glp_zlib_write
27long write(int fd, const void *buf, unsigned long nbyte);
28
29#define lseek _glp_zlib_lseek
30long lseek(int fd, long offset, int whence);
31
32#define close _glp_zlib_close
33int close(int fd);
34
35#endif
36
37/* eof */
Note: See TracBrowser for help on using the repository browser.