|
|
1.1 root 1: /* The Plum Hall Validation Suite for C
2: * Unpublished copyright (c) 1986-1991, Chiron Systems Inc and Plum Hall Inc.
3: * VERSION: 4
4: * DATE: 1993-01-01
5: * The "ANSI" mode of this suite corresponds to official ANSI C, X3.159-1989.
6: * As per your license agreement, your distribution is not to be moved or copied outside the Designated Site
7: * without specific permission from Plum Hall Inc.
8: */
9:
10: /*
11: * LIB - standard library tests
12: */
13: #define LIB_TEST 1 /* prevents inclusion of limits.h and float.h */
14: #include "defs.h"
15: void d4_1();
16: void d4_2();
17: void d4_3();
18: void d4_4();
19: void d4_5();
20: void d4_6();
21: void d4_7();
22: void d4_8();
23: void d4_9();
24: void d4_10();
25: void d4_11();
26: void d4_12();
27: static void save_errno();
28: int main(argc, argv)
29: int argc;
30: char **argv;
31: {
32: extern int Debug;
33:
34: if (argc > 1)
35: Debug = TRUE;
36: save_errno();
37: #include "license.h"
38: Filename = "lib.c";
39: d4_1();
40: d4_2();
41: d4_3();
42: d4_4();
43: d4_5();
44: d4_6();
45: d4_7();
46: d4_8();
47: d4_9();
48: d4_10();
49: d4_11();
50: d4_12();
51: return report("LIB");
52: }
53: /* save_errno - pick up initial value of errno before any possible alteration
54: */
55: #if ANSI && HAS_PROTOTYPES && !SKIP41
56: #include <errno.h>
57: int errno_init = -1;
58: static void save_errno()
59: {
60: errno_init = errno;
61: }
62: #else
63: static void save_errno() { }
64: #endif /* ANSI etc */
65: /*
66: * For "almost-ANSI" compilers that are missing parts of the latest ANSI library,
67: * include stubs for these functions here.
68: */
69: #if ANSI && !LIB_NOV_86
70: #include "stubs.c"
71: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.