124 if (*mode >=
'0' && *mode <=
'9')
125 state->level = *mode -
'0';
131 #ifndef NO_GZCOMPRESS 161 state->strategy =
Z_RLE;
193 len = wcstombs(NULL, path, 0);
194 if (len == (
size_t)-1)
199 len = strlen((
const char *)path);
200 state->path = (
char *)malloc(len + 1);
201 if (state->path == NULL) {
208 wcstombs(state->path, path, len + 1);
213 #if !defined(NO_snprintf) && !defined(NO_vsnprintf) 214 snprintf(state->path, len + 1,
"%s", (
const char *)path);
216 strcpy(state->path, path);
228 (cloexec ? O_CLOEXEC : 0) |
232 (O_WRONLY | O_CREAT |
234 (exclusive ? O_EXCL : 0) |
241 state->fd =
fd > -1 ?
fd : (
243 fd == -2 ? _wopen(path, oflag, 0666) :
245 open((
const char *)path, oflag, 0666));
246 if (state->fd == -1) {
257 if (state->start == -1) state->start = 0;
int fd
Definition: arduino_lib.cpp:61
#define SEEK_CUR
Definition: zconf.h:476
#define GZ_NONE
Definition: gzguts.h:150
#define GZ_APPEND
Definition: gzguts.h:153
#define GZ_READ
Definition: gzguts.h:151
static void gz_reset(gz_statep state)
Definition: gzlib.c:75
#define Z_FILTERED
Definition: zlib.h:192
#define Z_FIXED
Definition: zlib.h:195
#define GZ_WRITE
Definition: gzguts.h:152
#define LSEEK
Definition: gzlib.c:14
#define Z_HUFFMAN_ONLY
Definition: zlib.h:193
#define GZBUFSIZE
Definition: gzguts.h:147
gz_state FAR * gz_statep
Definition: gzguts.h:193
#define Z_DEFAULT_STRATEGY
Definition: zlib.h:196
#define const
Definition: zconf.h:217
#define Z_DEFAULT_COMPRESSION
Definition: zlib.h:189
#define Z_RLE
Definition: zlib.h:194