1/*
2  Copyright (c) 1990-2004 Info-ZIP.  All rights reserved.
3
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
8*/
9/*---------------------------------------------------------------------------
10    AtheOS/Syllable specific configuration section:
11  ---------------------------------------------------------------------------*/
12
13#ifndef __athcfg_h
14#define __athcfg_h
15
16   /* ensure that Unix-specific code portions are excluded */
17#ifdef UNIX
18#  undef UNIX
19#endif
20#include <sys/types.h>          /* off_t, time_t, dev_t, ... */
21#include <sys/stat.h>
22#include <sys/param.h>
23#include <fcntl.h>              /* O_BINARY for open() w/o CR/LF translation */
24#include <limits.h>
25#include <time.h>
26#include <unistd.h>
27#include <utime.h>
28
29#define GOT_UTIMBUF
30#define DIRENT
31#if (!defined(HAVE_STRNICMP) & !defined(NO_STRNICMP))
32#  define NO_STRNICMP
33#endif
34#define INT_SPRINTF
35#define SYMLINKS
36
37#ifndef DATE_FORMAT
38#  define DATE_FORMAT DF_MDY    /* GRR:  customize with locale.h somehow? */
39#endif
40#define lenEOL          1
41#define PutNativeEOL    *q++ = native(LF);
42#define SCREENSIZE(ttrows, ttcols)  screensize(ttrows, ttcols)
43#define SCREENWIDTH     80
44#define SCREENLWRAP     1
45#if (!defined(NO_EF_UT_TIME) && !defined(USE_EF_UT_TIME))
46#  define USE_EF_UT_TIME
47#endif
48#define SET_SYMLINK_ATTRIBS
49#define SET_DIR_ATTRIB
50#if (!defined(NOTIMESTAMP) && !defined(TIMESTAMP))
51#  define TIMESTAMP
52#endif
53#define RESTORE_UIDGID
54
55/* Static variables that we have to add to Uz_Globs: */
56#define SYSTEM_SPECIFIC_GLOBALS \
57    int created_dir, renamed_fullpath;\
58    char *rootpath, *buildpath, *end;\
59    ZCONST char *wildname;\
60    char *dirname, matchname[FILNAMSIZ];\
61    int rootlen, have_dirname, dirnamelen, notfirstcall;\
62    zvoid *wild_dir;
63
64/* created_dir, and renamed_fullpath are used by both mapname() and    */
65/*    checkdir().                                                      */
66/* rootlen, rootpath, buildpath and end are used by checkdir().        */
67/* wild_dir, dirname, wildname, matchname[], dirnamelen, have_dirname, */
68/*    and notfirstcall are used by do_wild().                          */
69
70#endif /* !__athcfg_h */
71