Go to the source code of this file.
◆ zip_fdopen()
Definition at line 42 of file zip_fdopen.c.
57 if ((
fd =
dup(fd_orig)) < 0) {
62 if ((fp = fdopen(
fd,
"rb")) ==
NULL) {
static static fork const void static count close
ZIP_EXTERN zip_t *_Nullable zip_open_from_source(zip_source_t *_Nonnull, int, zip_error_t *_Nullable)
ZIP_EXTERN void zip_error_init(zip_error_t *_Nonnull)
ZIP_EXTERN zip_source_t *_Nullable zip_source_filep_create(FILE *_Nonnull, zip_uint64_t, zip_int64_t, zip_error_t *_Nullable)
ZIP_EXTERN void zip_error_fini(zip_error_t *_Nonnull)
ZIP_EXTERN void zip_source_free(zip_source_t *_Nullable)
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc static sig const char static mode dup
void error(const char *msg)
static const z80_opcode fd[]
void _zip_set_open_error(int *zep, const zip_error_t *err, int ze)
References _zip_set_open_error(), close, dup, error(), fd, benchmark::FILE, NULL, src, za, ZIP_CHECKCONS, ZIP_ER_INVAL, ZIP_ER_OPEN, zip_error_fini(), zip_error_init(), zip_open_from_source(), ZIP_RDONLY, zip_source_filep_create(), and zip_source_free().
Referenced by read_from_file().