xref: /haiku/src/tools/unzip/unix/unxcfg.h (revision 68ea01249e1e2088933cb12f9c28d4e5c5d1c9ef)
1 // That's exactly the BeOS configuration.
2 #if (!defined(__BEOS__) && !defined(__HAIKU__))
3 #  include <sys/types.h>          /* [cjh]:  This is pretty much a generic  */
4 #  include <sys/stat.h>           /* POSIX 1003.1 system; see beos/ for     */
5 #  include <fcntl.h>              /* extra code to deal with our extra file */
6 #  include <sys/param.h>          /* attributes. */
7 #  include <unistd.h>
8 #  include <utime.h>
9 #  define DIRENT
10 #  include <time.h>
11 #  ifndef DATE_FORMAT
12 #    define DATE_FORMAT DF_MDY  /* GRR:  customize with locale.h somehow? */
13 #  endif
14 #  define lenEOL        1
15 #  define PutNativeEOL  *q++ = native(LF);
16 #  define SCREENSIZE(ttrows, ttcols)  screensize(ttrows, ttcols)
17 #  define SCREENWIDTH 80
18 #  define USE_EF_UT_TIME
19 #  define SET_DIR_ATTRIB
20 #  if (!defined(NOTIMESTAMP) && !defined(TIMESTAMP))
21 #    define TIMESTAMP
22 #  endif
23 #  define RESTORE_UIDGID
24 #  define NO_STRNICMP             /* not in the x86 headers at least */
25 #  define INT_SPRINTF
26 #  define SYMLINKS
27 #  define MAIN main_stub          /* now that we're using a wrapper... */
28 #  ifndef EOK
29 #    define EOK B_OK
30 #  endif
31 
32 #  define HAIKU_USE_KERN_OPEN 1
33 #	define _kern_open	_kernbuild_open
34 extern int _kern_open(int fd, const char *path, int openMode, int perms);
35 
36 #endif	// !__BEOS__
37