From 2d04cacc5322951f187bb17e017c12920ac8ebe2 Mon Sep 17 00:00:00 2001 From: Mark Zbikowski Date: Thu, 25 Apr 2024 21:24:10 +0100 Subject: MZ is back! --- v4.0/src/TOOLS/BLD/INC/ASSERT.H | 35 ++++++ v4.0/src/TOOLS/BLD/INC/BIOS.H | 181 ++++++++++++++++++++++++++++ v4.0/src/TOOLS/BLD/INC/CONIO.H | 34 ++++++ v4.0/src/TOOLS/BLD/INC/CTYPE.H | 66 +++++++++++ v4.0/src/TOOLS/BLD/INC/DIRECT.H | 24 ++++ v4.0/src/TOOLS/BLD/INC/DOS.H | 220 +++++++++++++++++++++++++++++++++++ v4.0/src/TOOLS/BLD/INC/ERRNO.H | 50 ++++++++ v4.0/src/TOOLS/BLD/INC/FCNTL.H | 35 ++++++ v4.0/src/TOOLS/BLD/INC/FLOAT.H | 137 ++++++++++++++++++++++ v4.0/src/TOOLS/BLD/INC/GRAPH.H | 216 ++++++++++++++++++++++++++++++++++ v4.0/src/TOOLS/BLD/INC/IO.H | 43 +++++++ v4.0/src/TOOLS/BLD/INC/LIMITS.H | 32 +++++ v4.0/src/TOOLS/BLD/INC/MALLOC.H | 124 ++++++++++++++++++++ v4.0/src/TOOLS/BLD/INC/MATH.H | 112 ++++++++++++++++++ v4.0/src/TOOLS/BLD/INC/MEMORY.H | 34 ++++++ v4.0/src/TOOLS/BLD/INC/PROCESS.H | 65 +++++++++++ v4.0/src/TOOLS/BLD/INC/SEARCH.H | 31 +++++ v4.0/src/TOOLS/BLD/INC/SETJMP.H | 35 ++++++ v4.0/src/TOOLS/BLD/INC/SHARE.H | 15 +++ v4.0/src/TOOLS/BLD/INC/SIGNAL.H | 59 ++++++++++ v4.0/src/TOOLS/BLD/INC/STDARG.H | 20 ++++ v4.0/src/TOOLS/BLD/INC/STDDEF.H | 48 ++++++++ v4.0/src/TOOLS/BLD/INC/STDIO.H | 165 ++++++++++++++++++++++++++ v4.0/src/TOOLS/BLD/INC/STDLIB.H | 151 ++++++++++++++++++++++++ v4.0/src/TOOLS/BLD/INC/STRING.H | 61 ++++++++++ v4.0/src/TOOLS/BLD/INC/SYS/LOCKING.H | 16 +++ v4.0/src/TOOLS/BLD/INC/SYS/STAT.H | 56 +++++++++ v4.0/src/TOOLS/BLD/INC/SYS/TIMEB.H | 39 +++++++ v4.0/src/TOOLS/BLD/INC/SYS/TYPES.H | 31 +++++ v4.0/src/TOOLS/BLD/INC/SYS/UTIME.H | 40 +++++++ v4.0/src/TOOLS/BLD/INC/TIME.H | 75 ++++++++++++ v4.0/src/TOOLS/BLD/INC/VARARGS.H | 21 ++++ v4.0/src/TOOLS/BLD/LIB/BINMODE.OBJ | Bin 0 -> 127 bytes v4.0/src/TOOLS/BLD/LIB/CLIBCE.LIB | Bin 0 -> 205245 bytes v4.0/src/TOOLS/BLD/LIB/CLIBCR.LIB | Bin 0 -> 141301 bytes v4.0/src/TOOLS/BLD/LIB/CLIBFP.LIB | Bin 0 -> 38307 bytes v4.0/src/TOOLS/BLD/LIB/CVARSTCK.OBJ | Bin 0 -> 487 bytes v4.0/src/TOOLS/BLD/LIB/EM.LIB | Bin 0 -> 16921 bytes v4.0/src/TOOLS/BLD/LIB/GRAPHICS.LIB | Bin 0 -> 59357 bytes v4.0/src/TOOLS/BLD/LIB/LIBH.LIB | Bin 0 -> 14209 bytes v4.0/src/TOOLS/BLD/LIB/LLIBCE.LIB | Bin 0 -> 210877 bytes v4.0/src/TOOLS/BLD/LIB/LLIBCR.LIB | Bin 0 -> 142837 bytes v4.0/src/TOOLS/BLD/LIB/LLIBFP.LIB | Bin 0 -> 39331 bytes v4.0/src/TOOLS/BLD/LIB/LVARSTCK.OBJ | Bin 0 -> 487 bytes v4.0/src/TOOLS/BLD/LIB/MLIBCE.LIB | Bin 0 -> 196997 bytes v4.0/src/TOOLS/BLD/LIB/MLIBCR.LIB | Bin 0 -> 133071 bytes v4.0/src/TOOLS/BLD/LIB/MLIBFP.LIB | Bin 0 -> 38305 bytes v4.0/src/TOOLS/BLD/LIB/MVARSTCK.OBJ | Bin 0 -> 507 bytes v4.0/src/TOOLS/BLD/LIB/SETARGV.OBJ | Bin 0 -> 143 bytes v4.0/src/TOOLS/BLD/LIB/SLIBCE.LIB | Bin 0 -> 194437 bytes v4.0/src/TOOLS/BLD/LIB/SLIBCR.LIB | Bin 0 -> 132047 bytes v4.0/src/TOOLS/BLD/LIB/SLIBFP.LIB | Bin 0 -> 37281 bytes v4.0/src/TOOLS/BLD/LIB/SVARSTCK.OBJ | Bin 0 -> 507 bytes 53 files changed, 2271 insertions(+) create mode 100644 v4.0/src/TOOLS/BLD/INC/ASSERT.H create mode 100644 v4.0/src/TOOLS/BLD/INC/BIOS.H create mode 100644 v4.0/src/TOOLS/BLD/INC/CONIO.H create mode 100644 v4.0/src/TOOLS/BLD/INC/CTYPE.H create mode 100644 v4.0/src/TOOLS/BLD/INC/DIRECT.H create mode 100644 v4.0/src/TOOLS/BLD/INC/DOS.H create mode 100644 v4.0/src/TOOLS/BLD/INC/ERRNO.H create mode 100644 v4.0/src/TOOLS/BLD/INC/FCNTL.H create mode 100644 v4.0/src/TOOLS/BLD/INC/FLOAT.H create mode 100644 v4.0/src/TOOLS/BLD/INC/GRAPH.H create mode 100644 v4.0/src/TOOLS/BLD/INC/IO.H create mode 100644 v4.0/src/TOOLS/BLD/INC/LIMITS.H create mode 100644 v4.0/src/TOOLS/BLD/INC/MALLOC.H create mode 100644 v4.0/src/TOOLS/BLD/INC/MATH.H create mode 100644 v4.0/src/TOOLS/BLD/INC/MEMORY.H create mode 100644 v4.0/src/TOOLS/BLD/INC/PROCESS.H create mode 100644 v4.0/src/TOOLS/BLD/INC/SEARCH.H create mode 100644 v4.0/src/TOOLS/BLD/INC/SETJMP.H create mode 100644 v4.0/src/TOOLS/BLD/INC/SHARE.H create mode 100644 v4.0/src/TOOLS/BLD/INC/SIGNAL.H create mode 100644 v4.0/src/TOOLS/BLD/INC/STDARG.H create mode 100644 v4.0/src/TOOLS/BLD/INC/STDDEF.H create mode 100644 v4.0/src/TOOLS/BLD/INC/STDIO.H create mode 100644 v4.0/src/TOOLS/BLD/INC/STDLIB.H create mode 100644 v4.0/src/TOOLS/BLD/INC/STRING.H create mode 100644 v4.0/src/TOOLS/BLD/INC/SYS/LOCKING.H create mode 100644 v4.0/src/TOOLS/BLD/INC/SYS/STAT.H create mode 100644 v4.0/src/TOOLS/BLD/INC/SYS/TIMEB.H create mode 100644 v4.0/src/TOOLS/BLD/INC/SYS/TYPES.H create mode 100644 v4.0/src/TOOLS/BLD/INC/SYS/UTIME.H create mode 100644 v4.0/src/TOOLS/BLD/INC/TIME.H create mode 100644 v4.0/src/TOOLS/BLD/INC/VARARGS.H create mode 100644 v4.0/src/TOOLS/BLD/LIB/BINMODE.OBJ create mode 100644 v4.0/src/TOOLS/BLD/LIB/CLIBCE.LIB create mode 100644 v4.0/src/TOOLS/BLD/LIB/CLIBCR.LIB create mode 100644 v4.0/src/TOOLS/BLD/LIB/CLIBFP.LIB create mode 100644 v4.0/src/TOOLS/BLD/LIB/CVARSTCK.OBJ create mode 100644 v4.0/src/TOOLS/BLD/LIB/EM.LIB create mode 100644 v4.0/src/TOOLS/BLD/LIB/GRAPHICS.LIB create mode 100644 v4.0/src/TOOLS/BLD/LIB/LIBH.LIB create mode 100644 v4.0/src/TOOLS/BLD/LIB/LLIBCE.LIB create mode 100644 v4.0/src/TOOLS/BLD/LIB/LLIBCR.LIB create mode 100644 v4.0/src/TOOLS/BLD/LIB/LLIBFP.LIB create mode 100644 v4.0/src/TOOLS/BLD/LIB/LVARSTCK.OBJ create mode 100644 v4.0/src/TOOLS/BLD/LIB/MLIBCE.LIB create mode 100644 v4.0/src/TOOLS/BLD/LIB/MLIBCR.LIB create mode 100644 v4.0/src/TOOLS/BLD/LIB/MLIBFP.LIB create mode 100644 v4.0/src/TOOLS/BLD/LIB/MVARSTCK.OBJ create mode 100644 v4.0/src/TOOLS/BLD/LIB/SETARGV.OBJ create mode 100644 v4.0/src/TOOLS/BLD/LIB/SLIBCE.LIB create mode 100644 v4.0/src/TOOLS/BLD/LIB/SLIBCR.LIB create mode 100644 v4.0/src/TOOLS/BLD/LIB/SLIBFP.LIB create mode 100644 v4.0/src/TOOLS/BLD/LIB/SVARSTCK.OBJ (limited to 'v4.0/src/TOOLS/BLD') diff --git a/v4.0/src/TOOLS/BLD/INC/ASSERT.H b/v4.0/src/TOOLS/BLD/INC/ASSERT.H new file mode 100644 index 0000000..3a9809f --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/ASSERT.H @@ -0,0 +1,35 @@ +/*** +*assert.h - define the assert macro +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* Defines the assert(exp) macro. +* [ANSI/System V] +* +*******************************************************************************/ + + +#ifndef _ASSERT_DEFINED + +#ifndef NDEBUG + +static char _assertstring[] = "Assertion failed: %s, file %s, line %d\n"; + +#define assert(exp) { \ + if (!(exp)) { \ + fprintf(stderr, _assertstring, #exp, __FILE__, __LINE__); \ + fflush(stderr); \ + abort(); \ + } \ + } + +#else + +#define assert(exp) + +#endif /* NDEBUG */ + +#define _ASSERT_DEFINED + +#endif /* _ASSERT_DEFINED */ diff --git a/v4.0/src/TOOLS/BLD/INC/BIOS.H b/v4.0/src/TOOLS/BLD/INC/BIOS.H new file mode 100644 index 0000000..0844857 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/BIOS.H @@ -0,0 +1,181 @@ +/*** +*bios.h - declarations for bios interface functions and supporting definitions +* +* Copyright (c) 1987-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file declares the constants, structures, and functions +* used for accessing and using various BIOS interfaces. +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl +#else /* extensions not enabled */ + #define _CDECL +#endif /* NO_EXT_KEYS */ + +/* manifest constants for BIOS serial communications (RS-232) support */ + +/* serial port services */ + +#define _COM_INIT 0 /* init serial port */ +#define _COM_SEND 1 /* send character */ +#define _COM_RECEIVE 2 /* receive character */ +#define _COM_STATUS 3 /* get serial port status */ + +/* serial port initializers. One and only one constant from each of the + * following four groups - character size, stop bit, parity, and baud rate - + * must be specified in the initialization byte. + */ + +/* character size initializers */ + +#define _COM_CHR7 2 /* 7 bits characters */ +#define _COM_CHR8 3 /* 8 bits characters */ + +/* stop bit values - on or off */ + +#define _COM_STOP1 0 /* 1 stop bit */ +#define _COM_STOP2 4 /* 2 stop bits */ + +/* parity initializers */ + +#define _COM_NOPARITY 0 /* no parity */ +#define _COM_ODDPARITY 8 /* odd parity */ +#define _COM_EVENPARITY 24 /* even parity */ + +/* baud rate initializers */ + +#define _COM_110 0 /* 110 baud */ +#define _COM_150 32 /* 150 baud */ +#define _COM_300 64 /* 300 baud */ +#define _COM_600 96 /* 600 baud */ +#define _COM_1200 128 /* 1200 baud */ +#define _COM_2400 160 /* 2400 baud */ +#define _COM_4800 192 /* 4800 baud */ +#define _COM_9600 224 /* 9600 baud */ + + +/* manifest constants for BIOS disk support */ + +/* disk services */ + +#define _DISK_RESET 0 /* reset disk controller */ +#define _DISK_STATUS 1 /* get disk status */ +#define _DISK_READ 2 /* read disk sectors */ +#define _DISK_WRITE 3 /* write disk sectors */ +#define _DISK_VERIFY 4 /* verify disk sectors */ +#define _DISK_FORMAT 5 /* format disk track */ + +/* struct used to send/receive information to/from the BIOS disk services */ + +#ifndef NO_EXT_KEYS /* extensions must be enabled */ + +#ifndef _DISKINFO_T_DEFINED + +struct diskinfo_t { + unsigned drive; + unsigned head; + unsigned track; + unsigned sector; + unsigned nsectors; + void far *buffer; + }; + +#define _DISKINFO_T_DEFINED + +#endif + +#endif /* NO_EXT_KEYS */ + + +/* manifest constants for BIOS keyboard support */ + +/* keyboard services */ + +#define _KEYBRD_READ 0 /* read next character from keyboard */ +#define _KEYBRD_READY 1 /* check for keystroke */ +#define _KEYBRD_SHIFTSTATUS 2 /* get current shift key status */ + + +/* manifest constants for BIOS printer support */ + +/* printer services */ + +#define _PRINTER_WRITE 0 /* write character to printer */ +#define _PRINTER_INIT 1 /* intialize printer */ +#define _PRINTER_STATUS 2 /* get printer status */ + + +/* manifest constants for BIOS time of day support */ + +/* time of day services */ + +#define _TIME_GETCLOCK 0 /* get current clock count */ +#define _TIME_SETCLOCK 1 /* set current clock count */ + + +#ifndef _REGS_DEFINED + +/* word registers */ + +struct WORDREGS { + unsigned int ax; + unsigned int bx; + unsigned int cx; + unsigned int dx; + unsigned int si; + unsigned int di; + unsigned int cflag; + }; + +/* byte registers */ + +struct BYTEREGS { + unsigned char al, ah; + unsigned char bl, bh; + unsigned char cl, ch; + unsigned char dl, dh; + }; + +/* general purpose registers union - + * overlays the corresponding word and byte registers. + */ + +union REGS { + struct WORDREGS x; + struct BYTEREGS h; + }; + +/* segment registers */ + +struct SREGS { + unsigned int es; + unsigned int cs; + unsigned int ss; + unsigned int ds; + }; + +#define _REGS_DEFINED + +#endif /* _REGS_DEFINED */ + + +/* function prototypes */ + +unsigned _CDECL _bios_equiplist(void); +unsigned _CDECL _bios_keybrd(unsigned); +unsigned _CDECL _bios_memsize(void); +unsigned _CDECL _bios_printer(unsigned, unsigned, unsigned); +unsigned _CDECL _bios_serialcom(unsigned, unsigned, unsigned); +unsigned _CDECL _bios_timeofday(unsigned, long *); +int _CDECL int86(int, union REGS *, union REGS *); +int _CDECL int86x(int, union REGS *, union REGS *, struct SREGS *); + +#ifndef NO_EXT_KEYS /* extensions must be enabled */ + +unsigned _CDECL _bios_disk(unsigned, struct diskinfo_t *); + +#endif /* NO_EXT_KEYS */ diff --git a/v4.0/src/TOOLS/BLD/INC/CONIO.H b/v4.0/src/TOOLS/BLD/INC/CONIO.H new file mode 100644 index 0000000..7941e2e --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/CONIO.H @@ -0,0 +1,34 @@ +/*** +*conio.h - console and port I/O declarations +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This include file contains the function declarations for +* the MS C V2.03 compatible console and port I/O routines. +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl +#else /* extensions not enabled */ + #define _CDECL +#endif /* NO_EXT_KEYS */ + +/* function prototypes */ + +char * _CDECL cgets(char *); +int _CDECL cprintf(char *, ...); +int _CDECL cputs(char *); +int _CDECL cscanf(char *, ...); +int _CDECL getch(void); +int _CDECL getche(void); +int _CDECL inp(unsigned int); +unsigned _CDECL inpw(unsigned int); +int _CDECL kbhit(void); +int _CDECL outp(unsigned int, int); +unsigned _CDECL outpw(unsigned int, unsigned int); +int _CDECL putch(int); +int _CDECL ungetch(int); + diff --git a/v4.0/src/TOOLS/BLD/INC/CTYPE.H b/v4.0/src/TOOLS/BLD/INC/CTYPE.H new file mode 100644 index 0000000..c65d021 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/CTYPE.H @@ -0,0 +1,66 @@ +/*** +*ctype.h - character conversion macros and ctype macros +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* Defines macros for character classification/conversion. +* [ANSI/System V] +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl + #define _NEAR near +#else /* extensions not enabled */ + #define _CDECL + #define _NEAR +#endif /* NO_EXT_KEYS */ + +/* + * This declaration allows the user access to the ctype look-up + * array _ctype defined in ctype.obj by simply including ctype.h + */ + +extern unsigned char _NEAR _CDECL _ctype[]; + +/* set bit masks for the possible character types */ + +#define _UPPER 0x1 /* upper case letter */ +#define _LOWER 0x2 /* lower case letter */ +#define _DIGIT 0x4 /* digit[0-9] */ +#define _SPACE 0x8 /* tab, carriage return, newline, */ + /* vertical tab or form feed */ +#define _PUNCT 0x10 /* punctuation character */ +#define _CONTROL 0x20 /* control character */ +#define _BLANK 0x40 /* space char */ +#define _HEX 0x80 /* hexadecimal digit */ + +/* the character classification macro definitions */ + +#define isalpha(c) ( (_ctype+1)[c] & (_UPPER|_LOWER) ) +#define isupper(c) ( (_ctype+1)[c] & _UPPER ) +#define islower(c) ( (_ctype+1)[c] & _LOWER ) +#define isdigit(c) ( (_ctype+1)[c] & _DIGIT ) +#define isxdigit(c) ( (_ctype+1)[c] & _HEX ) +#define isspace(c) ( (_ctype+1)[c] & _SPACE ) +#define ispunct(c) ( (_ctype+1)[c] & _PUNCT ) +#define isalnum(c) ( (_ctype+1)[c] & (_UPPER|_LOWER|_DIGIT) ) +#define isprint(c) ( (_ctype+1)[c] & (_BLANK|_PUNCT|_UPPER|_LOWER|_DIGIT) ) +#define isgraph(c) ( (_ctype+1)[c] & (_PUNCT|_UPPER|_LOWER|_DIGIT) ) +#define iscntrl(c) ( (_ctype+1)[c] & _CONTROL ) + +#define toupper(c) ( (islower(c)) ? _toupper(c) : (c) ) +#define tolower(c) ( (isupper(c)) ? _tolower(c) : (c) ) + +#define _tolower(c) ( (c)-'A'+'a' ) +#define _toupper(c) ( (c)-'a'+'A' ) + +#define isascii(c) ( (unsigned)(c) < 0x80 ) +#define toascii(c) ( (c) & 0x7f ) + +/* MS C version 2.0 extended ctype macros */ + +#define iscsymf(c) (isalpha(c) || ((c) == '_')) +#define iscsym(c) (isalnum(c) || ((c) == '_')) diff --git a/v4.0/src/TOOLS/BLD/INC/DIRECT.H b/v4.0/src/TOOLS/BLD/INC/DIRECT.H new file mode 100644 index 0000000..2e2ebde --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/DIRECT.H @@ -0,0 +1,24 @@ +/*** +*direct.h - function declarations for directory handling/creation +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This include file contains the function declarations for the library +* functions related to directory handling and creation. +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl +#else /* extensions not enabled */ + #define _CDECL +#endif /* NO_EXT_KEYS */ + +/* function prototypes */ + +int _CDECL chdir(char *); +char * _CDECL getcwd(char *, int); +int _CDECL mkdir(char *); +int _CDECL rmdir(char *); diff --git a/v4.0/src/TOOLS/BLD/INC/DOS.H b/v4.0/src/TOOLS/BLD/INC/DOS.H new file mode 100644 index 0000000..5539156 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/DOS.H @@ -0,0 +1,220 @@ +/*** +*dos.h - definitions for MS-DOS interface routines +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* Defines the structs and unions used for the direct DOS interface +* routines; includes macros to access the segment and offset +* values of far pointers, so that they may be used by the routines; and +* provides function prototypes for direct DOS interface functions. +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl + #define _NEAR near +#else /* extensions not enabled */ + #define _CDECL + #define _NEAR +#endif /* NO_EXT_KEYS */ + + +#ifndef _REGS_DEFINED + +/* word registers */ + +struct WORDREGS { + unsigned int ax; + unsigned int bx; + unsigned int cx; + unsigned int dx; + unsigned int si; + unsigned int di; + unsigned int cflag; + }; + + +/* byte registers */ + +struct BYTEREGS { + unsigned char al, ah; + unsigned char bl, bh; + unsigned char cl, ch; + unsigned char dl, dh; + }; + + +/* general purpose registers union - + * overlays the corresponding word and byte registers. + */ + +union REGS { + struct WORDREGS x; + struct BYTEREGS h; + }; + + +/* segment registers */ + +struct SREGS { + unsigned int es; + unsigned int cs; + unsigned int ss; + unsigned int ds; + }; + +#define _REGS_DEFINED + +#endif + + +/* dosexterror structure */ + +#ifndef _DOSERROR_DEFINED + +struct DOSERROR { + int exterror; + char class; + char action; + char locus; + }; + +#define _DOSERROR_DEFINED + +#endif + + +/* _dos_findfirst structure */ + +#ifndef _FIND_T_DEFINED + +struct find_t { + char reserved[21]; + char attrib; + unsigned wr_time; + unsigned wr_date; + long size; + char name[13]; + }; + +#define _FIND_T_DEFINED + +#endif + + +/* _dos_getdate/_dossetdate and _dos_gettime/_dos_settime structures */ + +#ifndef _DATETIME_T_DEFINED + +struct dosdate_t { + unsigned char day; /* 1-31 */ + unsigned char month; /* 1-12 */ + unsigned int year; /* 1980-2099 */ + unsigned char dayofweek; /* 0-6, 0=Sunday */ + }; + +struct dostime_t { + unsigned char hour; /* 0-23 */ + unsigned char minute; /* 0-59 */ + unsigned char second; /* 0-59 */ + unsigned char hsecond; /* 0-99 */ + }; + +#define _DATETIME_T_DEFINED + +#endif + + +/* _dos_getdiskfree structure */ + +#ifndef _DISKFREE_T_DEFINED + +struct diskfree_t { + unsigned total_clusters; + unsigned avail_clusters; + unsigned sectors_per_cluster; + unsigned bytes_per_sector; + }; + +#define _DISKFREE_T_DEFINED + +#endif + + +/* manifest constants for _hardresume result parameter */ + +#define _HARDERR_IGNORE 0 /* Ignore the error */ +#define _HARDERR_RETRY 1 /* Retry the operation */ +#define _HARDERR_ABORT 2 /* Abort program issuing Interrupt 23h */ +#define _HARDERR_FAIL 3 /* Fail the system call in progress */ + /* _HARDERR_FAIL is not supported on DOS 2.x */ + +/* File attribute constants */ + +#define _A_NORMAL 0x00 /* Normal file - No read/write restrictions */ +#define _A_RDONLY 0x01 /* Read only file */ +#define _A_HIDDEN 0x02 /* Hidden file */ +#define _A_SYSTEM 0x04 /* System file */ +#define _A_VOLID 0x08 /* Volume ID file */ +#define _A_SUBDIR 0x10 /* Subdirectory */ +#define _A_ARCH 0x20 /* Archive file */ + +/* macros to break MS C "far" pointers into their segment and offset + * components + */ + +#define FP_SEG(fp) (*((unsigned *)&(fp) + 1)) +#define FP_OFF(fp) (*((unsigned *)&(fp))) + + +/* external variable declarations */ + +extern unsigned int _NEAR _CDECL _osversion; + + +/* function prototypes */ + +int _CDECL bdos(int, unsigned int, unsigned int); +void _CDECL _disable(void); +unsigned _CDECL _dos_allocmem(unsigned, unsigned *); +unsigned _CDECL _dos_close(int); +unsigned _CDECL _dos_creat(char *, unsigned, int *); +unsigned _CDECL _dos_creatnew(char *, unsigned, int *); +unsigned _CDECL _dos_findfirst(char *, unsigned, struct find_t *); +unsigned _CDECL _dos_findnext(struct find_t *); +unsigned _CDECL _dos_freemem(unsigned); +void _CDECL _dos_getdate(struct dosdate_t *); +void _CDECL _dos_getdrive(unsigned *); +unsigned _CDECL _dos_getdiskfree(unsigned, struct diskfree_t *); +unsigned _CDECL _dos_getfileattr(char *, unsigned *); +unsigned _CDECL _dos_getftime(int, unsigned *, unsigned *); +void _CDECL _dos_gettime(struct dostime_t *); +void _CDECL _dos_keep(unsigned, unsigned); +unsigned _CDECL _dos_open(char *, unsigned, int *); +unsigned _CDECL _dos_setblock(unsigned, unsigned, unsigned *); +unsigned _CDECL _dos_setdate(struct dosdate_t *); +void _CDECL _dos_setdrive(unsigned, unsigned *); +unsigned _CDECL _dos_setfileattr(char *, unsigned); +unsigned _CDECL _dos_setftime(int, unsigned, unsigned); +unsigned _CDECL _dos_settime(struct dostime_t *); +int _CDECL dosexterr(struct DOSERROR *); +void _CDECL _enable(void); +void _CDECL _hardresume(int); +void _CDECL _hardretn(int); +int _CDECL intdos(union REGS *, union REGS *); +int _CDECL intdosx(union REGS *, union REGS *, struct SREGS *); +int _CDECL int86(int, union REGS *, union REGS *); +int _CDECL int86x(int, union REGS *, union REGS *, struct SREGS *); +void _CDECL segread(struct SREGS *); + + +#ifndef NO_EXT_KEYS /* extensions enabled */ +void _CDECL _chain_intr(void (_CDECL interrupt far *)()); +void (_CDECL interrupt far * _CDECL _dos_getvect(unsigned))(); +unsigned _CDECL _dos_read(int, void far *, unsigned, unsigned *); +void _CDECL _dos_setvect(unsigned, void (_CDECL interrupt far *)()); +unsigned _CDECL _dos_write(int, void far *, unsigned, unsigned *); +void _CDECL _harderr(void (far *)()); +#endif /* NO_EXT_KEYS */ diff --git a/v4.0/src/TOOLS/BLD/INC/ERRNO.H b/v4.0/src/TOOLS/BLD/INC/ERRNO.H new file mode 100644 index 0000000..0925338 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/ERRNO.H @@ -0,0 +1,50 @@ +/*** +*errno.h - system wide error numbers (set by system calls) +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file defines the system-wide error numbers (set by +* system calls). Conforms to the XENIX standard. Extended +* for compatibility with Uniforum standard. +* [System V] +* +*******************************************************************************/ + +#define EZERO 0 +#define EPERM 1 +#define ENOENT 2 +#define ESRCH 3 +#define EINTR 4 +#define EIO 5 +#define ENXIO 6 +#define E2BIG 7 +#define ENOEXEC 8 +#define EBADF 9 +#define ECHILD 10 +#define EAGAIN 11 +#define ENOMEM 12 +#define EACCES 13 +#define EFAULT 14 +#define ENOTBLK 15 +#define EBUSY 16 +#define EEXIST 17 +#define EXDEV 18 +#define ENODEV 19 +#define ENOTDIR 20 +#define EISDIR 21 +#define EINVAL 22 +#define ENFILE 23 +#define EMFILE 24 +#define ENOTTY 25 +#define ETXTBSY 26 +#define EFBIG 27 +#define ENOSPC 28 +#define ESPIPE 29 +#define EROFS 30 +#define EMLINK 31 +#define EPIPE 32 +#define EDOM 33 +#define ERANGE 34 +#define EUCLEAN 35 +#define EDEADLOCK 36 diff --git a/v4.0/src/TOOLS/BLD/INC/FCNTL.H b/v4.0/src/TOOLS/BLD/INC/FCNTL.H new file mode 100644 index 0000000..08ad549 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/FCNTL.H @@ -0,0 +1,35 @@ +/*** +*fcntl.h - file control options used by open() +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file defines constants for the file control options used +* by the open() function. +* [System V] +* +*******************************************************************************/ + +#define O_RDONLY 0x0000 /* open for reading only */ +#define O_WRONLY 0x0001 /* open for writing only */ +#define O_RDWR 0x0002 /* open for reading and writing */ +#define O_APPEND 0x0008 /* writes done at eof */ + +#define O_CREAT 0x0100 /* create and open file */ +#define O_TRUNC 0x0200 /* open and truncate */ +#define O_EXCL 0x0400 /* open only if file doesn't already exist */ + +/* O_TEXT files have sequences translated to on read()'s, +** and sequences translated to on write()'s +*/ + +#define O_TEXT 0x4000 /* file mode is text (translated) */ +#define O_BINARY 0x8000 /* file mode is binary (untranslated) */ + +/* macro to translate the C 2.0 name used to force binary mode for files */ + +#define O_RAW O_BINARY + +/* Open handle inherit bit */ + +#define O_NOINHERIT 0x0080 /* child process doesn't inherit file */ diff --git a/v4.0/src/TOOLS/BLD/INC/FLOAT.H b/v4.0/src/TOOLS/BLD/INC/FLOAT.H new file mode 100644 index 0000000..2d73f85 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/FLOAT.H @@ -0,0 +1,137 @@ +/*** +*float.h - constants for floating point values +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file contains defines for a number of implementation dependent +* values which are commonly used by sophisticated numerical (floating +* point) programs. +* [ANSI] +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl +#else /* extensions not enabled */ + #define _CDECL +#endif /* NO_EXT_KEYS */ + +#define DBL_DIG 15 /* # of decimal digits of precision */ +#define DBL_EPSILON 2.2204460492503131e-016 /* smallest such that 1.0+DBL_EPSILON != 1.0 */ +#define DBL_MANT_DIG 53 /* # of bits in mantissa */ +#define DBL_MAX 1.7976931348623158e+308 /* max value */ +#define DBL_MAX_10_EXP 308 /* max decimal exponent */ +#define DBL_MAX_EXP 1024 /* max binary exponent */ +#define DBL_MIN 2.2250738585072014e-308 /* min positive value */ +#define DBL_MIN_10_EXP -307 /* min decimal exponent +#define DBL_MIN_EXP -1021 /* min binary exponent */ +#define DBL_RADIX 2 /* exponent radix */ +#define DBL_ROUNDS 0 /* addition rounding: chops */ + +#define FLT_DIG 6 /* # of decimal digits of precision */ +#define FLT_EPSILON 1.192092896e-07 /* smallest such that 1.0+FLT_EPSILON != 1.0 */ +#define FLT_GUARD 0 +#define FLT_MANT_DIG 24 /* # of bits in mantissa */ +#define FLT_MAX 3.402823466e+38 /* max value */ +#define FLT_MAX_10_EXP 38 /* max decimal exponent */ +#define FLT_MAX_EXP 128 /* max binary exponent */ +#define FLT_MIN 1.175494351e-38 /* min positive value */ +#define FLT_MIN_10_EXP -37 /* min decimal exponent */ +#define FLT_MIN_EXP -125 /* min binary exponent */ +#define FLT_NORMALIZE 0 +#define FLT_RADIX 2 /* exponent radix */ +#define FLT_ROUNDS 0 /* addition rounding: chops */ + +#define LDBL_DIG DBL_DIG /* # of decimal digits of precision */ +#define LDBL_EPSILON DBL_EPSILON /* smallest such that 1.0+LDBL_EPSILON != 1.0 */ +#define LDBL_MANT_DIG DBL_MANT_DIG /* # of bits in mantissa */ +#define LDBL_MAX DBL_MAX /* max value */ +#define LDBL_MAX_10_EXP DBL_MAX_10_EXP /* max decimal exponent */ +#define LDBL_MAX_EXP DBL_MAX_EXP /* max binary exponent */ +#define LDBL_MIN DBL_MIN /* min positive value */ +#define LDBL_MIN_10_EXP DBL_MIN_10_EXP /* min deimal exponent +#define LDBL_MIN_EXP DBL_MIN_EXP /* min binary exponent */ +#define LDBL_RADIX DBL_RADIX /* exponent radix */ +#define LDBL_ROUNDS DBL_ROUNDS /* addition rounding: chops */ + + +/* + * 8087/80287 math control information + */ + + +/* User Control Word Mask and bit definitions. + * These definitions match the 8087/80287 + */ + +#define MCW_EM 0x003f /* interrupt Exception Masks */ +#define EM_INVALID 0x0001 /* invalid */ +#define EM_DENORMAL 0x0002 /* denormal */ +#define EM_ZERODIVIDE 0x0004 /* zero divide */ +#define EM_OVERFLOW 0x0008 /* overflow */ +#define EM_UNDERFLOW 0x0010 /* underflow */ +#define EM_INEXACT 0x0020 /* inexact (precision) */ + +#define MCW_IC 0x1000 /* Infinity Control */ +#define IC_AFFINE 0x1000 /* affine */ +#define IC_PROJECTIVE 0x0000 /* projective */ + +#define MCW_RC 0x0c00 /* Rounding Control */ +#define RC_CHOP 0x0c00 /* chop */ +#define RC_UP 0x0800 /* up */ +#define RC_DOWN 0x0400 /* down */ +#define RC_NEAR 0x0000 /* near */ + +#define MCW_PC 0x0300 /* Precision Control */ +#define PC_24 0x0000 /* 24 bits */ +#define PC_53 0x0200 /* 53 bits */ +#define PC_64 0x0300 /* 64 bits */ + + +/* initial Control Word value */ + +#define CW_DEFAULT ( IC_AFFINE + RC_NEAR + PC_64 + EM_DENORMAL + EM_UNDERFLOW + EM_INEXACT ) + + +/* user Status Word bit definitions */ + +#define SW_INVALID 0x0001 /* invalid */ +#define SW_DENORMAL 0x0002 /* denormal */ +#define SW_ZERODIVIDE 0x0004 /* zero divide */ +#define SW_OVERFLOW 0x0008 /* overflow */ +#define SW_UNDERFLOW 0x0010 /* underflow */ +#define SW_INEXACT 0x0020 /* inexact (precision) */ + + +/* invalid subconditions (SW_INVALID also set) */ + +#define SW_UNEMULATED 0x0040 /* unemulated instruction */ +#define SW_SQRTNEG 0x0080 /* square root of a neg number */ +#define SW_STACKOVERFLOW 0x0200 /* FP stack overflow */ +#define SW_STACKUNDERFLOW 0x0400 /* FP stack underflow */ + + +/* Floating point error signals and return codes */ + +#define FPE_INVALID 0x81 +#define FPE_DENORMAL 0x82 +#define FPE_ZERODIVIDE 0x83 +#define FPE_OVERFLOW 0x84 +#define FPE_UNDERFLOW 0x85 +#define FPE_INEXACT 0x86 + +#define FPE_UNEMULATED 0x87 +#define FPE_SQRTNEG 0x88 +#define FPE_STACKOVERFLOW 0x8a +#define FPE_STACKUNDERFLOW 0x8b + +#define FPE_EXPLICITGEN 0x8c /* raise( SIGFPE ); */ + +/* function prototypes */ + +unsigned int _CDECL _clear87(void); +unsigned int _CDECL _control87(unsigned int,unsigned int); +void _CDECL _fpreset(void); +unsigned int _CDECL _status87(void); diff --git a/v4.0/src/TOOLS/BLD/INC/GRAPH.H b/v4.0/src/TOOLS/BLD/INC/GRAPH.H new file mode 100644 index 0000000..7b69c51 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/GRAPH.H @@ -0,0 +1,216 @@ +/*** +*graph.h - declare constants and functions for graphics library +* +* Copyright (c) 1987-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file declares the graphics library functions and +* the manifest constants that are used with them. +* +*******************************************************************************/ + +/* user-visible declarations for Quick-C Graphics Library */ + +#ifndef _GRAPH_T_DEFINED + +/* structure for _getvideoconfig() as visible to user */ +struct videoconfig { + short numxpixels; /* number of pixels on X axis */ + short numypixels; /* number of pixels on Y axis */ + short numtextcols; /* number of text columns available */ + short numtextrows; /* number of text rows available */ + short numcolors; /* number of actual colors */ + short bitsperpixel; /* number of bits per pixel */ + short numvideopages; /* number of available video pages */ + short mode; /* current video mode */ + short adapter; /* active display adapter */ + short monitor; /* active display monitor */ + short memory; /* adapter video memory in K bytes */ +}; + +/* return value of _setlogorg(), etc. */ +struct xycoord { + short xcoord; + short ycoord; +}; + +/* structure for text position */ +struct rccoord { + short row; + short col; +}; + +#define _GRAPH_T_DEFINED + +#endif + + +/* SETUP AND CONFIGURATION */ + +short far cdecl _setvideomode(short); + +/* arguments to _setvideomode() */ +#define _DEFAULTMODE -1 /* restore screen to original mode */ +#define _TEXTBW40 0 /* 40 x 25 text, 16 grey */ +#define _TEXTC40 1 /* 40 x 25 text, 16/8 color */ +#define _TEXTBW80 2 /* 80 x 25 text, 16 grey */ +#define _TEXTC80 3 /* 80 x 25 text, 16/8 color */ +#define _MRES4COLOR 4 /* 320 x 200, 4 color */ +#define _MRESNOCOLOR 5 /* 320 x 200, 4 grey */ +#define _HRESBW 6 /* 640 x 200, BW */ +#define _TEXTMONO 7 /* 80 x 25 text, BW */ +#define _HERCMONO 8 /* 720 x 348, BW for HGC */ +#define _MRES16COLOR 13 /* 320 x 200, 16 color */ +#define _HRES16COLOR 14 /* 640 x 200, 16 color */ +#define _ERESNOCOLOR 15 /* 640 x 350, BW */ +#define _ERESCOLOR 16 /* 640 x 350, 4 or 16 color */ +#define _VRES2COLOR 17 /* 640 x 480, BW */ +#define _VRES16COLOR 18 /* 640 x 480, 16 color */ +#define _MRES256COLOR 19 /* 320 x 200, 256 color */ + +short far cdecl _setactivepage(short); +short far cdecl _setvisualpage(short); + +/* videoconfig adapter values */ +/* these manifest constants can be used to determine the type of monitor in */ +/* use, using either simple comparisons or the bitwise-AND operator (&) */ +#define _MDPA 0x0001 /* Monochrome Display Adapter (MDPA) */ +#define _CGA 0x0002 /* Color Graphics Adapter (CGA) */ +#define _EGA 0x0004 /* Enhanced Graphics Adapter (EGA) */ +#define _VGA 0x0008 /* Video Graphics Array (VGA) */ +#define _MCGA 0x0010 /* MultiColor Graphics Array (MCGA) */ +#define _HGC 0x0020 /* Hercules Graphics Card (HGC) */ + +/* videoconfig monitor values */ +/* these manifest constants can be used to determine the type of the active */ +/* adapter, using either simple comparisons or the bitwise-AND operator (&) */ +#define _MONO 0x0001 /* Monochrome */ +#define _COLOR 0x0002 /* Color (or Enhanced emulating color) */ +#define _ENHCOLOR 0x0004 /* Enhanced Color */ +#define _ANALOG 0x0018 /* Analog */ + +struct videoconfig far * far cdecl _getvideoconfig(struct videoconfig far *); + + +/* COORDINATE SYSTEMS */ + +struct xycoord far cdecl _setlogorg(short, short); +struct xycoord far cdecl _getlogcoord(short, short); +struct xycoord far cdecl _getphyscoord(short, short); + +void far cdecl _setcliprgn(short, short, short, short); +void far cdecl _setviewport(short, short, short, short); + + +/* OUTPUT ROUTINES */ + +/* control parameters for Rectangle, Ellipse and Pie */ +#define _GBORDER 2 /* draw outline only */ +#define _GFILLINTERIOR 3 /* fill using current fill mask */ + +#define _GCLEARSCREEN 0 +#define _GVIEWPORT 1 +#define _GWINDOW 2 + +void far cdecl _clearscreen(short); + +struct xycoord far cdecl _moveto(short, short); +struct xycoord far cdecl _getcurrentposition(void); + +short far cdecl _lineto(short, short); +short far cdecl _rectangle(short, short, short, short, short); +short far cdecl _ellipse(short, short, short, short, short); +short far cdecl _arc(short, short, short, short, short, short, short, short); +short far cdecl _pie(short, short, short, short, short, short, short, short, short); + +short far cdecl _setpixel(short, short); +short far cdecl _getpixel(short, short); +short far cdecl _floodfill(short, short, short); + + +/* PEN COLOR, LINE STYLE, FILL PATTERN */ + +short far cdecl _setcolor(short); +short far cdecl _getcolor(void); + +void far cdecl _setlinestyle(unsigned short); +unsigned short far cdecl _getlinestyle(void); + +void far cdecl _setfillmask(unsigned char far *); +unsigned char far * far cdecl _getfillmask(unsigned char far *); + +/* COLOR SELECTION */ + +long far cdecl _setbkcolor(long); +long far cdecl _getbkcolor(void); + +long far cdecl _remappalette(short, long); +short far cdecl _remapallpalette(long far *); +short far cdecl _selectpalette(short); + + +/* TEXT */ +#define _GCURSOROFF 0 +#define _GCURSORON 1 + +#define _GWRAPOFF 0 +#define _GWRAPON 1 + +void far cdecl _settextwindow(short, short, short, short); +void far cdecl _outtext(char far *); +short far cdecl _wrapon(short); +short far cdecl _displaycursor(short); + +struct rccoord far cdecl _settextposition(short, short); +struct rccoord far cdecl _gettextposition(void); + +short far cdecl _settextcolor(short); +short far cdecl _gettextcolor(void); + + +/* SCREEN IMAGES */ + +void far cdecl _getimage(short, short, short, short, char far *); +void far cdecl _putimage(short, short, char far *, short); +long far cdecl _imagesize(short, short, short, short); + +/* "action verbs" for _putimage() */ +#define _GPSET 3 +#define _GPRESET 2 +#define _GAND 1 +#define _GOR 0 +#define _GXOR 4 + +/* universal color values: */ +#define _BLACK 0x000000L +#define _BLUE 0x2a0000L +#define _GREEN 0x002a00L +#define _CYAN 0x2a2a00L +#define _RED 0x00002aL +#define _MAGENTA 0x2a002aL +#define _BROWN 0x00152aL +#define _WHITE 0x2a2a2aL +#define _GRAY 0x151515L +#define _LIGHTBLUE 0x3F1515L +#define _LIGHTGREEN 0x153f15L +#define _LIGHTCYAN 0x3f3f15L +#define _LIGHTRED 0x15153fL +#define _LIGHTMAGENTA 0x3f153fL +#define _LIGHTYELLOW 0x153f3fL +#define _BRIGHTWHITE 0x3f3f3fL + +/* mono mode F color values: */ +#define _MODEFOFF 0L +#define _MODEFOFFTOON 1L +#define _MODEFOFFTOHI 2L +#define _MODEFONTOOFF 3L +#define _MODEFON 4L +#define _MODEFONTOHI 5L +#define _MODEFHITOOFF 6L +#define _MODEFHITOON 7L +#define _MODEFHI 8L + +/* mono mode 7 color values: */ +#define _MODE7OFF 0L +#define _MODE7ON 1L +#define _MODE7HI 2L diff --git a/v4.0/src/TOOLS/BLD/INC/IO.H b/v4.0/src/TOOLS/BLD/INC/IO.H new file mode 100644 index 0000000..7261295 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/IO.H @@ -0,0 +1,43 @@ +/*** +*io.h - declarations for low-level file handling and I/O functions +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file contains the function declarations for the low-level +* file handling and I/O functions. +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl +#else /* extensions not enabled */ + #define _CDECL +#endif /* NO_EXT_KEYS */ + +/* function prototypes */ + +int _CDECL access(char *, int); +int _CDECL chmod(char *, int); +int _CDECL chsize(int, long); +int _CDECL close(int); +int _CDECL creat(char *, int); +int _CDECL dup(int); +int _CDECL dup2(int, int); +int _CDECL eof(int); +long _CDECL filelength(int); +int _CDECL isatty(int); +int _CDECL locking(int, int, long); +long _CDECL lseek(int, long, int); +char * _CDECL mktemp(char *); +int _CDECL open(char *, int, ...); +int _CDECL read(int, char *, unsigned int); +int _CDECL remove(const char *); +int _CDECL rename(const char *, const char *); +int _CDECL setmode(int, int); +int _CDECL sopen(char *, int, int, ...); +long _CDECL tell(int); +int _CDECL umask(int); +int _CDECL unlink(const char *); +int _CDECL write(int, char *, unsigned int); diff --git a/v4.0/src/TOOLS/BLD/INC/LIMITS.H b/v4.0/src/TOOLS/BLD/INC/LIMITS.H new file mode 100644 index 0000000..21e907f --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/LIMITS.H @@ -0,0 +1,32 @@ +/*** +*limits.h - implementation dependent values +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* contains defines for a number of implementation dependent values +* which are commonly used in C programs. +* [ANSI] +* +*******************************************************************************/ + +#ifndef _CHAR_UNSIGNED +#define CHAR_MAX 127 /* maximum char value */ +#define CHAR_MIN -127 /* mimimum char value */ +#else +#define CHAR_MAX 255 +#define CHAR_MIN 0 +#endif +#define SCHAR_MAX 127 /* maximum signed char value */ +#define SCHAR_MIN -127 /* minimum signed char value */ +#define UCHAR_MAX 255 /* maximum unsigned char value */ +#define CHAR_BIT 8 /* number of bits in a char */ +#define USHRT_MAX 0xffff /* maximum unsigned short value */ +#define SHRT_MAX 32767 /* maximum (signed) short value */ +#define SHRT_MIN -32767 /* minimum (signed) short value */ +#define UINT_MAX 0xffff /* maximum unsigned int value */ +#define ULONG_MAX 0xffffffff /* maximum unsigned long value */ +#define INT_MAX 32767 /* maximum (signed) int value */ +#define INT_MIN -32767 /* minimum (signed) int value */ +#define LONG_MAX 2147483647 /* maximum (signed) long value */ +#define LONG_MIN -2147483647 /* minimum (signed) long value */ diff --git a/v4.0/src/TOOLS/BLD/INC/MALLOC.H b/v4.0/src/TOOLS/BLD/INC/MALLOC.H new file mode 100644 index 0000000..e2aa979 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/MALLOC.H @@ -0,0 +1,124 @@ +/*** +*malloc.h - declarations and definitions for memory allocation functions +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* Contains the function declarations for memory allocation functions; +* also defines manifest constants and types used by the heap routines. +* [System V] +* +*******************************************************************************/ + + +#define _HEAPEMPTY -1 +#define _HEAPOK -2 +#define _HEAPBADBEGIN -3 +#define _HEAPBADNODE -4 +#define _HEAPEND -5 +#define _HEAPBADPTR -6 +#define _FREEENTRY 0 +#define _USEDENTRY 1 + +#ifndef _SIZE_T_DEFINED +typedef unsigned int size_t; +#define _SIZE_T_DEFINED +#endif + +#if (!defined(NO_EXT_KEYS)) + +#ifndef _HEAPINFO_DEFINED +typedef struct _heapinfo { + int far * _pentry; + size_t _size; + int _useflag; + } _HEAPINFO; +#define _HEAPINFO_DEFINED +#endif + +#else /* NO_EXT_KEYS */ +#if (defined(M_I86CM) || defined(M_I86LM) || defined(M_I86HM)) + +#ifndef _HEAPINFO_DEFINED + +typedef struct _heapinfo { + int * _pentry; + size_t _size; + int _useflag; + } _HEAPINFO; + +#define _HEAPINFO_DEFINED +#endif + +#endif /* M_I86CM || M_I86LM || M_I86HM */ + +#endif /* NO_EXT_KEYS */ + + +#if (defined(M_I86SM) || defined(M_I86MM)) +#define _heapchk _nheapchk +#define _heapset _nheapset +#define _heapwalk _nheapwalk +#endif +#if (defined(M_I86CM) || defined(M_I86LM) || defined(M_I86HM)) +#define _heapchk _fheapchk +#define _heapset _fheapset +#define _heapwalk _fheapwalk +#endif + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl + #define _NEAR near +#else /* extensions not enabled */ + #define _CDECL + #define _NEAR +#endif /* NO_EXT_KEYS */ + + +/* external variable declarations */ +extern unsigned int _NEAR _CDECL _amblksiz; + +/* function prototypes */ + +void * _CDECL alloca(size_t); +void * _CDECL calloc(size_t, size_t); +void * _CDECL _expand(void *, size_t); +int _CDECL _fheapchk(void); +int _CDECL _fheapset(unsigned int); +unsigned int _CDECL _freect(size_t); +void _CDECL free(void *); +void * _CDECL malloc(size_t); +size_t _CDECL _memavl(void); +size_t _CDECL _memmax(void); +size_t _CDECL _msize(void *); +int _CDECL _nheapchk(void); +int _CDECL _nheapset(unsigned int); +void * _CDECL realloc(void *, size_t); +void * _CDECL sbrk(int); +size_t _CDECL stackavail(void); + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + +void cdecl _ffree(void far *); +void far * cdecl _fmalloc(size_t); +size_t cdecl _fmsize(void far *); +#ifndef _QC +void huge * cdecl halloc(long, size_t); +void cdecl hfree(void huge *); +#endif +void cdecl _nfree(void near *); +void near * cdecl _nmalloc(size_t); +size_t cdecl _nmsize(void near *); +int cdecl _nheapwalk(struct _heapinfo *); +int cdecl _fheapwalk(struct _heapinfo *); + +#else +#if (defined(M_I86CM) || defined(M_I86LM) || defined(M_I86HM)) + +int _nheapwalk(struct _heapinfo *); +int _fheapwalk(struct _heapinfo *); + +#endif /* M_I86CM || M_I86LM || M_I86HM */ + +#endif /* NO_EXT_KEYS */ diff --git a/v4.0/src/TOOLS/BLD/INC/MATH.H b/v4.0/src/TOOLS/BLD/INC/MATH.H new file mode 100644 index 0000000..9c0e701 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/MATH.H @@ -0,0 +1,112 @@ +/*** +*math.h - definitions and declarations for math library +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file contains constant definitions and external subroutine +* declarations for the math subroutine library. +* [ANSI/System V] +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl +#else /* extensions not enabled */ + #define _CDECL +#endif /* NO_EXT_KEYS */ + + +/* definition of exception struct - this struct is passed to the matherr + * routine when a floating point exception is detected + */ + +#ifndef _EXCEPTION_DEFINED +struct exception { + int type; /* exception type - see below */ + char *name; /* name of function where error occured */ + double arg1; /* first argument to function */ + double arg2; /* second argument (if any) to function */ + double retval; /* value to be returned by function */ + } ; +#define _EXCEPTION_DEFINED +#endif + + +/* definition of a complex struct to be used by those who use cabs and + * want type checking on their argument + */ + +#ifndef _COMPLEX_DEFINED +struct complex { + double x,y; /* real and imaginary parts */ + } ; +#define _COMPLEX_DEFINED +#endif + + +/* Constant definitions for the exception type passed in the exception struct + */ + +#define DOMAIN 1 /* argument domain error */ +#define SING 2 /* argument singularity */ +#define OVERFLOW 3 /* overflow range error */ +#define UNDERFLOW 4 /* underflow range error */ +#define TLOSS 5 /* total loss of precision */ +#define PLOSS 6 /* partial loss of precision */ + +#define EDOM 33 +#define ERANGE 34 + + +/* definitions of HUGE and HUGE_VAL - respectively the XENIX and ANSI names + * for a value returned in case of error by a number of the floating point + * math routines + */ + +extern double HUGE; +#define HUGE_VAL HUGE + + + +/* function prototypes */ + +int _CDECL abs(int); +double _CDECL acos(double); +double _CDECL asin(double); +double _CDECL atan(double); +double _CDECL atan2(double, double); +double _CDECL atof(const char *); +double _CDECL cabs(struct complex); +double _CDECL ceil(double); +double _CDECL cos(double); +double _CDECL cosh(double); +int _CDECL dieeetomsbin(double *, double *); +int _CDECL dmsbintoieee(double *, double *); +double _CDECL exp(double); +double _CDECL fabs(double); +int _CDECL fieeetomsbin(float *, float *); +double _CDECL floor(double); +double _CDECL fmod(double, double); +int _CDECL fmsbintoieee(float *, float *); +double _CDECL frexp(double, int *); +double _CDECL hypot(double, double); +double _CDECL j0(double); +double _CDECL j1(double); +double _CDECL jn(int, double); +long _CDECL labs(long); +double _CDECL ldexp(double, int); +double _CDECL log(double); +double _CDECL log10(double); +int _CDECL matherr(struct exception *); +double _CDECL modf(double, double *); +double _CDECL pow(double, double); +double _CDECL sin(double); +double _CDECL sinh(double); +double _CDECL sqrt(double); +double _CDECL tan(double); +double _CDECL tanh(double); +double _CDECL y0(double); +double _CDECL y1(double); +double _CDECL yn(int, double); diff --git a/v4.0/src/TOOLS/BLD/INC/MEMORY.H b/v4.0/src/TOOLS/BLD/INC/MEMORY.H new file mode 100644 index 0000000..519b71d --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/MEMORY.H @@ -0,0 +1,34 @@ +/*** +*memory.h - declarations for buffer (memory) manipulation routines +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This include file contains the function declarations for the +* buffer (memory) manipulation routines. +* [System V] +* +*******************************************************************************/ + + +#ifndef _SIZE_T_DEFINED +typedef unsigned int size_t; +#define _SIZE_T_DEFINED +#endif + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl +#else /* extensions not enabled */ + #define _CDECL +#endif /* NO_EXT_KEYS */ + + +/* function prototypes */ + +void * _CDECL memccpy(void *, void *, int, unsigned int); +void * _CDECL memchr(const void *, int, size_t); +int _CDECL memcmp(const void *, const void *, size_t); +void * _CDECL memcpy(void *, const void *, size_t); +int _CDECL memicmp(void *, void *, unsigned int); +void * _CDECL memset(void *, int, size_t); +void _CDECL movedata(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int); diff --git a/v4.0/src/TOOLS/BLD/INC/PROCESS.H b/v4.0/src/TOOLS/BLD/INC/PROCESS.H new file mode 100644 index 0000000..f0c85f3 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/PROCESS.H @@ -0,0 +1,65 @@ +/*** +*process.h - definition and declarations for process control functions +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file defines the modeflag values for spawnxx calls. Only +* P_WAIT and P_OVERLAY are currently implemented on DOS 2 & 3. +* P_NOWAIT is also enabled on DOS 4. Also contains the function +* argument declarations for all process control related routines. +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl + #define _NEAR near +#else /* extensions not enabled */ + #define _CDECL + #define _NEAR +#endif /* NO_EXT_KEYS */ + + +/* modeflag values for spawnxx routines */ + +extern int _NEAR _CDECL _p_overlay; + +#define P_WAIT 0 +#define P_NOWAIT 1 +#define P_OVERLAY _p_overlay +#define OLD_P_OVERLAY 2 +#define P_NOWAITO 3 + + +/* Action Codes used with Cwait() */ + +#define WAIT_CHILD 0 +#define WAIT_GRANDCHILD 1 + + +/* function prototypes */ + +void _CDECL abort(void); +int _CDECL cwait(int *, int, int); +int _CDECL execl(char *, char *, ...); +int _CDECL execle(char *, char *, ...); +int _CDECL execlp(char *, char *, ...); +int _CDECL execlpe(char *, char *, ...); +int _CDECL execv(char *, char * *); +int _CDECL execve(char *, char * *, char * *); +int _CDECL execvp(char *, char * *); +int _CDECL execvpe(char *, char * *, char * *); +void _CDECL exit(int); +void _CDECL _exit(int); +int _CDECL getpid(void); +int _CDECL spawnl(int, char *, char *, ...); +int _CDECL spawnle(int, char *, char *, ...); +int _CDECL spawnlp(int, char *, char *, ...); +int _CDECL spawnlpe(int, char *, char *, ...); +int _CDECL spawnv(int, char *, char * *); +int _CDECL spawnve(int, char *, char * *, char * *); +int _CDECL spawnvp(int, char *, char * *); +int _CDECL spawnvpe(int, char *, char * *, char * *); +int _CDECL system(const char *); +int _CDECL wait(int *); diff --git a/v4.0/src/TOOLS/BLD/INC/SEARCH.H b/v4.0/src/TOOLS/BLD/INC/SEARCH.H new file mode 100644 index 0000000..88ea976 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SEARCH.H @@ -0,0 +1,31 @@ +/*** +*search.h - declarations for searcing/sorting routines +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file contains the declarations for the sorting and +* searching routines. +* [System V] +* +*******************************************************************************/ + + +#ifndef _SIZE_T_DEFINED +typedef unsigned int size_t; +#define _SIZE_T_DEFINED +#endif + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl +#else /* extensions not enabled */ + #define _CDECL +#endif /* NO_EXT_KEYS */ + + +/* function prototypes */ + +char * _CDECL lsearch(char *, char *, unsigned int *, unsigned int, int (_CDECL *)(void *, void *)); +char * _CDECL lfind(char *, char *, unsigned int *, unsigned int, int (_CDECL *)(void *, void *)); +void * _CDECL bsearch(const void *, const void *, size_t, size_t, int (_CDECL *)(const void *, const void *)); +void _CDECL qsort(void *, size_t, size_t, int (_CDECL *)(const void *, const void *)); diff --git a/v4.0/src/TOOLS/BLD/INC/SETJMP.H b/v4.0/src/TOOLS/BLD/INC/SETJMP.H new file mode 100644 index 0000000..6f74793 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SETJMP.H @@ -0,0 +1,35 @@ +/*** +*setjmp.h - definitions/declarations for setjmp/longjmp routines +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file defines the machine-dependent buffer used by +* setjmp/longjmp to save and restore the program state, and +* declarations for those routines. +* [ANSI/System V] +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl +#else /* extensions not enabled */ + #define _CDECL +#endif /* NO_EXT_KEYS */ + + +/* define the buffer type for holding the state information */ + +#define _JBLEN 9 /* bp, di, si, sp, ret addr, ds */ + +#ifndef _JMP_BUF_DEFINED +typedef int jmp_buf[_JBLEN]; +#define _JMP_BUF_DEFINED +#endif + + +/* function prototypes */ + +int _CDECL setjmp(jmp_buf); +void _CDECL longjmp(jmp_buf, int); diff --git a/v4.0/src/TOOLS/BLD/INC/SHARE.H b/v4.0/src/TOOLS/BLD/INC/SHARE.H new file mode 100644 index 0000000..2a34f71 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SHARE.H @@ -0,0 +1,15 @@ +/*** +*share.h - defines file sharing modes for sopen +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file defines the file sharing modes for sopen(). +* +*******************************************************************************/ + +#define SH_COMPAT 0x00 /* compatibility mode */ +#define SH_DENYRW 0x10 /* deny read/write mode */ +#define SH_DENYWR 0x20 /* deny write mode */ +#define SH_DENYRD 0x30 /* deny read mode */ +#define SH_DENYNO 0x40 /* deny none mode */ diff --git a/v4.0/src/TOOLS/BLD/INC/SIGNAL.H b/v4.0/src/TOOLS/BLD/INC/SIGNAL.H new file mode 100644 index 0000000..18b8f10 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SIGNAL.H @@ -0,0 +1,59 @@ +/*** +*signal.h - defines signal values and routines +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file defines the signal values and declares the signal functions. +* [ANSI/System V] +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl +#else /* extensions not enabled */ + #define _CDECL +#endif /* NO_EXT_KEYS */ + +#ifndef _SIG_ATOMIC_T_DEFINED +typedef int sig_atomic_t; +#define _SIG_ATOMIC_T_DEFINED +#endif + + +#define NSIG 23 /* maximum signal number + 1 */ + +/* signal types */ +/* SIGINT, SIGFPE, SIGILL, SIGSEGV, and SIGABRT are recognized on DOS 3.x */ + +#define SIGINT 2 /* interrupt - corresponds to DOS 3.x int 23H */ +#define SIGILL 4 /* illegal instruction - invalid function image */ +#define SIGFPE 8 /* floating point exception */ +#define SIGSEGV 11 /* segment violation */ +#define SIGTERM 15 /* Software termination signal from kill */ +#define SIGUSR1 16 /* User defined signal 1 */ +#define SIGUSR2 17 /* User defined signal 2 */ +#define SIGUSR3 20 /* User defined signal 3 */ +#define SIGBREAK 21 /* Ctrl-Break sequence */ +#define SIGABRT 22 /* abnormal termination triggered by abort call */ + + +/* signal action codes */ +/* SIG_DFL and SIG_IGN are recognized on DOS 3.x */ + +#define SIG_DFL (void (*)())0 /* default signal action */ +#define SIG_IGN (void (*)())1 /* ignore */ +#define SIG_SGE (void (*)())3 /* signal gets error */ +#define SIG_ACK (void (*)())4 /* error if handler not setup */ + + +/* signal error value (returned by signal call on error) */ + +#define SIG_ERR (void (*)())-1 /* signal error value */ + + +/* function prototypes */ + +void (_CDECL * _CDECL signal(int, void (_CDECL *)()))(); +int _CDECL raise(int); diff --git a/v4.0/src/TOOLS/BLD/INC/STDARG.H b/v4.0/src/TOOLS/BLD/INC/STDARG.H new file mode 100644 index 0000000..d261cfa --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/STDARG.H @@ -0,0 +1,20 @@ +/*** +*stdarg.h - defines ANSI-style macros for variable argument functions +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file defines ANSI-style macros for accessing arguments +* of functions which take a variable number of arguments. +* [ANSI] +* +*******************************************************************************/ + +#ifndef _VA_LIST_DEFINED +typedef char *va_list; +#define _VA_LIST_DEFINED +#endif + +#define va_start(ap,v) ap = (va_list)&v + sizeof(v) +#define va_arg(ap,t) ((t *)(ap += sizeof(t)))[-1] +#define va_end(ap) ap = NULL diff --git a/v4.0/src/TOOLS/BLD/INC/STDDEF.H b/v4.0/src/TOOLS/BLD/INC/STDDEF.H new file mode 100644 index 0000000..b9637b0 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/STDDEF.H @@ -0,0 +1,48 @@ +/*** +*stddef.h - definitions/declarations for common constants, types, variables +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file contains definitions and declarations for some commonly +* used constants, types, and variables. +* [ANSI] +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl + #define _NEAR near +#else /* extensions not enabled */ + #define _CDECL + #define _NEAR +#endif /* NO_EXT_KEYS */ + + +/* define NULL pointer value */ + +#if (defined(M_I86SM) || defined(M_I86MM)) +#define NULL 0 +#elif (defined(M_I86CM) || defined(M_I86LM) || defined(M_I86HM)) +#define NULL 0L +#endif + + +/* declare reference to errno */ + +extern int _NEAR _CDECL errno; + + +/* define the implementation dependent size types */ + +#ifndef _PTRDIFF_T_DEFINED +typedef int ptrdiff_t; +#define _PTRDIFF_T_DEFINED +#endif + +#ifndef _SIZE_T_DEFINED +typedef unsigned int size_t; +#define _SIZE_T_DEFINED +#endif + diff --git a/v4.0/src/TOOLS/BLD/INC/STDIO.H b/v4.0/src/TOOLS/BLD/INC/STDIO.H new file mode 100644 index 0000000..0c7f7b3 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/STDIO.H @@ -0,0 +1,165 @@ +/*** +*stdio.h - definitions/declarations for standard I/O routines +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file defines the structures, values, macros, and functions +* used by the level 2 I/O ("standard I/O") routines. +* [ANSI/System V] +* +*******************************************************************************/ + + +#ifndef _SIZE_T_DEFINED +typedef unsigned int size_t; +#define _SIZE_T_DEFINED +#endif + +#ifndef _VA_LIST_DEFINED +typedef char *va_list; +#define _VA_LIST_DEFINED +#endif + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl + #define _NEAR near +#else /* extensions not enabled */ + #define _CDECL + #define _NEAR +#endif /* NO_EXT_KEYS */ + + +/* buffered I/O macros */ + +#define BUFSIZ 512 +#define _NFILE 20 +#define EOF (-1) + +#ifndef _FILE_DEFINED +#define FILE struct _iobuf +#define _FILE_DEFINED +#endif + +/* P_tmpnam: Directory where temporary files may be created. + * L_tmpnam size = size of P_tmpdir + * + 1 (in case P_tmpdir does not end in "\\") + * + 6 (for the temp number string) + * + 1 (for the null terminator) + */ + +#define P_tmpdir "\\" +#define L_tmpnam sizeof(P_tmpdir)+8 + +#define SEEK_CUR 1 +#define SEEK_END 2 +#define SEEK_SET 0 + +#define SYS_OPEN 20 +#define TMP_MAX 32767 + + +/* define NULL pointer value */ + +#if (defined(M_I86SM) || defined(M_I86MM)) +#define NULL 0 +#elif (defined(M_I86CM) || defined(M_I86LM) || defined(M_I86HM)) +#define NULL 0L +#endif + + +/* define file control block */ + +#ifndef _IOB_DEFINED +extern FILE { + char *_ptr; + int _cnt; + char *_base; + char _flag; + char _file; + } _NEAR _CDECL _iob[]; +#define _IOB_DEFINED +#endif + +#define fpos_t long /* file position variable */ + +#define stdin (&_iob[0]) +#define stdout (&_iob[1]) +#define stderr (&_iob[2]) +#define stdaux (&_iob[3]) +#define stdprn (&_iob[4]) + +#define _IOREAD 0x01 +#define _IOWRT 0x02 + +#define _IOFBF 0x0 +#define _IOLBF 0x40 +#define _IONBF 0x04 + +#define _IOMYBUF 0x08 +#define _IOEOF 0x10 +#define _IOERR 0x20 +#define _IOSTRG 0x40 +#define _IORW 0x80 + +#define getc(f) (--(f)->_cnt >= 0 ? 0xff & *(f)->_ptr++ : _filbuf(f)) +#define putc(c,f) (--(f)->_cnt >= 0 ? 0xff & (*(f)->_ptr++ = (char)(c)) \ + : _flsbuf((c),(f))) +#define getchar() getc(stdin) +#define putchar(c) putc((c),stdout) + +#define feof(f) ((f)->_flag & _IOEOF) +#define ferror(f) ((f)->_flag & _IOERR) +#define fileno(f) ((f)->_file) + + +/* function prototypes */ + +int _CDECL _filbuf(FILE *); +int _CDECL _flsbuf(int, FILE *); +void _CDECL clearerr(FILE *); +int _CDECL fclose(FILE *); +int _CDECL fcloseall(void); +FILE * _CDECL fdopen(int, char *); +int _CDECL fflush(FILE *); +int _CDECL fgetc(FILE *); +int _CDECL fgetchar(void); +int _CDECL fgetpos(FILE *, fpos_t *); +char * _CDECL fgets(char *, int, FILE *); +int _CDECL flushall(void); +FILE * _CDECL fopen(const char *, const char *); +int _CDECL fprintf(FILE *, const char *, ...); +int _CDECL fputc(int, FILE *); +int _CDECL fputchar(int); +int _CDECL fputs(const char *, FILE *); +size_t _CDECL fread(void *, size_t, size_t, FILE *); +FILE * _CDECL freopen(const char *, const char *, FILE *); +int _CDECL fscanf(FILE *, const char *, ...); +int _CDECL fsetpos(FILE *, const fpos_t *); +int _CDECL fseek(FILE *, long, int); +long _CDECL ftell(FILE *); +size_t _CDECL fwrite(const void *, size_t, size_t, FILE *); +char * _CDECL gets(char *); +int _CDECL getw(FILE *); +void _CDECL perror(const char *); +int _CDECL printf(const char *, ...); +int _CDECL puts(const char *); +int _CDECL putw(int, FILE *); +int _CDECL remove(const char *); +int _CDECL rename(const char *, const char *); +void _CDECL rewind(FILE *); +int _CDECL rmtmp(void); +int _CDECL scanf(const char *, ...); +void _CDECL setbuf(FILE *, char *); +int _CDECL setvbuf(FILE *, char *, int, size_t); +int _CDECL sprintf(char *, const char *, ...); +int _CDECL sscanf(const char *, const char *, ...); +char * _CDECL tempnam(char *, char *); +FILE * _CDECL tmpfile(void); +char * _CDECL tmpnam(char *); +int _CDECL ungetc(int, FILE *); +int _CDECL unlink(const char *); +int _CDECL vfprintf(FILE *, const char *, va_list); +int _CDECL vprintf(const char *, va_list); +int _CDECL vsprintf(char *, const char *, va_list); + diff --git a/v4.0/src/TOOLS/BLD/INC/STDLIB.H b/v4.0/src/TOOLS/BLD/INC/STDLIB.H new file mode 100644 index 0000000..5fb67d7 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/STDLIB.H @@ -0,0 +1,151 @@ +/*** +*stdlib.h - declarations/definitions for commonly used library functions +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This include file contains the function declarations for +* commonly used library functions which either don't fit somewhere +* else, or, like toupper/tolower, can't be declared in the normal +* place (ctype.h in the case of toupper/tolower) for other reasons. +* [ANSI] +* +*******************************************************************************/ + + +#ifndef _SIZE_T_DEFINED +typedef unsigned int size_t; +#define _SIZE_T_DEFINED +#endif + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl + #define _NEAR near +#else /* extensions not enabled */ + #define _CDECL + #define _NEAR +#endif /* NO_EXT_KEYS */ + + +/* definition of the return type for the onexit() function */ + +#ifndef _ONEXIT_T_DEFINED +typedef int (_CDECL * _CDECL onexit_t)(); +#define _ONEXIT_T_DEFINED +#endif + + +/* Data structure definitions for div and ldiv runtimes. */ + +#ifndef _DIV_T_DEFINED + +typedef struct { + int quot; + int rem; +} div_t; + +typedef struct { + long quot; + long rem; +} ldiv_t; + +#define _DIV_T_DEFINED +#endif + +/* Maximum value that can be returned by the rand function. */ + +#define RAND_MAX 0x7fff + + +/* min and max macros */ + +#define max(a,b) (((a) > (b)) ? (a) : (b)) +#define min(a,b) (((a) < (b)) ? (a) : (b)) + + +/* sizes for buffers used by the _makepath() and _splitpath() functions. + * note that the sizes include space for 0-terminator + */ + +#define _MAX_PATH 144 /* max. length of full pathname */ +#define _MAX_DRIVE 3 /* max. length of drive component */ +#define _MAX_DIR 130 /* max. length of path component */ +#define _MAX_FNAME 9 /* max. length of file name component */ +#define _MAX_EXT 5 /* max. length of extension component */ + +/* external variable declarations */ + +extern int _NEAR _CDECL errno; /* XENIX style error number */ +extern int _NEAR _CDECL _doserrno; /* MS-DOS system error value */ +extern char * _NEAR _CDECL sys_errlist[]; /* perror error message table */ +extern int _NEAR _CDECL sys_nerr; /* # of entries in sys_errlist table */ + +extern char ** _NEAR _CDECL environ; /* pointer to environment table */ + +extern unsigned int _NEAR _CDECL _psp; /* Program Segment Prefix */ + +extern int _NEAR _CDECL _fmode; /* default file translation mode */ + +/* DOS major/minor version numbers */ + +extern unsigned char _NEAR _CDECL _osmajor; +extern unsigned char _NEAR _CDECL _osminor; + +#define DOS_MODE 0 /* Real Address Mode */ +#define OS2_MODE 1 /* Protected Address Mode */ + +extern unsigned char _NEAR _CDECL _osmode; + + +/* function prototypes */ + +double _CDECL atof(const char *); +double _CDECL strtod(const char *, char * *); +ldiv_t _CDECL ldiv(long, long); + +void _CDECL abort(void); +int _CDECL abs(int); +int _CDECL atexit(void (_CDECL *)(void)); +int _CDECL atoi(const char *); +long _CDECL atol(const char *); +void * _CDECL bsearch(const void *, const void *, size_t, size_t, int (_CDECL *)(const void *, const void *)); +void * _CDECL calloc(size_t, size_t); +div_t _CDECL div(int, int); +char * _CDECL ecvt(double, int, int *, int *); +void _CDECL exit(int); +void _CDECL _exit(int); +char * _CDECL fcvt(double, int, int *, int *); +void _CDECL free(void *); +char * _CDECL gcvt(double, int, char *); +char * _CDECL getenv(const char *); +char * _CDECL itoa(int, char *, int); +long _CDECL labs(long); +unsigned long _CDECL _lrotl(unsigned long, int); +unsigned long _CDECL _lrotr(unsigned long, int); +char * _CDECL ltoa(long, char *, int); +void _CDECL _makepath(char *, char *, char *, char *, char *); +void * _CDECL malloc(size_t); +onexit_t _CDECL onexit(onexit_t); +void _CDECL perror(const char *); +int _CDECL putenv(char *); +void _CDECL qsort(void *, size_t, size_t, int (_CDECL *)(const void *, const void *)); +unsigned int _CDECL _rotl(unsigned int, int); +unsigned int _CDECL _rotr(unsigned int, int); +int _CDECL rand(void); +void * _CDECL realloc(void *, size_t); +void _CDECL _searchenv(char *, char *, char *); +void _CDECL _splitpath(char *, char *, char *, char *, char *); +void _CDECL srand(unsigned int); +long _CDECL strtol(const char *, char * *, int); +unsigned long _CDECL strtoul(const char *, char * *, int); +void _CDECL swab(char *, char *, int); +int _CDECL system(const char *); +char * _CDECL ultoa(unsigned long, char *, int); + +#ifndef tolower /* tolower has been undefined - use function */ +int _CDECL tolower(int); +#endif /* tolower */ + +#ifndef toupper /* toupper has been undefined - use function */ +int _CDECL toupper(int); +#endif /* toupper */ diff --git a/v4.0/src/TOOLS/BLD/INC/STRING.H b/v4.0/src/TOOLS/BLD/INC/STRING.H new file mode 100644 index 0000000..8340688 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/STRING.H @@ -0,0 +1,61 @@ +/*** +*string.h - declarations for string manipulation functions +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file contains the function declarations for the string +* manipulation functions. +* [ANSI/System V] +* +*******************************************************************************/ + + +#ifndef _SIZE_T_DEFINED +typedef unsigned int size_t; +#define _SIZE_T_DEFINED +#endif + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl +#else /* extensions not enabled */ + #define _CDECL +#endif /* NO_EXT_KEYS */ + + +/* function prototypes */ + +void * _CDECL memccpy(void *, void *, int, unsigned int); +void * _CDECL memchr(const void *, int, size_t); +int _CDECL memcmp(const void *, const void *, size_t); +int _CDECL memicmp(void *, void *, unsigned int); +void * _CDECL memcpy(void *, const void *, size_t); +void * _CDECL memmove(void *, const void *, size_t); +void * _CDECL memset(void *, int, size_t); +void _CDECL movedata(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int); + +char * _CDECL strcat(char *, const char *); +char * _CDECL strchr(const char *, int); +int _CDECL strcmp(const char *, const char *); +int _CDECL strcmpi(const char *, const char *); +int _CDECL stricmp(const char *, const char *); +char * _CDECL strcpy(char *, const char *); +size_t _CDECL strcspn(const char *, const char *); +char * _CDECL strdup(const char *); +char * _CDECL _strerror(char *); +char * _CDECL strerror(int); +size_t _CDECL strlen(const char *); +char * _CDECL strlwr(char *); +char * _CDECL strncat(char *, const char *, size_t); +int _CDECL strncmp(const char *, const char *, size_t); +int _CDECL strnicmp(const char *, const char *, size_t); +char * _CDECL strncpy(char *, const char *, size_t); +char * _CDECL strnset(char *, int, size_t); +char * _CDECL strpbrk(const char *, const char *); +char * _CDECL strrchr(const char *, int); +char * _CDECL strrev(char *); +char * _CDECL strset(char *, int); +size_t _CDECL strspn(const char *, const char *); +char * _CDECL strstr(const char *, const char *); +char * _CDECL strtok(char *, const char *); +char * _CDECL strupr(char *); diff --git a/v4.0/src/TOOLS/BLD/INC/SYS/LOCKING.H b/v4.0/src/TOOLS/BLD/INC/SYS/LOCKING.H new file mode 100644 index 0000000..fb76160 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SYS/LOCKING.H @@ -0,0 +1,16 @@ +/*** +*sys\locking.h - flags for locking() function +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file defines the flags for the locking() function. +* [System V] +* +*******************************************************************************/ + +#define LK_UNLCK 0 /* unlock the file region */ +#define LK_LOCK 1 /* lock the file region */ +#define LK_NBLCK 2 /* non-blocking lock */ +#define LK_RLCK 3 /* lock for writing */ +#define LK_NBRLCK 4 /* non-blocking lock for writing */ diff --git a/v4.0/src/TOOLS/BLD/INC/SYS/STAT.H b/v4.0/src/TOOLS/BLD/INC/SYS/STAT.H new file mode 100644 index 0000000..4259208 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SYS/STAT.H @@ -0,0 +1,56 @@ +/*** +*sys\stat.h - defines structure used by stat() and fstat() +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file defines the structure used by the stat() and fstat() +* routines. +* [System V] +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define CDECL cdecl +#else /* extensions not enabled */ + #define CDECL +#endif /* NO_EXT_KEYS */ + +#ifndef _TIME_T_DEFINED +typedef long time_t; +#define _TIME_T_DEFINED +#endif + +/* define structure for returning status information */ + +#ifndef _STAT_DEFINED +struct stat { + dev_t st_dev; + ino_t st_ino; + unsigned short st_mode; + short st_nlink; + short st_uid; + short st_gid; + dev_t st_rdev; + off_t st_size; + time_t st_atime; + time_t st_mtime; + time_t st_ctime; + }; +#define _STAT_DEFINED +#endif + +#define S_IFMT 0170000 /* file type mask */ +#define S_IFDIR 0040000 /* directory */ +#define S_IFCHR 0020000 /* character special */ +#define S_IFREG 0100000 /* regular */ +#define S_IREAD 0000400 /* read permission, owner */ +#define S_IWRITE 0000200 /* write permission, owner */ +#define S_IEXEC 0000100 /* execute/search permission, owner */ + + +/* function prototypes */ + +int CDECL fstat(int, struct stat *); +int CDECL stat(char *, struct stat *); diff --git a/v4.0/src/TOOLS/BLD/INC/SYS/TIMEB.H b/v4.0/src/TOOLS/BLD/INC/SYS/TIMEB.H new file mode 100644 index 0000000..46bf4ac --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SYS/TIMEB.H @@ -0,0 +1,39 @@ +/*** +*sys\timeb.h - definition/declarations for ftime() +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file define the ftime() function and the types it uses. +* [System V] +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define CDECL cdecl +#else /* extensions not enabled */ + #define CDECL +#endif /* NO_EXT_KEYS */ + +#ifndef _TIME_T_DEFINED +typedef long time_t; +#define _TIME_T_DEFINED +#endif + +/* structure returned by ftime system call */ + +#ifndef _TIMEB_DEFINED +struct timeb { + time_t time; + unsigned short millitm; + short timezone; + short dstflag; + }; +#define _TIMEB_DEFINED +#endif + + +/* function prototypes */ + +void CDECL ftime(struct timeb *); diff --git a/v4.0/src/TOOLS/BLD/INC/SYS/TYPES.H b/v4.0/src/TOOLS/BLD/INC/SYS/TYPES.H new file mode 100644 index 0000000..84fc6b6 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SYS/TYPES.H @@ -0,0 +1,31 @@ +/*** +*sys\types.h - types returned by system level calls for file and time info +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file defines types used in defining values returned by system +* level calls for file status and time information. +* [System V] +* +*******************************************************************************/ + +#ifndef _INO_T_DEFINED +typedef unsigned short ino_t; /* i-node number (not used on DOS) */ +#define _INO_T_DEFINED +#endif + +#ifndef _TIME_T_DEFINED +typedef long time_t; +#define _TIME_T_DEFINED +#endif + +#ifndef _DEV_T_DEFINED +typedef short dev_t; /* device code */ +#define _DEV_T_DEFINED +#endif + +#ifndef _OFF_T_DEFINED +typedef long off_t; /* file offset value */ +#define _OFF_T_DEFINED +#endif diff --git a/v4.0/src/TOOLS/BLD/INC/SYS/UTIME.H b/v4.0/src/TOOLS/BLD/INC/SYS/UTIME.H new file mode 100644 index 0000000..868756c --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SYS/UTIME.H @@ -0,0 +1,40 @@ +/*** +*sys\utime.h - definitions/declarations for utime() +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file defines the structure used by the utime routine to set +* new file access and modification times. NOTE - MS-DOS +* does not recognize access time, so this field will +* always be ignored and the modification time field will be +* used to set the new time. +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define CDECL cdecl +#else /* extensions not enabled */ + #define CDECL +#endif /* NO_EXT_KEYS */ + +#ifndef _TIME_T_DEFINED +typedef long time_t; +#define _TIME_T_DEFINED +#endif + +/* define struct used by utime() function */ + +#ifndef _UTIMBUF_DEFINED +struct utimbuf { + time_t actime; /* access time */ + time_t modtime; /* modification time */ + }; +#define _UTIMBUF_DEFINED +#endif + + +/* function prototypes */ + +int CDECL utime(char *, struct utimbuf *); diff --git a/v4.0/src/TOOLS/BLD/INC/TIME.H b/v4.0/src/TOOLS/BLD/INC/TIME.H new file mode 100644 index 0000000..d9a1681 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/TIME.H @@ -0,0 +1,75 @@ +/*** +*time.h - definitions/declarations for time routines +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file has declarations of time routines and defines +* the structure returned by the localtime and gmtime routines and +* used by asctime. +* [ANSI/System V] +* +*******************************************************************************/ + + +#ifndef NO_EXT_KEYS /* extensions enabled */ + #define _CDECL cdecl + #define _NEAR near +#else /* extensions not enabled */ + #define _CDECL + #define _NEAR +#endif /* NO_EXT_KEYS */ + + +/* define the implementation defined time type */ + +#ifndef _TIME_T_DEFINED +typedef long time_t; /* time value */ +#define _TIME_T_DEFINED /* avoid multiple def's of time_t */ +#endif + +#ifndef _CLOCK_T_DEFINED +typedef long clock_t; +#define _CLOCK_T_DEFINED +#endif + +#ifndef _TM_DEFINED +struct tm { + int tm_sec; /* seconds after the minute - [0,59] */ + int tm_min; /* minutes after the hour - [0,59] */ + int tm_hour; /* hours since midnight - [0,23] */ + int tm_mday; /* day of the month - [1,31] */ + int tm_mon; /* months since January - [0,11] */ + int tm_year; /* years since 1900 */ + int tm_wday; /* days since Sunday - [0,6] */ + int tm_yday; /* days since January 1 - [0,365] */ + int tm_isdst; /* daylight savings time flag */ + }; +#define _TM_DEFINED +#endif + +#define CLK_TCK 1000 + + +/* extern declarations for the global variables used by the ctime family of + * routines. + */ + +extern int _NEAR _CDECL daylight; /* non-zero if daylight savings time is used */ +extern long _NEAR _CDECL timezone; /* difference in seconds between GMT and local time */ +extern char * _NEAR _CDECL tzname[2]; /* standard/daylight savings time zone names */ + + +/* function prototypes */ + +char * _CDECL asctime(const struct tm *); +char * _CDECL ctime(const time_t *); +clock_t _CDECL clock(void); +double _CDECL difftime(time_t, time_t); +struct tm * _CDECL gmtime(const time_t *); +struct tm * _CDECL localtime(const time_t *); +time_t _CDECL mktime(struct tm *); +char * _CDECL _strdate(char *); +char * _CDECL _strtime(char *); +time_t _CDECL time(time_t *); +void _CDECL tzset(void); diff --git a/v4.0/src/TOOLS/BLD/INC/VARARGS.H b/v4.0/src/TOOLS/BLD/INC/VARARGS.H new file mode 100644 index 0000000..e96d04e --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/VARARGS.H @@ -0,0 +1,21 @@ +/*** +*varargs.h - XENIX style macros for variable argument functions +* +* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. +* +*Purpose: +* This file defines XENIX style macros for accessing arguments of a +* function which takes a variable number of arguments. +* [System V] +* +*******************************************************************************/ + +#ifndef _VA_LIST_DEFINED +typedef char *va_list; +#define _VA_LIST_DEFINED +#endif + +#define va_dcl va_list va_alist; +#define va_start(ap) ap = (va_list)&va_alist +#define va_arg(ap,t) ((t *)(ap += sizeof(t)))[-1] +#define va_end(ap) ap = NULL diff --git a/v4.0/src/TOOLS/BLD/LIB/BINMODE.OBJ b/v4.0/src/TOOLS/BLD/LIB/BINMODE.OBJ new file mode 100644 index 0000000..a443384 Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/BINMODE.OBJ differ diff --git a/v4.0/src/TOOLS/BLD/LIB/CLIBCE.LIB b/v4.0/src/TOOLS/BLD/LIB/CLIBCE.LIB new file mode 100644 index 0000000..a1433ab Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/CLIBCE.LIB differ diff --git a/v4.0/src/TOOLS/BLD/LIB/CLIBCR.LIB b/v4.0/src/TOOLS/BLD/LIB/CLIBCR.LIB new file mode 100644 index 0000000..e8e33da Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/CLIBCR.LIB differ diff --git a/v4.0/src/TOOLS/BLD/LIB/CLIBFP.LIB b/v4.0/src/TOOLS/BLD/LIB/CLIBFP.LIB new file mode 100644 index 0000000..fe17da2 Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/CLIBFP.LIB differ diff --git a/v4.0/src/TOOLS/BLD/LIB/CVARSTCK.OBJ b/v4.0/src/TOOLS/BLD/LIB/CVARSTCK.OBJ new file mode 100644 index 0000000..5129408 Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/CVARSTCK.OBJ differ diff --git a/v4.0/src/TOOLS/BLD/LIB/EM.LIB b/v4.0/src/TOOLS/BLD/LIB/EM.LIB new file mode 100644 index 0000000..0d6279e Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/EM.LIB differ diff --git a/v4.0/src/TOOLS/BLD/LIB/GRAPHICS.LIB b/v4.0/src/TOOLS/BLD/LIB/GRAPHICS.LIB new file mode 100644 index 0000000..4b7e0e7 Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/GRAPHICS.LIB differ diff --git a/v4.0/src/TOOLS/BLD/LIB/LIBH.LIB b/v4.0/src/TOOLS/BLD/LIB/LIBH.LIB new file mode 100644 index 0000000..f7d3e50 Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/LIBH.LIB differ diff --git a/v4.0/src/TOOLS/BLD/LIB/LLIBCE.LIB b/v4.0/src/TOOLS/BLD/LIB/LLIBCE.LIB new file mode 100644 index 0000000..0c581d1 Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/LLIBCE.LIB differ diff --git a/v4.0/src/TOOLS/BLD/LIB/LLIBCR.LIB b/v4.0/src/TOOLS/BLD/LIB/LLIBCR.LIB new file mode 100644 index 0000000..1815c2b Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/LLIBCR.LIB differ diff --git a/v4.0/src/TOOLS/BLD/LIB/LLIBFP.LIB b/v4.0/src/TOOLS/BLD/LIB/LLIBFP.LIB new file mode 100644 index 0000000..804dcdc Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/LLIBFP.LIB differ diff --git a/v4.0/src/TOOLS/BLD/LIB/LVARSTCK.OBJ b/v4.0/src/TOOLS/BLD/LIB/LVARSTCK.OBJ new file mode 100644 index 0000000..365bbb6 Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/LVARSTCK.OBJ differ diff --git a/v4.0/src/TOOLS/BLD/LIB/MLIBCE.LIB b/v4.0/src/TOOLS/BLD/LIB/MLIBCE.LIB new file mode 100644 index 0000000..3e35f4a Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/MLIBCE.LIB differ diff --git a/v4.0/src/TOOLS/BLD/LIB/MLIBCR.LIB b/v4.0/src/TOOLS/BLD/LIB/MLIBCR.LIB new file mode 100644 index 0000000..ae2c1c2 Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/MLIBCR.LIB differ diff --git a/v4.0/src/TOOLS/BLD/LIB/MLIBFP.LIB b/v4.0/src/TOOLS/BLD/LIB/MLIBFP.LIB new file mode 100644 index 0000000..9a74029 Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/MLIBFP.LIB differ diff --git a/v4.0/src/TOOLS/BLD/LIB/MVARSTCK.OBJ b/v4.0/src/TOOLS/BLD/LIB/MVARSTCK.OBJ new file mode 100644 index 0000000..2f2504c Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/MVARSTCK.OBJ differ diff --git a/v4.0/src/TOOLS/BLD/LIB/SETARGV.OBJ b/v4.0/src/TOOLS/BLD/LIB/SETARGV.OBJ new file mode 100644 index 0000000..7578cac Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/SETARGV.OBJ differ diff --git a/v4.0/src/TOOLS/BLD/LIB/SLIBCE.LIB b/v4.0/src/TOOLS/BLD/LIB/SLIBCE.LIB new file mode 100644 index 0000000..cbc6138 Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/SLIBCE.LIB differ diff --git a/v4.0/src/TOOLS/BLD/LIB/SLIBCR.LIB b/v4.0/src/TOOLS/BLD/LIB/SLIBCR.LIB new file mode 100644 index 0000000..27017a1 Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/SLIBCR.LIB differ diff --git a/v4.0/src/TOOLS/BLD/LIB/SLIBFP.LIB b/v4.0/src/TOOLS/BLD/LIB/SLIBFP.LIB new file mode 100644 index 0000000..362f4e9 Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/SLIBFP.LIB differ diff --git a/v4.0/src/TOOLS/BLD/LIB/SVARSTCK.OBJ b/v4.0/src/TOOLS/BLD/LIB/SVARSTCK.OBJ new file mode 100644 index 0000000..f88e7ae Binary files /dev/null and b/v4.0/src/TOOLS/BLD/LIB/SVARSTCK.OBJ differ -- cgit v1.2.3