File: vmmvs.h

package info (click to toggle)
unzip 6.0-26%2Bdeb11u1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 10,300 kB
  • sloc: ansic: 55,351; cpp: 4,084; makefile: 2,479; asm: 1,789; cs: 1,012; sh: 120
file content (96 lines) | stat: -rw-r--r-- 2,710 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
  Copyright (c) 1990-2008 Info-ZIP.  All rights reserved.

  See the accompanying file LICENSE, version 2007-Mar-04 or later
  (the contents of which are also included in unzip.h) for terms of use.
  If, for some reason, all these files are missing, the Info-ZIP license
  also may be found at:  ftp://ftp.info-zip.org/pub/infozip/license.html
*/
/* vmmvs.h:  include file for both VM/CMS and MVS ports of UnZip */
#ifndef __vmmvs_h               /* prevent multiple inclusions */
#define __vmmvs_h

#ifndef NULL
#  define NULL (zvoid *)0
#endif

#ifdef MVS
#  define _POSIX_SOURCE    /* tell MVS we want full definitions */
#  define NO_STRNICMP      /* MVS has no strnicmp() */
#  include <features.h>
   /* MVS complains if a function has the same name as a csect. */
#  if defined(__UNZIP_C)
#    pragma csect(STATIC,"unzip_s")
#  elif defined(__CRC32_C)
#    pragma csect(STATIC,"crc32_s")
#  elif defined(__ENVARGS_C)
#    pragma csect(STATIC,"envarg_s")
#  elif defined(__EXPLODE_C)
#    pragma csect(STATIC,"explod_s")
#  elif defined(__INFLATE_C)
#    pragma csect(STATIC,"inflat_s")
#  elif defined(__MATCH_C)
#    pragma csect(STATIC,"match_s")
#  elif defined(__UNREDUCE_C)
#    pragma csect(STATIC,"unredu_s")
#  elif defined(__UNSHRINK_C)
#    pragma csect(STATIC,"unshri_s")
#  elif defined(__ZIPINFO_C)
#    pragma csect(STATIC,"zipinf_s")
#  endif
#endif /* MVS */

#include <time.h>               /* the usual non-BSD time functions */
#ifdef VM_CMS
#  include "vmstat.h"
#endif
#ifdef MVS
#  include <sys/stat.h>
#endif

#define PASSWD_FROM_STDIN
                  /* Kludge until we know how to open a non-echo tty channel */

#define EBCDIC
/* In the context of Info-ZIP, a portable "text" mode file implies the use of
   an ASCII-compatible (ISO 8859-1, or other extended ASCII) code page. */

#ifdef MORE
#  undef MORE
#endif

/* Workarounds for missing RTL functionality */
#define isatty(t) 1

#ifdef UNZIP                    /* definitions for UNZIP */

#define INBUFSIZ 8192

#define USE_STRM_INPUT
#define USE_FWRITE

#define PATH_MAX 128

#ifndef QUERY_TRNEWLN
#  define QUERY_TRNEWLN         /* terminate interaction queries with '\n' */
#endif

#ifndef DATE_FORMAT
#  define DATE_FORMAT DF_MDY
#endif
#define lenEOL        1
/* The use of "ebcdic[LF]" is not reliable; VM/CMS C/370 uses the
 * EBCDIC specific "NL" ('NewLine') control character (and not the EBCDIC
 * equivalent of the ASCII "LF" ('LineFeed')) as line terminator!
 * To work around this problem, we explicitely emit the C compiler's native
 * '\n' line terminator.
 */
#if 0
#define PutNativeEOL  *q++ = native(LF);
#else
#define PutNativeEOL  *q++ = '\n';
#endif

#endif /* UNZIP */

#endif /* !__vmmvs_h */