2
Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
4
See the accompanying file LICENSE, version 2000-Apr-09 or later
5
(the contents of which are also included in unzip.h) for terms of use.
6
If, for some reason, all these files are missing, the Info-ZIP license
7
also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
9
/*---------------------------------------------------------------------------
10
Unix specific configuration section:
11
---------------------------------------------------------------------------*/
16
#include <sys/types.h> /* off_t, time_t, dev_t, ... */
21
# include <fcntl.h> /* O_BINARY for open() w/o CR/LF translation */
24
# include <fcntl.h> /* Coherent 4.0.x, Mark Williams C */
26
# include <sys/fcntl.h> /* Coherent 3.10, Mark Williams C */
29
# ifndef __COHERENT__ /* Coherent 4.2 has tzset() */
32
#endif /* ?COHERENT */
36
# undef NGROUPS_MAX /* SCO bug: defined again in <sys/param.h> */
39
# define TEMP_BSD /* may be defined again in <sys/param.h> */
42
# include <sys/param.h> /* conflict with <sys/types.h>, some systems? */
49
#endif /* !NO_PARAM_H */
61
# define HAVE_TERMIOS_H
63
# define timezone _timezone
68
# include <sys/time.h>
69
# include <sys/timeb.h>
70
# if (defined(_AIX) || defined(__GLIBC__) || defined(__GNU__))
75
struct tm *gmtime(), *localtime();
78
#if (defined(BSD4_4) || (defined(SYSV) && defined(MODERN)))
79
# include <unistd.h> /* this includes utime.h on SGIs */
80
# if (defined(BSD4_4) || defined(linux) || defined(__GLIBC__))
84
# if (!defined(GOT_UTIMBUF) && defined(__GNU__))
89
#if (defined(__DGUX__) && !defined(GOT_UTIMBUF))
90
/* DG/UX requires this because of a non-standard struct utimebuf */
95
#if (defined(V7) || defined(pyr_bsd))
97
# define strrchr rindex
108
#if (!defined(HAVE_STRNICMP) & !defined(NO_STRNICMP))
112
# define DATE_FORMAT DF_MDY /* GRR: customize with locale.h somehow? */
116
# define PutNativeEOL *q++ = '\n';
118
# define PutNativeEOL *q++ = native(LF);
120
#define SCREENSIZE(ttrows, ttcols) screensize(ttrows, ttcols)
121
#define SCREENWIDTH 80
122
#define SCREENLWRAP 1
123
#define USE_EF_UT_TIME
124
#define SET_DIR_ATTRIB
125
#if (!defined(NOTIMESTAMP) && !defined(TIMESTAMP)) /* GRR 970513 */
128
#define RESTORE_UIDGID
130
/* Static variables that we have to add to Uz_Globs: */
131
#define SYSTEM_SPECIFIC_GLOBALS \
132
int created_dir, renamed_fullpath;\
133
char *rootpath, *buildpath, *end;\
134
ZCONST char *wildname;\
135
char *dirname, matchname[FILNAMSIZ];\
136
int rootlen, have_dirname, dirnamelen, notfirstcall;\
139
/* created_dir, and renamed_fullpath are used by both mapname() and */
141
/* rootlen, rootpath, buildpath and end are used by checkdir(). */
142
/* wild_dir, dirname, wildname, matchname[], dirnamelen, have_dirname, */
143
/* and notfirstcall are used by do_wild(). */
145
#endif /* !__unxcfg_h */