beocfg.h 2.3 KB

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