1/*
2  Copyright (c) 1990-2009 Info-ZIP.  All rights reserved.
3
4  See the accompanying file LICENSE, version 2009-Jan-02 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    BeOS specific configuration section:
11  ---------------------------------------------------------------------------*/
12
13#ifndef __beocfg_h
14#define __beocfg_h
15
16#include <sys/types.h>          /* [cjh]:  This is pretty much a generic  */
17#include <sys/stat.h>           /* POSIX 1003.1 system; see beos/ for     */
18#include <fcntl.h>              /* extra code to deal with our extra file */
19#include <sys/param.h>          /* attributes. */
20#include <unistd.h>
21#include <utime.h>
22#define GOT_UTIMBUF
23#define DIRENT
24#include <time.h>
25#ifndef DATE_FORMAT
26#  define DATE_FORMAT DF_MDY    /* GRR:  customize with locale.h somehow? */
27#endif
28#define lenEOL          1
29#define PutNativeEOL    *q++ = native(LF);
30#define SCREENSIZE(ttrows, ttcols)  screensize(ttrows, ttcols)
31#define SCREENWIDTH     80
32#if (!defined(NO_EF_UT_TIME) && !defined(USE_EF_UT_TIME))
33#  define USE_EF_UT_TIME
34#endif
35#define SET_SYMLINK_ATTRIBS
36#define SET_DIR_ATTRIB
37#if (!defined(NOTIMESTAMP) && !defined(TIMESTAMP))
38#  define TIMESTAMP
39#endif
40#define RESTORE_UIDGID
41#define NO_STRNICMP             /* not in the x86 headers at least */
42#define INT_SPRINTF
43#define SYMLINKS
44#define MAIN main_stub          /* now that we're using a wrapper... */
45
46/* Static variables that we have to add to Uz_Globs: */
47#define SYSTEM_SPECIFIC_GLOBALS \
48    int created_dir, renamed_fullpath;\
49    char *rootpath, *buildpath, *end;\
50    ZCONST char *wildname;\
51    char *dirname, matchname[FILNAMSIZ];\
52    int rootlen, have_dirname, dirnamelen, notfirstcall;\
53    zvoid *wild_dir;
54
55/* created_dir, and renamed_fullpath are used by both mapname() and    */
56/*    checkdir().                                                      */
57/* rootlen, rootpath, buildpath and end are used by checkdir().        */
58/* wild_dir, dirname, wildname, matchname[], dirnamelen, have_dirname, */
59/*    and notfirstcall are used by do_wild().                          */
60
61#endif /* !__beocfg_h */
62