Subversion Repositories spk

Rev

Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 211
Line 6... Line 6...
6
#include "gzguts.h"
6
#include "gzguts.h"
7
 
7
 
8
#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
8
#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
9
#  define LSEEK lseek64
9
#  define LSEEK lseek64
10
#else
10
#else
11
#  define LSEEK lseek
11
#  define LSEEK _lseek
12
#endif
12
#endif
13
 
13
 
14
/* Local functions */
14
/* Local functions */
15
local void gz_reset OF((gz_statep));
15
local void gz_reset OF((gz_statep));
16
local gzFile gz_open OF((const char *, int, const char *));
16
local gzFile gz_open OF((const char *, int, const char *));
Line 155... Line 155...
155
    }
155
    }
156
    strcpy(state->path, path);
156
    strcpy(state->path, path);
157
 
157
 
158
    /* open the file with the appropriate mode (or just use fd) */
158
    /* open the file with the appropriate mode (or just use fd) */
159
    state->fd = fd != -1 ? fd :
159
    state->fd = fd != -1 ? fd :
160
        open(path,
160
        _open(path,
161
#ifdef O_LARGEFILE
161
#ifdef O_LARGEFILE
162
            O_LARGEFILE |
162
            O_LARGEFILE |
163
#endif
163
#endif
164
#ifdef O_BINARY
164
#ifdef O_BINARY
165
            O_BINARY |
165
            O_BINARY |