123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- #ifndef __cmsmvs_h
- #define __cmsmvs_h
- #ifdef MVS
- # define _POSIX_SOURCE
- # include <features.h>
- #endif
- #include <time.h> /* the usual non-BSD time functions */
- #ifdef MVS
- # include <sys/stat.h>
- # include <sys/modes.h>
- #else
- # include "cstat.h"
- #endif
- #if defined(__VM__) && !defined(VM_CMS)
- # define VM_CMS
- #endif
- #define CMS_MVS
- #define EBCDIC
- #ifndef MVS
- # define NO_UNISTD_H
- # define NO_FCNTL_H
- #endif
- #ifdef CMS_STAND_ALONE
- # define USE_ZIPMAIN
- #endif
- #ifndef NULL
- # define NULL 0
- #endif
- #define PASSWD_FROM_STDIN
-
- #define getch() getc(stdin)
- #define MAXPATHLEN 128
- #define NO_RMDIR
- #define NO_MKTEMP
- #define USE_CASE_MAP
- #define isatty(t) 1
- #ifndef MVS
- # define fileno(x) (char *)(x)
- # define fdopen fopen
- # define unlink remove
- # define link rename
- # define utime(f,t)
- #endif
- #ifdef ZCRYPT_INTERNAL
- # define ZCR_SEED2 (unsigned)3141592654L
- #endif
- #ifdef MVS
- # if defined(__CRC32_C)
- # pragma csect(STATIC,"crc32_s")
- # elif defined(__DEFLATE_C)
- # pragma csect(STATIC,"deflat_s")
- # elif defined(__ZIPFILE_C)
- # pragma csect(STATIC,"zipfil_s")
- # elif defined(__ZIPUP_C)
- # pragma csect(STATIC,"zipup_s")
- # endif
- #endif
- #if 0
- #define FOPR "rb,recfm=fb"
- #define FOPM "r+"
- #define FOPW "wb,recfm=fb,lrecl=1"
- #define FOPWT "w"
- #endif
- #define FOPR "rb,byteseek"
- #define FOPM "r+,byteseek"
- #ifdef MVS
- #define FOPW "wb,recfm=u,byteseek"
- #else
- #define FOPW "wb,recfm=v,lrecl=32760,byteseek"
- #endif
- #if 0
- #define FOPW_TMP "w,byteseek"
- #else
- #define FOPW_TMP "w,type=memory(hiperspace)"
- #endif
- #define CBSZ 0x40000
- #define ZBSZ 0x40000
- #endif
|