Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

231 lines
6.4KB

  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. Unix specific configuration section:
  10. ---------------------------------------------------------------------------*/
  11. #ifndef __unxcfg_h
  12. #define __unxcfg_h
  13. /* LARGE FILE SUPPORT - 10/6/04 EG */
  14. /* This needs to be set before the includes so they set the right sizes */
  15. #if (defined(NO_LARGE_FILE_SUPPORT) && defined(LARGE_FILE_SUPPORT))
  16. # undef LARGE_FILE_SUPPORT
  17. #endif
  18. /* Automatically set ZIP64_SUPPORT if LFS */
  19. #ifdef LARGE_FILE_SUPPORT
  20. # if (!defined(NO_ZIP64_SUPPORT) && !defined(ZIP64_SUPPORT))
  21. # define ZIP64_SUPPORT
  22. # endif
  23. #endif
  24. /* NO_ZIP64_SUPPORT takes preceedence over ZIP64_SUPPORT */
  25. #if defined(NO_ZIP64_SUPPORT) && defined(ZIP64_SUPPORT)
  26. # undef ZIP64_SUPPORT
  27. #endif
  28. #ifdef LARGE_FILE_SUPPORT
  29. /* 64-bit Large File Support */
  30. /* The following Large File Summit (LFS) defines turn on large file support
  31. on Linux (probably 2.4 or later kernel) and many other unixen */
  32. /* These have to be before any include that sets types so the large file
  33. versions of the types are set in the includes */
  34. # define _LARGEFILE_SOURCE /* some OSes need this for fseeko */
  35. # define _LARGEFILE64_SOURCE
  36. # define _FILE_OFFSET_BITS 64 /* select default interface as 64 bit */
  37. # define _LARGE_FILES /* some OSes need this for 64-bit off_t */
  38. # define __USE_LARGEFILE64
  39. #endif /* LARGE_FILE_SUPPORT */
  40. #include <sys/types.h> /* off_t, time_t, dev_t, ... */
  41. #include <sys/stat.h>
  42. #ifdef NO_OFF_T
  43. typedef long zoff_t;
  44. #else
  45. typedef off_t zoff_t;
  46. #endif
  47. #define ZOFF_T_DEFINED
  48. typedef struct stat z_stat;
  49. #define Z_STAT_DEFINED
  50. #ifndef COHERENT
  51. # include <fcntl.h> /* O_BINARY for open() w/o CR/LF translation */
  52. #else /* COHERENT */
  53. # ifdef _I386
  54. # include <fcntl.h> /* Coherent 4.0.x, Mark Williams C */
  55. # else
  56. # include <sys/fcntl.h> /* Coherent 3.10, Mark Williams C */
  57. # endif
  58. # define SHORT_SYMS
  59. # ifndef __COHERENT__ /* Coherent 4.2 has tzset() */
  60. # define tzset settz
  61. # endif
  62. #endif /* ?COHERENT */
  63. #ifndef NO_PARAM_H
  64. # ifdef NGROUPS_MAX
  65. # undef NGROUPS_MAX /* SCO bug: defined again in <sys/param.h> */
  66. # endif
  67. # ifdef BSD
  68. # define TEMP_BSD /* may be defined again in <sys/param.h> */
  69. # undef BSD
  70. # endif
  71. # include <sys/param.h> /* conflict with <sys/types.h>, some systems? */
  72. # ifdef TEMP_BSD
  73. # undef TEMP_BSD
  74. # ifndef BSD
  75. # define BSD
  76. # endif
  77. # endif
  78. #endif /* !NO_PARAM_H */
  79. #ifdef __osf__
  80. # define DIRENT
  81. # ifdef BSD
  82. # undef BSD
  83. # endif
  84. #endif /* __osf__ */
  85. #ifdef __CYGWIN__
  86. # include <unistd.h>
  87. # define DIRENT
  88. # define HAVE_TERMIOS_H
  89. # ifndef timezone
  90. # define timezone _timezone
  91. # endif
  92. #endif
  93. #ifdef BSD
  94. # include <sys/time.h>
  95. # include <sys/timeb.h>
  96. # if (defined(_AIX) || defined(__GLIBC__) || defined(__GNU__))
  97. # include <time.h>
  98. # endif
  99. #else
  100. # include <time.h>
  101. struct tm *gmtime(), *localtime();
  102. #endif
  103. #if (defined(BSD4_4) || (defined(SYSV) && defined(MODERN)))
  104. # include <unistd.h> /* this includes utime.h on SGIs */
  105. # if (defined(BSD4_4) || defined(linux) || defined(__GLIBC__))
  106. # include <utime.h>
  107. # define GOT_UTIMBUF
  108. # endif
  109. # if (!defined(GOT_UTIMBUF) && (defined(__hpux) || defined(__SUNPRO_C)))
  110. # include <utime.h>
  111. # define GOT_UTIMBUF
  112. # endif
  113. # if (!defined(GOT_UTIMBUF) && defined(__GNU__))
  114. # include <utime.h>
  115. # define GOT_UTIMBUF
  116. # endif
  117. #endif
  118. #if (defined(__DGUX__) && !defined(GOT_UTIMBUF))
  119. /* DG/UX requires this because of a non-standard struct utimebuf */
  120. # include <utime.h>
  121. # define GOT_UTIMBUF
  122. #endif
  123. #if (defined(V7) || defined(pyr_bsd))
  124. # define strchr index
  125. # define strrchr rindex
  126. #endif
  127. #ifdef V7
  128. # define O_RDONLY 0
  129. # define O_WRONLY 1
  130. # define O_RDWR 2
  131. #endif
  132. #if defined(NO_UNICODE_SUPPORT) && defined(UNICODE_SUPPORT)
  133. /* disable Unicode (UTF-8) support when requested */
  134. # undef UNICODE_SUPPORT
  135. #endif
  136. #if (defined(_MBCS) && defined(NO_MBCS))
  137. /* disable MBCS support when requested */
  138. # undef _MBCS
  139. #endif
  140. #if (!defined(NO_SETLOCALE) && !defined(_MBCS))
  141. # if (!defined(UNICODE_SUPPORT) || !defined(UTF8_MAYBE_NATIVE))
  142. /* enable setlocale here, unless this happens later for UTF-8 and/or
  143. * MBCS support */
  144. # include <locale.h>
  145. # ifndef SETLOCALE
  146. # define SETLOCALE(category, locale) setlocale(category, locale)
  147. # endif
  148. # endif
  149. #endif
  150. #ifndef NO_SETLOCALE
  151. # if (!defined(NO_WORKING_ISPRINT) && !defined(HAVE_WORKING_ISPRINT))
  152. /* enable "enhanced" unprintable chars detection in fnfilter() */
  153. # define HAVE_WORKING_ISPRINT
  154. # endif
  155. #endif
  156. #ifdef MINIX
  157. # include <stdio.h>
  158. #endif
  159. #if (!defined(HAVE_STRNICMP) & !defined(NO_STRNICMP))
  160. # define NO_STRNICMP
  161. #endif
  162. #ifndef DATE_FORMAT
  163. # define DATE_FORMAT DF_MDY /* GRR: customize with locale.h somehow? */
  164. #endif
  165. #define lenEOL 1
  166. #ifdef EBCDIC
  167. # define PutNativeEOL *q++ = '\n';
  168. #else
  169. # define PutNativeEOL *q++ = native(LF);
  170. #endif
  171. #define SCREENSIZE(ttrows, ttcols) screensize(ttrows, ttcols)
  172. #define SCREENWIDTH 80
  173. #define SCREENLWRAP 1
  174. #define USE_EF_UT_TIME
  175. #if (!defined(NO_LCHOWN) || !defined(NO_LCHMOD))
  176. # define SET_SYMLINK_ATTRIBS
  177. #endif
  178. #ifdef MTS
  179. # ifdef SET_DIR_ATTRIB
  180. # undef SET_DIR_ATTRIB
  181. # endif
  182. #else /* !MTS */
  183. # define SET_DIR_ATTRIB
  184. # if (!defined(NOTIMESTAMP) && !defined(TIMESTAMP)) /* GRR 970513 */
  185. # define TIMESTAMP
  186. # endif
  187. # define RESTORE_UIDGID
  188. #endif /* ?MTS */
  189. /* Static variables that we have to add to Uz_Globs: */
  190. #define SYSTEM_SPECIFIC_GLOBALS \
  191. int created_dir, renamed_fullpath;\
  192. char *rootpath, *buildpath, *end;\
  193. ZCONST char *wildname;\
  194. char *dirname, matchname[FILNAMSIZ];\
  195. int rootlen, have_dirname, dirnamelen, notfirstcall;\
  196. zvoid *wild_dir;
  197. /* created_dir, and renamed_fullpath are used by both mapname() and */
  198. /* checkdir(). */
  199. /* rootlen, rootpath, buildpath and end are used by checkdir(). */
  200. /* wild_dir, dirname, wildname, matchname[], dirnamelen, have_dirname, */
  201. /* and notfirstcall are used by do_wild(). */
  202. #endif /* !__unxcfg_h */