-
Notifications
You must be signed in to change notification settings - Fork 0
/
ckuver.h
1265 lines (1159 loc) · 23.3 KB
/
ckuver.h
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* ckuver.h -- C-Kermit UNIX Version heralds */
/*
Author: Frank da Cruz <fdc@kermitproject.edu>.
Copyright (C) 1985, 2012,
Trustees of Columbia University in the City of New York.
All rights reserved. See the C-Kermit COPYING.TXT file or the
copyright text in the ckcmai.c module for disclaimer and permissions.
*/
#ifndef CKUVER_H
#define CKUVER_H
/* Arranged more or less alphabetically by compiler symbol */
/* Must be included AFTER ckcdeb.h. */
#ifdef BEOS
#ifdef BEOS45
#define HERALD " BeOS 4.5"
#else
#define HERALD " BeOS"
#endif /* BEOS45 */
#else
#ifdef BEBOX
#ifdef BE_DR_7
#define HERALD " BeBox DR7"
#else
#define HERALD " BeBox"
#endif /* BE_DR_7 */
#endif /* BEBOX */
#endif /* BEOS */
#ifdef BELLV10
#define HERALD " Bell Labs Research UNIX V10"
#endif /* BELLV10 */
#ifdef APOLLOSR10
#define HERALD " Apollo SR10"
#endif /* APOLLOSR10 */
#ifdef MAC
#define HERALD " Apple Macintosh"
#endif /* MAC */
#ifdef A986
#define HERALD " Altos 986 / Xenix 3.0"
#endif /* A986 */
#ifdef AS400
#define HERALD " AS/400"
#endif /* AS400 */
#ifdef aegis
#ifdef BSD4
#define HERALD " Apollo DOMAIN/IX 4.2 BSD"
#else
#ifdef ATTSV
#define HERALD " Apollo DOMAIN/IX System V"
#else
#define HERALD " Apollo Aegis"
#endif /* BSD4 */
#endif /* ATTSV */
#endif /* aegis */
#ifndef HERALD
#ifdef AIXRS
#ifdef AIX53
#define HERALD " IBM AIX 5.3"
#else
#ifdef AIX52
#define HERALD " IBM AIX 5.2"
#else
#ifdef AIX51
#define HERALD " IBM AIX 5.1"
#else
#ifdef AIX45
#define HERALD " IBM AIX 5.0"
#else
#ifdef AIX45
#define HERALD " IBM AIX 4.5"
#else
#ifdef AIX44
#define HERALD " IBM AIX 4.4"
#else
#ifdef AIX43
#define HERALD " IBM AIX 4.3"
#else
#ifdef AIX42
#define HERALD " IBM AIX 4.2"
#else
#ifdef SVR4
#ifdef AIX41
#define HERALD " IBM AIX 4.1"
#else
#define HERALD " IBM RS/6000 AIX 3.2"
#endif /* AIX41 */
#else
#define HERALD " IBM RS/6000 AIX 3.0/3.1"
#endif /* SVR4 */
#endif /* AIX42 */
#endif /* AIX43 */
#endif /* AIX44 */
#endif /* AIX45 */
#endif /* AIX50 */
#endif /* AIX51 */
#endif /* AIX52 */
#endif /* AIX53 */
#endif /* AIXRS */
#ifdef PS2AIX10
#define HERALD " IBM PS/2 AIX 1.x"
#endif /* PS2AIX10 */
#ifdef AIXPS2
#define HERALD " IBM PS/2 AIX 3.x"
#endif /* AIXPS2 */
#ifdef AIX370
#ifndef HERALD
#define HERALD " IBM System/370 AIX/370"
#endif
#endif /* AIX370 */
#ifdef AIXESA
#ifndef HERALD
#define HERALD " IBM AIX/ESA version 2.1"
#endif
#endif /* AIXESA */
#ifdef ATT6300
#define HERALD " AT&T 6300"
#endif /* ATT6300 */
#ifdef ATT7300
#ifdef UNIX351M
#define HERALD " AT&T 7300 UNIX PC UNIX 3.51m"
#else
#define HERALD " AT&T 7300 UNIX PC"
#endif /* UNIX351M */
#endif /* ATT7300 */
#ifdef AUX
#define HERALD " Apple Macintosh AUX"
#endif /* AUX */
#ifdef BSD44
#ifdef MACOSX
#define HERALD " Mac OS X"
#else
#ifdef __OpenBSD__
#define HERALD " OpenBSD"
#else
#ifdef __bsdi__
#ifdef BSDI4
#define HERALD " BSDI BSD/OS 4.0"
#else
#ifdef BSDI3
#define HERALD " BSDI BSD/OS 3.0"
#else
#ifdef BSDI2
#define HERALD " BSDI BSD/OS 2.0" /* 1.1++ name... */
#else
#define HERALD " BSDI BSD/386" /* Original 1.0 name */
#endif /* BSDI2 */
#endif /* BSDI3 */
#endif /* BSDI4 */
#else /* __bsdi__ */
#ifdef __NetBSD__
#ifndef HERALD
#ifdef NETBSD16
#define HERALD " NetBSD 1.6"
#else
#ifdef NETBSD15
#define HERALD " NetBSD 1.5"
#else
#define HERALD " NetBSD"
#endif /* NETBSD15 */
#endif /* NETBSD16 */
#endif /* HERALD */
#else /* __NetBSD__ */
#ifdef __FreeBSD__
#ifdef FREEBSD51
#define HERALD " FreeBSD 5.1"
#else
#ifdef FREEBSD50
#define HERALD " FreeBSD 5.0"
#else
#ifdef FREEBSD49
#define HERALD " FreeBSD 4.9"
#else
#ifdef FREEBSD48
#define HERALD " FreeBSD 4.8"
#else
#ifdef FREEBSD47
#define HERALD " FreeBSD 4.7"
#else
#ifdef FREEBSD46
#define HERALD " FreeBSD 4.6"
#else
#ifdef FREEBSD45
#define HERALD " FreeBSD 4.5"
#else
#ifdef FREEBSD44
#define HERALD " FreeBSD 4.4"
#else
#ifdef FREEBSD43
#define HERALD " FreeBSD 4.3"
#else
#ifdef FREEBSD42
#define HERALD " FreeBSD 4.2"
#else
#ifdef FREEBSD41
#define HERALD " FreeBSD 4.1"
#else
#ifdef FREEBSD4
#define HERALD " FreeBSD 4.0"
#else
#ifdef FREEBSD3
#define HERALD " FreeBSD 3.0"
#else
#ifdef FREEBSD2
#define HERALD " FreeBSD 2.0"
#else
#define HERALD " FreeBSD"
#endif /* FREEBSD2 */
#endif /* FREEBSD3 */
#endif /* FREEBSD4 */
#endif /* FREEBSD41 */
#endif /* FREEBSD42 */
#endif /* FREEBSD43 */
#endif /* FREEBSD44 */
#endif /* FREEBSD45 */
#endif /* FREEBSD46 */
#endif /* FREEBSD47 */
#endif /* FREEBSD48 */
#endif /* FREEBSD49 */
#endif /* FREEBSD50 */
#endif /* FREEBSD51 */
#else
#ifdef __386BSD__
#define HERALD " 386BSD"
#else
#define HERALD " 4.4BSD"
#endif /* __386BSD__ */
#endif /* __FreeBSD__ */
#endif /* __NetBSD__ */
#endif /* __bsdi__ */
#endif /* __OpenBSD__ */
#endif /* MACOSX */
#endif /* BSD44 */
#ifdef ENCORE
#ifdef BSD43
#define HERALD " Encore Multimax UMAX 4.3"
#else
#define HERALD " Encore Multimax UMAX 4.2"
#endif
#endif /* ENCORE */
#ifdef BSD29
#define HERALD " 2.9 BSD"
#endif /* BSD29 */
#ifdef BSD41
#define HERALD " 4.1 BSD"
#endif /* BSD41 */
#ifdef C70
#define HERALD " BBN C/70"
#endif /* c70 */
#ifdef CIE
#define HERALD " CIE Systems 680/20 Regulus"
#endif /* CIE */
#ifdef COHERENT
#ifdef _I386
#define HERALD " MWC Coherent 386 4.x"
#ifndef i386
#define i386
#endif /* i386 */
#else
#define HERALD " PC/AT MWC Coherent 286 3.x"
#ifndef i286
#define i286
#endif /* i286 */
#endif /* _I386 */
#endif /* COHERENT */
#ifdef CONVEX9
#define HERALD " Convex/OS"
#endif /* CONVEX9 */
#ifdef CONVEX10
#define HERALD " Convex/OS 10.1"
#endif /* CONVEX10 */
#ifdef _CRAY
#ifdef _CRAYCOM
#define HERALD " Cray CSOS"
#else /* _CRAYCOM */
#define HERALD " Cray UNICOS"
#endif /* _CRAYCOM */
#endif /* _CRAY */
#ifdef DGUX
#ifdef DGUX54420
#define HERALD " Data General DG/UX R4.20"
#else
#ifdef DGUX54411
#define HERALD " Data General DG/UX R4.11"
#else
#ifdef DGUX54410
#define HERALD " Data General DG/UX R4.10"
#else
#ifdef DGUX54310
#define HERALD " Data General DG/UX 5.4R3.10"
#else
#ifdef DGUX543
#define HERALD " Data General DG/UX 5.4R3.00"
#else
#ifdef DGUX540
#define HERALD " Data General DG/UX 5.4"
#else
#ifdef DGUX430
#define HERALD " Data General DG/UX 4.30"
#else
#define HERALD " Data General DG/UX"
#endif /* DGUX430 */
#endif /* DGUX540 */
#endif /* DGUX543 */
#endif /* DGUX54310 */
#endif /* DGUX54410 */
#endif /* DGUX54411 */
#endif /* DGUX54420 */
#endif /* DGUX */
#ifdef datageneral
#ifndef HERALD
#define HERALD " Data General AOS/VS"
#endif /* HERALD */
#endif /* datageneral */
#ifdef SINIX
#ifdef SNI544
#define HERALD " Siemens Nixdorf Reliant UNIX V5.44"
#else
#ifdef SNI543
#define HERALD " Siemens Nixdorf Reliant UNIX V5.43"
#else
#ifdef SNI541
#define HERALD " Siemens Nixdorf SINIX V5.41"
#else
#define HERALD " Siemens Nixdorf SINIX V5.42"
#endif /* SNI541 */
#endif /* SNI543 */
#endif /* SNI544 */
#endif /* SINIX */
#ifdef POWERMAX
#define HERALD " Concurrent PowerMAX OS"
#endif /* POWERMAX */
#ifdef DELL_SVR4
#define HERALD " Dell System V R4"
#endif /* DELL_SVR4 */
#ifdef NCRMPRAS
#define HERALD " NCR MP-RAS"
#endif /* NCRMPRAS */
#ifdef UNIXWARE
#define HERALD " UnixWare"
#else
#ifdef OLD_UNIXWARE
#define HERALD " UnixWare"
#endif /* OLD_UNIXWARE */
#endif /* UNIXWARE */
#ifdef ICL_SVR4
#define HERALD " ICL System V R4 DRS N/X"
#endif /* ICL_SVR4 */
#ifdef FT18
#ifdef FT21
#define HERALD " Fortune For:Pro 2.1"
#else
#define HERALD " Fortune For:Pro 1.8"
#endif /* FT21 */
#endif /* FT18 */
#ifdef GEMDOS
#define HERALD " Atari ST GEM 1.0"
#endif /* GEMDOS */
#ifdef XF68R3V6
#define HERALD " Motorola UNIX System V/68 R3V6"
#endif /* XF68R3V6 */
#ifdef XF88R32
#define HERALD " Motorola UNIX System V/88 R32"
#endif /* XF88R32 */
#ifdef I386IX
#ifdef SVR3JC
#define HERALD " Interactive UNIX System V/386 R3.2"
#else
#define HERALD " Interactive Systems Corp 386/ix"
#endif /* SVR3JC */
#endif /* I386IX */
#ifdef IRIX65
#define HERALD " Silicon Graphics IRIX 6.5"
#else
#ifdef IRIX64
#define HERALD " Silicon Graphics IRIX 6.4"
#else
#ifdef IRIX63
#define HERALD " Silicon Graphics IRIX 6.3"
#else
#ifdef IRIX62
#define HERALD " Silicon Graphics IRIX 6.2"
#else
#ifdef IRIX60
#define HERALD " Silicon Graphics IRIX 6.0"
#else
#ifdef IRIX53
#define HERALD " Silicon Graphics IRIX 5.3"
#else
#ifdef IRIX52
#define HERALD " Silicon Graphics IRIX 5.2"
#else
#ifdef IRIX51
#define HERALD " Silicon Graphics IRIX 5.1"
#else
#ifdef IRIX40
#define HERALD " Silicon Graphics IRIX 4.0"
#endif /* IRIX40 */
#endif /* IRIX51 */
#endif /* IRIX52 */
#endif /* IRIX53 */
#endif /* IRIX60 */
#endif /* IRIX62 */
#endif /* IRIX63 */
#endif /* IRIX64 */
#endif /* IRIX65 */
#ifdef ISIII
#define HERALD " Interactive Systems Corp System III"
#endif /* ISIII */
#ifdef IX370
#define HERALD " IBM IX/370"
#endif /* IX370 */
#ifdef HPUX
#ifdef HPUX5
#define HERALD " HP-UX 5.00"
#else
#ifdef HPUX6
#define HERALD " HP-UX 6.00"
#else
#ifdef HPUX7
#define HERALD " HP-UX 7.00"
#else
#ifdef HPUX8
#define HERALD " HP-UX 8.00"
#else
#ifdef HPUX9
#define HERALD " HP-UX 9.00"
#else
#ifdef HPUX1100
#define HERALD " HP-UX 11.00"
#else
#ifdef HPUX10
#ifdef HPUX1030
#define HERALD " HP-UX 10.30"
#else
#ifdef HPUX1020
#define HERALD " HP-UX 10.20"
#else
#ifdef HPUX1010
#define HERALD " HP-UX 10.10"
#else
#ifdef HPUX10xx
#define HERALD " HP-UX 10.xx"
#else
#define HERALD " HP-UX 10.00"
#endif /* HPUX10XX */
#endif /* HPUX1010 */
#endif /* HPUX1020 */
#endif /* HPUX1030 */
#else
#define HERALD " HP-UX"
#endif /* HPUX10 */
#endif /* HPUX1100 */
#endif /* HPUX9 */
#endif /* HPUX8 */
#endif /* HPUX7 */
#endif /* HPUX6 */
#endif /* HPUX5 */
#endif /* HPUX */
#ifndef MINIX
#ifdef MINIX315
#define MINIX
#endif /* MINIX315 */
#endif /* MINIX */
#ifndef MINIX
#ifdef MINIX3
#define MINIX
#endif /* MINIX3 */
#endif /* MINIX */
#ifdef MINIX
#ifdef MINIX315
#define HERALD " Minix 3.1.5"
#ifndef MINIX3
#define MINIX3
#endif /* MINIX3 */
#endif /* MINIX315 */
#ifdef MINIX3
#ifndef MINIX2
#define MINIX2
#endif /* MINIX2 */
#ifndef HERALD
#define HERALD " Minix 3.0"
#endif /* HERALD */
#else
#ifdef MINIX2
#define HERALD " Minix 2.0"
#else
#define HERALD " Minix 1.0"
#endif /* MINIX3 */
#endif /* MINIX2 */
#endif /* MINIX */
#ifdef MIPS
#define HERALD " MIPS RISC/OS SVR3"
#endif /* MIPS */
#ifdef NEXT
#ifdef OPENSTEP42
#define HERALD " OPENSTEP 4.2"
#else
#ifdef NEXT33
#define HERALD " NeXTSTEP 3.3"
#else
#define HERALD " NeXTSTEP"
#endif /* NEXT33 */
#endif /* OPENSTEP42 */
#endif /* NEXT */
#ifdef OSF
#ifdef i386
#define HERALD " DECpc OSF/1"
#ifdef __GNUC
#define OSFPC
#endif /* __GNUC */
#else /* Not i386 so Alpha */
#ifdef TRU64
#ifdef OSF51B
#define HERALD " Compaq Tru64 UNIX 5.1B"
#else
#ifdef OSF51A
#define HERALD " Compaq Tru64 UNIX 5.1A"
#else
#ifdef OSF50
#define HERALD " Compaq Tru64 UNIX 5.0A"
#else
#ifdef OSF40G
#define HERALD " Compaq Tru64 UNIX 4.0G"
#else
#ifdef OSF40F
#define HERALD " Compaq Tru64 UNIX 4.0F"
#else
#ifdef OSF40E
#define HERALD " Compaq Tru64 UNIX 4.0E"
#endif /* OSF40E */
#endif /* OSF40F */
#endif /* OSF40G */
#endif /* OSF50 */
#endif /* OSF51A */
#endif /* OSF51B */
#else /* Not TRU64 */
#ifdef OSF40
#define HERALD " Digital UNIX 4.0"
#else
#ifdef OSF32
#define HERALD " Digital UNIX 3.2"
#else
#define HERALD " DEC OSF/1 Alpha"
#endif /* OSF40 */
#endif /* OSF32 */
#endif /* TRU64 */
#endif /* i386 */
#endif /* OSF */
#ifdef PCIX
#define HERALD " PC/IX"
#endif /* PCIX */
#ifdef sxaE50
#define HERALD " PFU SX/A V10/L50"
#endif /* sxaE50 */
#ifdef PROVX1
#define HERALD " DEC Professional 300 (Venix 1.0)"
#endif /* PROVX1 */
#ifdef PYRAMID
#ifdef SVR4
#define HERALD " Pyramid DC/OSx"
#else
#define HERALD " Pyramid Dual Port OSx"
#endif /* SVR4 */
#endif /* PYRAMID */
#ifdef RTAIX
#define HERALD " IBM RT PC (AIX 2.2)"
#endif /* RTAIX */
#ifdef RTU
#define HERALD " Masscomp/Concurrent RTU"
#endif /* RTU */
#ifdef sony_news
#define HERALD " SONY NEWS"
#endif /* sony_news */
#ifdef SOLARIS24
#define HERALD " Solaris 2.4"
#else
#ifdef SOLARIS23
#define HERALD " Solaris 2.3"
#else
#ifdef SOLARIS
#define HERALD " Solaris 2.x"
#endif /* SOLARIS */
#endif /* SOLARIS23 */
#endif /* SOLARIS24 */
#ifdef SUNOS4
#ifdef BSD4
#ifdef SUNOS41
#define HERALD " SunOS 4.1"
#else
#define HERALD " SunOS 4.0"
#endif /* SUNOS41 */
#endif /* BSD4 */
#endif /* SUNOS4 */
#ifdef SUN4S5
#ifdef HDBUUCP
#define HERALD " SunOS 4.1 (SVR3)"
#else
#define HERALD " SunOS 4.0 (SVR3)"
#endif /* HDBUUCP */
#endif /* SUN4S5 */
#ifdef STRATUS
#define HERALD " Stratus VOS"
#endif /* STRATUS */
#ifdef TOWER1
#define HERALD " NCR Tower 1632 OS 1.02"
#endif /* TOWER1 */
#ifdef TRS16
#define HERALD " Tandy 16/6000 Xenix 3.0"
#ifndef CKCPU
#define CKCPU "mc68000"
#endif /* CKCPU */
#endif /* TRS16 */
#ifdef u3b2
#ifndef HERALD
#ifdef SVR3
#define HERALD " AT&T 3B2 System V R3"
#else
#define HERALD " AT&T 3B2 System V"
#endif /* SVR3 */
#endif /* HERALD */
#endif /* u3b2 */
#ifdef ultrix
#ifdef vax
#ifdef ULTRIX3
#define HERALD " VAX/ULTRIX 3.0"
#else
#define HERALD " VAX/ULTRIX"
#endif /* ULTRIX3 */
#else
#ifdef mips
#ifdef ULTRIX43
#define HERALD " DECstation/ULTRIX 4.3"
#else
#ifdef ULTRIX44
#define HERALD " DECstation/ULTRIX 4.4"
#else
#ifdef ULTRIX45
#define HERALD " DECstation/ULTRIX 4.5"
#else
#define HERALD " DECstation/ULTRIX"
#endif /* ULTRIX45 */
#endif /* ULTRIX44 */
#endif /* ULTRIX43 */
#else
#define HERALD " ULTRIX"
#endif /* mips */
#endif /* vax */
#endif /* ultrix */
#ifdef OXOS
#define HERALD " Olivetti X/OS"
#endif /* OXOS */
#ifdef _386BSD
#define HERALD " 386BSD"
#endif /* _386BSD */
#ifdef POSIX
#ifdef PTX
#ifdef PTX4
#define HERALD " DYNIX/ptx V4"
#else
#define HERALD " DYNIX/ptx"
#endif /* PTX4 */
#else /* PTX */
#ifndef OSF /* Let OSF -DPOSIX keep previously defined HERALD */
#ifdef HERALD
#undef HERALD
#endif /* HERALD */
#endif /* OSF */
#ifdef OU8
#define HERALD " OpenUNIX 8"
#else
#ifdef UW7
#define HERALD " Unixware 7"
#else
#ifdef QNX
#ifdef QNX16
#define HERALD " QNX 16-bit"
#else
#define HERALD " QNX 32-bit"
#endif /* QNX16 */
#else
#ifdef NEUTRINO
#define HERALD " QNX Neutrino 2"
#else /* NEUTRINO */
#ifdef QNX6
#define HERALD " QNX6"
#else /* QNX6 */
#ifdef __linux__
#ifdef ZSL5500
#define HERALD " Sharp Zaurus SL-5500"
#else
#ifdef RH90
#define HERALD " Red Hat Linux 9.0"
#else
#ifdef RH80
#define HERALD " Red Hat Linux 8.0"
#else
#ifdef RH73
#define HERALD " Red Hat Linux 7.3"
#else
#ifdef RH72
#define HERALD " Red Hat Linux 7.2"
#else
#ifdef RH71
#define HERALD " Red Hat Linux 7.1"
#else
#ifdef ANDROID
#define HERALD " Android"
#else
#define HERALD " Linux"
#endif /* ANDROID */
#endif /* RH71 */
#endif /* RH72 */
#endif /* RH73 */
#endif /* RH80 */
#endif /* RH90 */
#endif /* ZSL5500 */
#else /* __linux__ */
#ifdef _386BSD /* 386BSD Jolix */
#define HERALD " 386BSD"
#else
#ifdef LYNXOS /* Lynx OS 2.2 */
#define HERALD " Lynx OS"
#else
#ifdef Plan9
#define HERALD " Plan 9 from Bell Labs"
#else
#ifdef SOLARIS11
#define HERALD " Solaris 11"
#else
#ifdef SOLARIS10
#define HERALD " Solaris 10"
#else
#ifdef SOLARIS9
#define HERALD " Solaris 9"
#else
#ifdef SOLARIS8
#define HERALD " Solaris 8"
#else
#ifdef SOLARIS7
#define HERALD " Solaris 7"
#else
#ifdef SOLARIS26
#define HERALD " Solaris 2.6"
#else
#ifdef SOLARIS25
#define HERALD " Solaris 2.5"
#else
#ifdef SOLARIS24
#define HERALD " Solaris 2.4"
#else
#ifdef SOLARIS
#define HERALD " Solaris 2.x"
#endif /* SOLARIS */
#endif /* SOLARIS24 */
#endif /* SOLARIS25 */
#endif /* SOLARIS26 */
#endif /* SOLARIS7 */
#endif /* SOLARIS8 */
#endif /* SOLARIS9 */
#endif /* SOLARIS10 */
#endif /* SOLARIS11 */
#endif /* Plan9 */
#endif /* LYNXOS */
#endif /* _386BSD */
#endif /* __linux__ */
#endif /* QNX6 */
#endif /* NEUTRINO */
#endif /* QNX */
#endif /* UW7 */
#endif /* OU8 */
#endif /* PTX */
#endif /* POSIX */
#ifdef UTS24
#define HERALD " Amdahl UTS 2.4"
#endif /* UTS24 */
#ifdef UTSV
#define HERALD " Amdahl UTS V"
#endif /* UTSV */
#ifdef VXVE
#define HERALD " CDC VX/VE 5.2.1 System V"
#endif /* VXVE */
#ifdef SCO234
#ifdef HERALD
#undef HERALD
#endif /* HERALD */
#define HERALD " SCO XENIX 2.3.4"
#else
#ifdef CK_SCO32V4
#ifdef HERALD
#undef HERALD
#endif /* HERALD */
#ifdef ODT30
#define HERALD " SCO ODT 3.0"
#else
#define HERALD " SCO UNIX/386 V4"
#endif /* ODT30 */
#else
#ifdef CK_SCOV5
#ifdef HERALD
#undef HERALD
#endif /* HERALD */
#ifdef SCO_OSR507
#define HERALD " SCO OpenServer R5.0.7"
#else
#ifdef SCO_OSR506A
#define HERALD " SCO OpenServer R5.0.6a"
#else
#ifdef SCO_OSR506
#define HERALD " SCO OpenServer R5.0.6"
#else
#ifdef SCO_OSR505
#define HERALD " SCO OpenServer R5.0.5"
#else
#ifdef SCO_OSR504
#define HERALD " SCO OpenServer R5.0.4"
#else
#ifdef SCO_OSR502
#define HERALD " SCO OpenServer R5.0.2"
#else
#define HERALD " SCO OpenServer R5.0"
#endif /* SCO_OSR502 */
#endif /* SCO_OSR504 */
#endif /* SCO_OSR505 */
#endif /* SCO_OSR506 */
#endif /* SCO_OSR506A */
#endif /* SCO_OSR507 */
#else
#ifdef XENIX
#ifdef HERALD
#undef HERALD
#endif /* HERALD */
#ifdef M_UNIX
#define HERALD " SCO UNIX/386"
#else
#ifdef M_I386
#define HERALD " Xenix/386"
#else
#ifdef M_I286
#define HERALD " Xenix/286"
#else
#define HERALD " Xenix"
#endif /* M_I286 */
#endif /* M_I386 */
#endif /* M_UNIX */
#endif /* XENIX */
#endif /* CK_SCOV5 */
#endif /* CK_SCOV32V4 */
#endif /* SCO234 */
#ifdef ZILOG
#define HERALD " Zilog S8000 Zeus 3.21+"
#endif /* ZILOG */
#ifdef UTEK
#define HERALD " UTek"
#endif /* UTEK */
/* Catch-alls for anything not defined explicitly above */
#ifndef HERALD
#ifdef SVR4
#ifdef i386
#define HERALD " AT&T System V/386 R4"
#else
#ifdef AMIX
#define HERALD " Commodore Amiga System V/m68k R4"
#else
#define HERALD " AT&T System V R4"
#endif /* AMIX */
#endif /* i386 */
#else
#ifdef SVR3
#define HERALD " AT&T System V R3"
#else
#ifdef ATTSV
#define HERALD " AT&T System III / System V"
#else
#ifdef BSD43
#ifdef pdp11
#define HERALD " 2.10 BSD PDP-11"
#else
#ifdef vax
#define HERALD " 4.3 BSD VAX"
#else
#define HERALD " 4.3 BSD"
#endif /* vax */
#endif /* pdp11 */
#else
#ifdef BSD4
#ifdef vax
#define HERALD " 4.2 BSD VAX"
#else
#define HERALD " 4.2 BSD"
#endif /* vax */
#else
#ifdef V7
#define HERALD " UNIX Version 7"
#endif /* V7 */
#endif /* BSD4 */
#endif /* BSD43 */
#endif /* ATTSV */
#endif /* SVR3 */
#endif /* SVR4 */
#endif /* HERALD */
#endif /* HERALD */
#ifdef OS2
#ifdef HERALD
#undef HERALD
#endif /* HERALD */
#ifdef NT
#define HERALD " 32-bit Windows"
#else /* NT */
#define HERALD " 32-bit OS/2"
#endif /* NT */
#endif /* OS/2 */
#ifndef HERALD
#define HERALD " Unknown Version"
#endif /* HERALD */