home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / tmp4 / ckuver.h < prev    next >
C/C++ Source or Header  |  2009-10-16  |  25KB  |  1,236 lines

  1. /* ckuver.h -- C-Kermit UNIX Version heralds */
  2. /*
  3.   Author: Frank da Cruz <fdc@columbia.edu>,
  4.   Columbia University Academic Information Systems, New York City.
  5.  
  6.   Copyright (C) 1985, 2009,
  7.     Trustees of Columbia University in the City of New York.
  8.     All rights reserved.  See the C-Kermit COPYING.TXT file or the
  9.     copyright text in the ckcmai.c module for disclaimer and permissions.
  10. */
  11.  
  12. #ifndef CKUVER_H
  13. #define CKUVER_H
  14.  
  15. /* Arranged more or less alphabetically by compiler symbol */
  16. /* Must be included AFTER ckcdeb.h. */
  17.  
  18. #ifdef BEOS
  19. #ifdef BEOS45
  20. #define HERALD " BeOS 4.5"
  21. #else
  22. #define HERALD " BeOS"
  23. #endif /* BEOS45 */
  24. #else
  25. #ifdef BEBOX
  26. #ifdef BE_DR_7
  27. #define HERALD " BeBox DR7"
  28. #else
  29. #define HERALD " BeBox"
  30. #endif /* BE_DR_7 */
  31. #endif /* BEBOX */
  32. #endif /* BEOS */
  33.  
  34. #ifdef BELLV10
  35. #define HERALD " Bell Labs Research UNIX V10"
  36. #endif /* BELLV10 */
  37.  
  38. #ifdef APOLLOSR10
  39. #define HERALD " Apollo SR10"
  40. #endif /* APOLLOSR10 */
  41.  
  42. #ifdef MAC
  43. #define HERALD " Apple Macintosh"
  44. #endif /* MAC */
  45.  
  46. #ifdef A986
  47. #define HERALD " Altos 986 / Xenix 3.0"
  48. #endif /* A986 */
  49.  
  50. #ifdef AS400
  51. #define HERALD " AS/400"
  52. #endif /* AS400 */
  53.  
  54. #ifdef aegis
  55. #ifdef BSD4
  56. #define HERALD " Apollo DOMAIN/IX 4.2 BSD"
  57. #else
  58. #ifdef ATTSV
  59. #define HERALD " Apollo DOMAIN/IX System V"
  60. #else
  61. #define HERALD " Apollo Aegis"
  62. #endif /* BSD4  */
  63. #endif /* ATTSV */
  64. #endif /* aegis */
  65.  
  66. #ifndef HERALD
  67.  
  68. #ifdef AIXRS
  69.  
  70. #ifdef AIX53
  71. #define HERALD " IBM AIX 5.3"
  72. #else
  73. #ifdef AIX52
  74. #define HERALD " IBM AIX 5.2"
  75. #else
  76. #ifdef AIX51
  77. #define HERALD " IBM AIX 5.1"
  78. #else
  79. #ifdef AIX45
  80. #define HERALD " IBM AIX 5.0"
  81. #else
  82. #ifdef AIX45
  83. #define HERALD " IBM AIX 4.5"
  84. #else
  85. #ifdef AIX44
  86. #define HERALD " IBM AIX 4.4"
  87. #else
  88. #ifdef AIX43
  89. #define HERALD " IBM AIX 4.3"
  90. #else
  91. #ifdef AIX42
  92. #define HERALD " IBM AIX 4.2"
  93. #else
  94. #ifdef SVR4
  95. #ifdef AIX41
  96. #define HERALD " IBM AIX 4.1"
  97. #else
  98. #define HERALD " IBM RS/6000 AIX 3.2"
  99. #endif /* AIX41 */
  100. #else
  101. #define HERALD " IBM RS/6000 AIX 3.0/3.1"
  102. #endif /* SVR4 */
  103. #endif /* AIX42 */
  104. #endif /* AIX43 */
  105. #endif /* AIX44 */
  106. #endif /* AIX45 */
  107. #endif /* AIX50 */
  108. #endif /* AIX51 */
  109. #endif /* AIX52 */
  110. #endif /* AIX53 */
  111. #endif /* AIXRS */
  112.  
  113. #ifdef PS2AIX10
  114. #define HERALD " IBM PS/2 AIX 1.x"
  115. #endif /* PS2AIX10 */
  116.  
  117. #ifdef AIXPS2
  118. #define HERALD " IBM PS/2 AIX 3.x"
  119. #endif /* AIXPS2 */
  120.  
  121. #ifdef AIX370
  122. #ifndef HERALD
  123. #define HERALD " IBM System/370 AIX/370"
  124. #endif
  125. #endif /* AIX370 */
  126.  
  127. #ifdef AIXESA
  128. #ifndef HERALD
  129. #define HERALD " IBM AIX/ESA version 2.1"
  130. #endif
  131. #endif /* AIXESA */
  132.  
  133. #ifdef ATT6300
  134. #define HERALD " AT&T 6300"
  135. #endif /* ATT6300 */
  136.  
  137. #ifdef ATT7300
  138. #ifdef UNIX351M
  139. #define HERALD " AT&T 7300 UNIX PC UNIX 3.51m"
  140. #else
  141. #define HERALD " AT&T 7300 UNIX PC"
  142. #endif /* UNIX351M */
  143. #endif /* ATT7300 */
  144.  
  145. #ifdef AUX
  146. #define HERALD " Apple Macintosh AUX"
  147. #endif /* AUX */
  148.  
  149. #ifdef BSD44
  150. #ifdef MACOSX
  151. #define HERALD " Mac OS X"
  152. #else
  153. #ifdef __OpenBSD__
  154. #define HERALD " OpenBSD"
  155. #else
  156. #ifdef __bsdi__
  157. #ifdef BSDI4
  158. #define HERALD " BSDI BSD/OS 4.0"
  159. #else
  160. #ifdef BSDI3
  161. #define HERALD " BSDI BSD/OS 3.0"
  162. #else
  163. #ifdef BSDI2
  164. #define HERALD " BSDI BSD/OS 2.0"    /* 1.1++ name... */
  165. #else
  166. #define HERALD " BSDI BSD/386"        /* Original 1.0 name */
  167. #endif /* BSDI2 */
  168. #endif /* BSDI3 */
  169. #endif /* BSDI4 */
  170. #else  /* __bsdi__ */
  171. #ifdef __NetBSD__
  172. #ifndef HERALD
  173. #ifdef NETBSD16
  174. #define HERALD " NetBSD 1.6"
  175. #else
  176. #ifdef NETBSD15
  177. #define HERALD " NetBSD 1.5"
  178. #else
  179. #define HERALD " NetBSD"
  180. #endif /* NETBSD15 */
  181. #endif /* NETBSD16 */
  182. #endif /* HERALD */
  183. #else  /* __NetBSD__ */
  184. #ifdef __FreeBSD__
  185. #ifdef FREEBSD51
  186. #define HERALD " FreeBSD 5.1"
  187. #else
  188. #ifdef FREEBSD50
  189. #define HERALD " FreeBSD 5.0"
  190. #else
  191. #ifdef FREEBSD49
  192. #define HERALD " FreeBSD 4.9"
  193. #else
  194. #ifdef FREEBSD48
  195. #define HERALD " FreeBSD 4.8"
  196. #else
  197. #ifdef FREEBSD47
  198. #define HERALD " FreeBSD 4.7"
  199. #else
  200. #ifdef FREEBSD46
  201. #define HERALD " FreeBSD 4.6"
  202. #else
  203. #ifdef FREEBSD45
  204. #define HERALD " FreeBSD 4.5"
  205. #else
  206. #ifdef FREEBSD44
  207. #define HERALD " FreeBSD 4.4"
  208. #else
  209. #ifdef FREEBSD43
  210. #define HERALD " FreeBSD 4.3"
  211. #else
  212. #ifdef FREEBSD42
  213. #define HERALD " FreeBSD 4.2"
  214. #else
  215. #ifdef FREEBSD41
  216. #define HERALD " FreeBSD 4.1"
  217. #else
  218. #ifdef FREEBSD4
  219. #define HERALD " FreeBSD 4.0"
  220. #else
  221. #ifdef FREEBSD3
  222. #define HERALD " FreeBSD 3.0"
  223. #else
  224. #ifdef FREEBSD2
  225. #define HERALD " FreeBSD 2.0"
  226. #else
  227. #define HERALD " FreeBSD"
  228. #endif /* FREEBSD2 */
  229. #endif /* FREEBSD3 */
  230. #endif /* FREEBSD4 */
  231. #endif /* FREEBSD41 */
  232. #endif /* FREEBSD42 */
  233. #endif /* FREEBSD43 */
  234. #endif /* FREEBSD44 */
  235. #endif /* FREEBSD45 */
  236. #endif /* FREEBSD46 */
  237. #endif /* FREEBSD47 */
  238. #endif /* FREEBSD48 */
  239. #endif /* FREEBSD49 */
  240. #endif /* FREEBSD50 */
  241. #endif /* FREEBSD51 */
  242. #else
  243. #ifdef __386BSD__
  244. #define HERALD " 386BSD"
  245. #else
  246. #define HERALD " 4.4BSD"
  247. #endif /* __386BSD__ */
  248. #endif /* __FreeBSD__ */
  249. #endif /* __NetBSD__ */
  250. #endif /* __bsdi__ */
  251. #endif /* __OpenBSD__ */
  252. #endif /* MACOSX */
  253. #endif /* BSD44 */
  254.  
  255. #ifdef ENCORE
  256. #ifdef BSD43
  257. #define HERALD " Encore Multimax UMAX 4.3"
  258. #else
  259. #define HERALD " Encore Multimax UMAX 4.2"
  260. #endif
  261. #endif /* ENCORE */
  262.  
  263. #ifdef BSD29
  264. #define HERALD " 2.9 BSD"
  265. #endif /* BSD29 */
  266.  
  267. #ifdef BSD41
  268. #define HERALD " 4.1 BSD"
  269. #endif /* BSD41 */
  270.  
  271. #ifdef C70
  272. #define HERALD " BBN C/70"
  273. #endif /* c70 */
  274.  
  275. #ifdef CIE
  276. #define HERALD " CIE Systems 680/20 Regulus"
  277. #endif /* CIE */
  278.  
  279. #ifdef COHERENT
  280. #ifdef _I386
  281. #define HERALD " MWC Coherent 386 4.x"
  282. #ifndef i386
  283. #define i386
  284. #endif /* i386 */
  285. #else
  286. #define HERALD " PC/AT MWC Coherent 286 3.x"
  287. #ifndef i286
  288. #define i286
  289. #endif /* i286 */
  290. #endif /* _I386 */
  291. #endif /* COHERENT */
  292.  
  293. #ifdef CONVEX9
  294. #define HERALD " Convex/OS"
  295. #endif /* CONVEX9 */
  296.  
  297. #ifdef CONVEX10
  298. #define HERALD " Convex/OS 10.1"
  299. #endif /* CONVEX10 */
  300.  
  301. #ifdef _CRAY
  302. #ifdef _CRAYCOM
  303. #define HERALD " Cray CSOS"
  304. #else /* _CRAYCOM */
  305. #define HERALD " Cray UNICOS"
  306. #endif /* _CRAYCOM */
  307. #endif /* _CRAY */
  308.  
  309. #ifdef DGUX
  310. #ifdef DGUX54420
  311. #define HERALD " Data General DG/UX R4.20"
  312. #else
  313. #ifdef DGUX54411
  314. #define HERALD " Data General DG/UX R4.11"
  315. #else
  316. #ifdef DGUX54410
  317. #define HERALD " Data General DG/UX R4.10"
  318. #else
  319. #ifdef DGUX54310
  320. #define HERALD " Data General DG/UX 5.4R3.10"
  321. #else
  322. #ifdef DGUX543
  323. #define HERALD " Data General DG/UX 5.4R3.00"
  324. #else
  325. #ifdef DGUX540
  326. #define HERALD " Data General DG/UX 5.4"
  327. #else
  328. #ifdef DGUX430
  329. #define HERALD " Data General DG/UX 4.30"
  330. #else
  331. #define HERALD " Data General DG/UX"
  332. #endif /* DGUX430 */
  333. #endif /* DGUX540 */
  334. #endif /* DGUX543 */
  335. #endif /* DGUX54310 */
  336. #endif /* DGUX54410 */
  337. #endif /* DGUX54411 */
  338. #endif /* DGUX54420 */
  339. #endif /* DGUX */
  340.  
  341. #ifdef datageneral
  342. #ifndef HERALD
  343. #define HERALD " Data General AOS/VS"
  344. #endif /* HERALD */
  345. #endif /* datageneral */
  346.  
  347. #ifdef SINIX
  348. #ifdef SNI544
  349. #define HERALD " Siemens Nixdorf Reliant UNIX V5.44"
  350. #else
  351. #ifdef SNI543
  352. #define HERALD " Siemens Nixdorf Reliant UNIX V5.43"
  353. #else
  354. #ifdef SNI541
  355. #define HERALD " Siemens Nixdorf SINIX V5.41"
  356. #else
  357. #define HERALD " Siemens Nixdorf SINIX V5.42"
  358. #endif /* SNI541 */
  359. #endif /* SNI543 */
  360. #endif /* SNI544 */
  361. #endif /* SINIX */
  362.  
  363. #ifdef POWERMAX
  364. #define HERALD " Concurrent PowerMAX OS"
  365. #endif /* POWERMAX */
  366.  
  367. #ifdef DELL_SVR4
  368. #define HERALD " Dell System V R4"
  369. #endif /* DELL_SVR4 */
  370.  
  371. #ifdef NCRMPRAS
  372. #define HERALD " NCR MP-RAS"
  373. #endif /* NCRMPRAS */
  374.  
  375. #ifdef UNIXWARE
  376. #define HERALD " UnixWare"
  377. #else
  378. #ifdef OLD_UNIXWARE
  379. #define HERALD " UnixWare"
  380. #endif /* OLD_UNIXWARE */
  381. #endif /* UNIXWARE */
  382.  
  383. #ifdef ICL_SVR4
  384. #define HERALD " ICL System V R4 DRS N/X"
  385. #endif /* ICL_SVR4 */
  386.  
  387. #ifdef FT18
  388. #ifdef FT21
  389. #define HERALD " Fortune For:Pro 2.1"
  390. #else
  391. #define HERALD " Fortune For:Pro 1.8"
  392. #endif /* FT21 */
  393. #endif /* FT18 */
  394.  
  395. #ifdef GEMDOS
  396. #define HERALD " Atari ST GEM 1.0"
  397. #endif /* GEMDOS */
  398.  
  399. #ifdef XF68R3V6
  400. #define HERALD " Motorola UNIX System V/68 R3V6"
  401. #endif /* XF68R3V6 */
  402.  
  403. #ifdef XF88R32
  404. #define HERALD " Motorola UNIX System V/88 R32"
  405. #endif /* XF88R32 */
  406.  
  407. #ifdef I386IX
  408. #ifdef SVR3JC
  409. #define HERALD " Interactive UNIX System V/386 R3.2"
  410. #else
  411. #define HERALD " Interactive Systems Corp 386/ix"
  412. #endif /* SVR3JC */
  413. #endif /* I386IX */
  414.  
  415. #ifdef IRIX65
  416. #define HERALD " Silicon Graphics IRIX 6.5"
  417. #else
  418. #ifdef IRIX64
  419. #define HERALD " Silicon Graphics IRIX 6.4"
  420. #else
  421. #ifdef IRIX63
  422. #define HERALD " Silicon Graphics IRIX 6.3"
  423. #else
  424. #ifdef IRIX62
  425. #define HERALD " Silicon Graphics IRIX 6.2"
  426. #else
  427. #ifdef IRIX60
  428. #define HERALD " Silicon Graphics IRIX 6.0"
  429. #else
  430. #ifdef IRIX53
  431. #define HERALD " Silicon Graphics IRIX 5.3"
  432. #else
  433. #ifdef IRIX52
  434. #define HERALD " Silicon Graphics IRIX 5.2"
  435. #else
  436. #ifdef IRIX51
  437. #define HERALD " Silicon Graphics IRIX 5.1"
  438. #else
  439. #ifdef IRIX40
  440. #define HERALD " Silicon Graphics IRIX 4.0"
  441. #endif /* IRIX40 */
  442. #endif /* IRIX51 */
  443. #endif /* IRIX52 */
  444. #endif /* IRIX53 */
  445. #endif /* IRIX60 */
  446. #endif /* IRIX62 */
  447. #endif /* IRIX63 */
  448. #endif /* IRIX64 */
  449. #endif /* IRIX65 */
  450.  
  451. #ifdef ISIII
  452. #define HERALD " Interactive Systems Corp System III"
  453. #endif /* ISIII */
  454.  
  455. #ifdef IX370
  456. #define HERALD " IBM IX/370"
  457. #endif /* IX370 */
  458.  
  459. #ifdef HPUX
  460. #ifdef HPUX5
  461. #define HERALD " HP-UX 5.00"
  462. #else
  463. #ifdef HPUX6
  464. #define HERALD " HP-UX 6.00"
  465. #else
  466. #ifdef HPUX7
  467. #define HERALD " HP-UX 7.00"
  468. #else
  469. #ifdef HPUX8
  470. #define HERALD " HP-UX 8.00"
  471. #else
  472. #ifdef HPUX9
  473. #define HERALD " HP-UX 9.00"
  474. #else
  475. #ifdef HPUX1100
  476. #define HERALD " HP-UX 11.00"
  477. #else
  478. #ifdef HPUX10
  479. #ifdef HPUX1030
  480. #define HERALD " HP-UX 10.30"
  481. #else
  482. #ifdef HPUX1020
  483. #define HERALD " HP-UX 10.20"
  484. #else
  485. #ifdef HPUX1010
  486. #define HERALD " HP-UX 10.10"
  487. #else
  488. #ifdef HPUX10xx
  489. #define HERALD " HP-UX 10.xx"
  490. #else
  491. #define HERALD " HP-UX 10.00"
  492. #endif /* HPUX10XX */
  493. #endif /* HPUX1010 */
  494. #endif /* HPUX1020 */
  495. #endif /* HPUX1030 */
  496. #else
  497. #define HERALD " HP-UX"
  498. #endif /* HPUX10 */
  499. #endif /* HPUX1100 */
  500. #endif /* HPUX9  */
  501. #endif /* HPUX8  */
  502. #endif /* HPUX7  */
  503. #endif /* HPUX6  */
  504. #endif /* HPUX5  */
  505. #endif /* HPUX   */
  506.  
  507. #ifdef MINIX
  508. #ifdef MINIX3
  509. #define HERALD " Minix 3.0"
  510. #else
  511. #ifdef MINIX2
  512. #define HERALD " Minix 2.0"
  513. #else
  514. #define HERALD " Minix 1.x"
  515. #endif /* MINIX3 */
  516. #endif /* MINIX2 */
  517. #endif /* MINIX */
  518.  
  519. #ifdef MIPS
  520. #define HERALD " MIPS RISC/OS SVR3"
  521. #endif /* MIPS */
  522.  
  523. #ifdef NEXT
  524. #ifdef OPENSTEP42
  525. #define HERALD " OPENSTEP 4.2"
  526. #else
  527. #ifdef NEXT33
  528. #define HERALD " NeXTSTEP 3.3"
  529. #else
  530. #define HERALD " NeXTSTEP"
  531. #endif /* NEXT33 */
  532. #endif /* OPENSTEP42 */
  533. #endif /* NEXT */
  534.  
  535. #ifdef OSF
  536. #ifdef i386
  537. #define HERALD " DECpc OSF/1"
  538. #ifdef __GNUC
  539. #define OSFPC
  540. #endif /* __GNUC */
  541. #else  /* Not i386 so Alpha */
  542.  
  543. #ifdef TRU64
  544.  
  545. #ifdef OSF51B
  546. #define HERALD " Compaq Tru64 UNIX 5.1B"
  547. #else
  548. #ifdef OSF51A
  549. #define HERALD " Compaq Tru64 UNIX 5.1A"
  550. #else
  551. #ifdef OSF50
  552. #define HERALD " Compaq Tru64 UNIX 5.0A"
  553. #else
  554. #ifdef OSF40G
  555. #define HERALD " Compaq Tru64 UNIX 4.0G"
  556. #else
  557. #ifdef OSF40F
  558. #define HERALD " Compaq Tru64 UNIX 4.0F"
  559. #else
  560. #ifdef OSF40E
  561. #define HERALD " Compaq Tru64 UNIX 4.0E"
  562. #endif /* OSF40E */
  563. #endif /* OSF40F */
  564. #endif /* OSF40G */
  565. #endif /* OSF50 */
  566. #endif /* OSF51A */
  567. #endif /* OSF51B */
  568.  
  569. #else  /* Not TRU64 */
  570.  
  571. #ifdef OSF40
  572. #define HERALD " Digital UNIX 4.0"
  573. #else
  574. #ifdef OSF32
  575. #define HERALD " Digital UNIX 3.2"
  576. #else
  577. #define HERALD " DEC OSF/1 Alpha"
  578. #endif /* OSF40 */
  579. #endif /* OSF32 */
  580.  
  581. #endif /* TRU64 */
  582. #endif /* i386 */
  583. #endif /* OSF */
  584.  
  585. #ifdef PCIX
  586. #define HERALD " PC/IX"
  587. #endif /* PCIX */
  588.  
  589. #ifdef sxaE50
  590. #define HERALD " PFU SX/A V10/L50"
  591. #endif /* sxaE50 */
  592.  
  593. #ifdef PROVX1
  594. #define HERALD " DEC Professional 300 (Venix 1.0)"
  595. #endif /* PROVX1 */
  596.  
  597. #ifdef PYRAMID
  598. #ifdef SVR4
  599. #define HERALD " Pyramid DC/OSx"
  600. #else
  601. #define HERALD " Pyramid Dual Port OSx"
  602. #endif /* SVR4 */
  603. #endif /* PYRAMID */
  604.  
  605. #ifdef RTAIX
  606. #define HERALD " IBM RT PC (AIX 2.2)"
  607. #endif /* RTAIX */
  608.  
  609. #ifdef RTU
  610. #define HERALD " Masscomp/Concurrent RTU"
  611. #endif /* RTU */
  612.  
  613. #ifdef sony_news
  614. #define HERALD " SONY NEWS"
  615. #endif /* sony_news */
  616.  
  617. #ifdef SOLARIS24
  618. #define HERALD " Solaris 2.4"
  619. #else
  620. #ifdef SOLARIS23
  621. #define HERALD " Solaris 2.3"
  622. #else
  623. #ifdef SOLARIS
  624. #define HERALD " Solaris 2.x"
  625. #endif /* SOLARIS */
  626. #endif /* SOLARIS23 */
  627. #endif /* SOLARIS24 */
  628.  
  629. #ifdef SUNOS4
  630. #ifdef BSD4
  631. #ifdef SUNOS41
  632. #define HERALD " SunOS 4.1"
  633. #else
  634. #define HERALD " SunOS 4.0"
  635. #endif /* SUNOS41 */
  636. #endif /* BSD4 */
  637. #endif /* SUNOS4 */
  638.  
  639. #ifdef SUN4S5
  640. #ifdef HDBUUCP
  641. #define HERALD " SunOS 4.1 (SVR3)"
  642. #else
  643. #define HERALD " SunOS 4.0 (SVR3)"
  644. #endif /* HDBUUCP */
  645. #endif /* SUN4S5 */
  646.  
  647. #ifdef STRATUS
  648. #define HERALD " Stratus VOS"
  649. #endif /* STRATUS */
  650.  
  651. #ifdef TOWER1
  652. #define HERALD " NCR Tower 1632 OS 1.02"
  653. #endif /* TOWER1 */
  654.  
  655. #ifdef TRS16
  656. #define HERALD " Tandy 16/6000 Xenix 3.0"
  657. #ifndef CKCPU
  658. #define CKCPU "mc68000"
  659. #endif /* CKCPU */
  660. #endif /* TRS16 */
  661.  
  662. #ifdef u3b2
  663. #ifndef HERALD
  664. #ifdef SVR3
  665. #define HERALD " AT&T 3B2 System V R3"
  666. #else
  667. #define HERALD " AT&T 3B2 System V"
  668. #endif /* SVR3 */
  669. #endif /* HERALD */
  670. #endif /* u3b2 */
  671.  
  672. #ifdef ultrix
  673. #ifdef vax
  674. #ifdef ULTRIX3
  675. #define HERALD " VAX/ULTRIX 3.0"
  676. #else
  677. #define HERALD " VAX/ULTRIX"
  678. #endif /* ULTRIX3 */
  679. #else
  680. #ifdef mips
  681. #ifdef ULTRIX43
  682. #define HERALD " DECstation/ULTRIX 4.3"
  683. #else
  684. #ifdef ULTRIX44
  685. #define HERALD " DECstation/ULTRIX 4.4"
  686. #else
  687. #ifdef ULTRIX45
  688. #define HERALD " DECstation/ULTRIX 4.5"
  689. #else
  690. #define HERALD " DECstation/ULTRIX"
  691. #endif /* ULTRIX45 */
  692. #endif /* ULTRIX44 */
  693. #endif /* ULTRIX43 */
  694. #else
  695. #define HERALD " ULTRIX"
  696. #endif /* mips */
  697. #endif /* vax */
  698. #endif /* ultrix */
  699.  
  700. #ifdef OXOS
  701. #define HERALD " Olivetti X/OS"
  702. #endif /* OXOS */
  703.  
  704. #ifdef _386BSD
  705. #define HERALD " 386BSD"
  706. #endif /* _386BSD */
  707.  
  708. #ifdef POSIX
  709. #ifdef PTX
  710. #ifdef PTX4
  711. #define HERALD " DYNIX/ptx V4"
  712. #else
  713. #define HERALD " DYNIX/ptx"
  714. #endif /* PTX4 */
  715. #else  /* PTX */
  716. #ifndef OSF        /* Let OSF -DPOSIX keep previously defined HERALD */
  717. #ifdef HERALD
  718. #undef HERALD
  719. #endif /* HERALD */
  720. #endif /* OSF */
  721. #ifdef OU8
  722. #define HERALD " OpenUNIX 8"
  723. #else
  724. #ifdef UW7
  725. #define HERALD " Unixware 7"
  726. #else
  727. #ifdef QNX
  728. #ifdef QNX16
  729. #define HERALD " QNX 16-bit"
  730. #else
  731. #define HERALD " QNX 32-bit"
  732. #endif /* QNX16 */
  733. #else
  734. #ifdef NEUTRINO
  735. #define HERALD " QNX Neutrino 2"
  736. #else  /* NEUTRINO */
  737. #ifdef QNX6
  738. #define HERALD " QNX6"
  739. #else  /* QNX6 */
  740. #ifdef __linux__
  741. #ifdef ZSL5500
  742. #define HERALD " Sharp Zaurus SL-5500"
  743. #else
  744. #ifdef RH90
  745. #define HERALD " Red Hat Linux 9.0"
  746. #else
  747. #ifdef RH80
  748. #define HERALD " Red Hat Linux 8.0"
  749. #else
  750. #ifdef RH73
  751. #define HERALD " Red Hat Linux 7.3"
  752. #else
  753. #ifdef RH72
  754. #define HERALD " Red Hat Linux 7.2"
  755. #else
  756. #ifdef RH71
  757. #define HERALD " Red Hat Linux 7.1"
  758. #else
  759. #define HERALD " Linux"
  760. #endif /* RH71 */
  761. #endif /* RH72 */
  762. #endif /* RH73 */
  763. #endif /* RH80 */
  764. #endif /* RH90 */
  765. #endif /* ZSL5500 */
  766. #else  /* __linux__ */
  767. #ifdef _386BSD                /* 386BSD Jolix */
  768. #define HERALD " 386BSD"
  769. #else
  770. #ifdef LYNXOS                /* Lynx OS 2.2 */
  771. #define HERALD " Lynx OS"
  772. #else
  773. #ifdef Plan9
  774. #define HERALD " Plan 9 from Bell Labs"
  775. #else
  776. #ifdef SOLARIS10
  777. #define HERALD " Solaris 10"
  778. #else
  779. #ifdef SOLARIS9
  780. #define HERALD " Solaris 9"
  781. #else
  782. #ifdef SOLARIS8
  783. #define HERALD " Solaris 8"
  784. #else
  785. #ifdef SOLARIS7
  786. #define HERALD " Solaris 7"
  787. #else
  788. #ifdef SOLARIS26
  789. #define HERALD " Solaris 2.6"
  790. #else
  791. #ifdef SOLARIS25
  792. #define HERALD " Solaris 2.5"
  793. #else
  794. #ifdef SOLARIS24
  795. #define HERALD " Solaris 2.4"
  796. #else
  797. #ifdef SOLARIS
  798. #define HERALD " Solaris 2.x"
  799. #endif /* SOLARIS */
  800. #endif /* SOLARIS24 */
  801. #endif /* SOLARIS25 */
  802. #endif /* SOLARIS26 */
  803. #endif /* SOLARIS7 */
  804. #endif /* SOLARIS8 */
  805. #endif /* SOLARIS9 */
  806. #endif /* SOLARIS10 */
  807. #endif /* Plan9 */
  808. #endif /* LYNXOS */
  809. #endif /* _386BSD */
  810. #endif /* __linux__ */
  811. #endif /* QNX6 */
  812. #endif /* NEUTRINO */
  813. #endif /* QNX */
  814. #endif /* UW7 */
  815. #endif /* OU8 */
  816. #endif /* PTX */
  817. #endif /* POSIX */
  818.  
  819. #ifdef UTS24
  820. #define HERALD " Amdahl UTS 2.4"
  821. #endif /* UTS24 */
  822.  
  823. #ifdef UTSV
  824. #define HERALD " Amdahl UTS V"
  825. #endif /* UTSV */
  826.  
  827. #ifdef VXVE
  828. #define HERALD " CDC VX/VE 5.2.1 System V"
  829. #endif /* VXVE */
  830.  
  831. #ifdef SCO234
  832. #ifdef HERALD
  833. #undef HERALD
  834. #endif /* HERALD */
  835. #define HERALD " SCO XENIX 2.3.4"
  836. #else
  837. #ifdef CK_SCO32V4
  838. #ifdef HERALD
  839. #undef HERALD
  840. #endif /* HERALD */
  841. #ifdef ODT30
  842. #define HERALD " SCO ODT 3.0"
  843. #else
  844. #define HERALD " SCO UNIX/386 V4"
  845. #endif /* ODT30 */
  846. #else
  847. #ifdef CK_SCOV5
  848. #ifdef HERALD
  849. #undef HERALD
  850. #endif /* HERALD */
  851. #ifdef SCO_OSR507
  852. #define HERALD " SCO OpenServer R5.0.7"
  853. #else
  854. #ifdef SCO_OSR506A
  855. #define HERALD " SCO OpenServer R5.0.6a"
  856. #else
  857. #ifdef SCO_OSR506
  858. #define HERALD " SCO OpenServer R5.0.6"
  859. #else
  860. #ifdef SCO_OSR505
  861. #define HERALD " SCO OpenServer R5.0.5"
  862. #else
  863. #ifdef SCO_OSR504
  864. #define HERALD " SCO OpenServer R5.0.4"
  865. #else
  866. #ifdef SCO_OSR502
  867. #define HERALD " SCO OpenServer R5.0.2"
  868. #else
  869. #define HERALD " SCO OpenServer R5.0"
  870. #endif /* SCO_OSR502 */
  871. #endif /* SCO_OSR504 */
  872. #endif /* SCO_OSR505 */
  873. #endif /* SCO_OSR506 */
  874. #endif /* SCO_OSR506A */
  875. #endif /* SCO_OSR507 */
  876. #else
  877. #ifdef XENIX
  878. #ifdef HERALD
  879. #undef HERALD
  880. #endif /* HERALD */
  881. #ifdef M_UNIX
  882. #define HERALD " SCO UNIX/386"
  883. #else
  884. #ifdef M_I386
  885. #define HERALD " Xenix/386"
  886. #else
  887. #ifdef M_I286
  888. #define HERALD " Xenix/286"
  889. #else
  890. #define HERALD " Xenix"
  891. #endif /* M_I286 */
  892. #endif /* M_I386 */
  893. #endif /* M_UNIX */
  894. #endif /* XENIX  */
  895. #endif /* CK_SCOV5 */
  896. #endif /* CK_SCOV32V4 */
  897. #endif /* SCO234 */
  898.  
  899. #ifdef ZILOG
  900. #define HERALD " Zilog S8000 Zeus 3.21+"
  901. #endif /* ZILOG */
  902.  
  903. #ifdef UTEK
  904. #define HERALD " UTek"
  905. #endif /* UTEK */
  906.  
  907. /* Catch-alls for anything not defined explicitly above */
  908.  
  909. #ifndef HERALD
  910. #ifdef SVR4
  911. #ifdef i386
  912. #define HERALD " AT&T System V/386 R4"
  913. #else
  914. #ifdef AMIX
  915. #define HERALD " Commodore Amiga System V/m68k R4"
  916. #else
  917. #define HERALD " AT&T System V R4"
  918. #endif /* AMIX */
  919. #endif /* i386 */
  920. #else
  921. #ifdef SVR3
  922. #define HERALD " AT&T System V R3"
  923. #else
  924. #ifdef ATTSV
  925. #define HERALD " AT&T System III / System V"
  926. #else
  927. #ifdef BSD43
  928. #ifdef pdp11
  929. #define HERALD " 2.10 BSD PDP-11"
  930. #else
  931. #ifdef vax
  932. #define HERALD " 4.3 BSD VAX"
  933. #else
  934. #define HERALD " 4.3 BSD"
  935. #endif /* vax */
  936. #endif /* pdp11 */
  937. #else
  938. #ifdef BSD4
  939. #ifdef vax
  940. #define HERALD " 4.2 BSD VAX"
  941. #else
  942. #define HERALD " 4.2 BSD"
  943. #endif /* vax */
  944. #else
  945. #ifdef V7
  946. #define HERALD " UNIX Version 7"
  947. #endif /* V7 */
  948. #endif /* BSD4 */
  949. #endif /* BSD43 */
  950. #endif /* ATTSV */
  951. #endif /* SVR3 */
  952. #endif /* SVR4 */
  953. #endif /* HERALD */
  954. #endif /* HERALD */
  955.  
  956. #ifdef OS2
  957. #ifdef HERALD
  958. #undef HERALD
  959. #endif /* HERALD */
  960. #ifdef NT
  961. #define HERALD " 32-bit Windows"
  962. #else /* NT */
  963. #define HERALD " 32-bit OS/2"
  964. #endif /* NT */
  965. #endif /* OS/2 */
  966.  
  967. #ifndef HERALD
  968. #define HERALD " Unknown Version"
  969. #endif /* HERALD */
  970.  
  971. /* Hardware type */
  972.  
  973. #ifdef vax                /* DEC VAX */
  974. #ifndef CKCPU
  975. #define CKCPU "vax"
  976. #endif /* CKCPU */
  977. #endif /*  vax */
  978. #ifdef pdp11                /* DEC PDP-11 */
  979. #ifndef CKCPU
  980. #define CKCPU "pdp11"
  981. #endif /* CKCPU */
  982. #endif /* pdp11 */
  983.  
  984. #ifdef __ALPHA                /* DEC Alpha */
  985. #ifndef CKCPU
  986. #define CKCPU "Alpha"
  987. #endif /* CKCPU */
  988. #endif /* __ALPHA */
  989.  
  990. #ifdef __alpha                /* OSF/1 uses lowercase... */
  991. #ifndef CKCPU
  992. #define CKCPU "Alpha"
  993. #endif /* CKCPU */
  994. #endif /* __alpha */
  995.  
  996. #ifdef DGUX                /* Override Motorola 88k assumption */
  997. #ifndef CKCPU                /* New AViiONs are Intel based... */
  998. #ifdef i586
  999. #define CKCPU "i586"
  1000. #else
  1001. #ifdef i486
  1002. #define CKCPU "i486"
  1003. #else
  1004. #ifdef i386
  1005. #define CKCPU "i386"
  1006. #endif /* i386 */
  1007. #endif /* i486 */
  1008. #endif /* i586 */
  1009. #endif /* CKCPU */
  1010. #endif /* DGUX */
  1011.  
  1012. /* HP 9000 */
  1013.  
  1014. #ifdef __hp9000s700
  1015. #ifndef CKCPU
  1016. #define CKCPU "hp9000s700"
  1017. #endif /* CKCPU */
  1018. #endif /* __hp9000s700 */
  1019.  
  1020. #ifdef __hp9000s800
  1021. #ifndef CKCPU
  1022. #define CKCPU "hp9000s800"
  1023. #endif /* CKCPU */
  1024. #endif /* __hp9000s800 */
  1025.  
  1026. #ifdef __hp9000s500
  1027. #ifndef CKCPU
  1028. #define CKCPU "hp9000s500"
  1029. #endif /* CKCPU */
  1030. #endif /* __hp9000s500 */
  1031.  
  1032. #ifdef __hp9000s400
  1033. #ifndef CKCPU
  1034. #define CKCPU "hp9000s400"
  1035. #endif /* CKCPU */
  1036. #endif /* __hp9000s400 */
  1037.  
  1038. #ifdef __hp9000s300
  1039. #ifndef CKCPU
  1040. #define CKCPU "hp9000s300"
  1041. #endif /* CKCPU */
  1042. #endif /* __hp9000s300 */
  1043.  
  1044. #ifdef __hp9000s200
  1045. #ifndef CKCPU
  1046. #define CKCPU "hp9000s200"
  1047. #endif /* CKCPU */
  1048. #endif /* __hp9000s200 */
  1049.  
  1050. #ifdef m88000                /* Motorola 88000 */
  1051. #ifndef CKCPU
  1052. #define CKCPU "mc88000"
  1053. #endif /* CKCPU */
  1054. #endif /* m88000 */
  1055. #ifdef __using_M88KBCS            /* DG symbol for Motorola 88000 */
  1056. #ifndef CKCPU
  1057. #define CKCPU "mc88000"
  1058. #endif /* CKCPU */
  1059. #endif /* __using_M88KBCS */
  1060. #ifdef m88k                /* Motorola symbol for 88000 */
  1061. #ifndef CKCPU
  1062. #define CKCPU "mc88000"
  1063. #endif /* CKCPU */
  1064. #endif /* m88k */
  1065. #ifdef mc68040                /* Motorola 68040 */
  1066. #ifndef CKCPU
  1067. #define CKCPU "mc68040"
  1068. #endif /* CKCPU */
  1069. #endif /* mc68040 */
  1070. #ifdef mc68030                /* Motorola 68030 */
  1071. #ifndef CKCPU
  1072. #define CKCPU "mc68030"
  1073. #endif /* CKCPU */
  1074. #endif /* mc68030 */
  1075. #ifdef mc68020                /* Motorola 68020 */
  1076. #ifndef CKCPU
  1077. #define CKCPU "mc68020"
  1078. #endif /* CKCPU */
  1079. #endif /* mc68020 */
  1080. #ifdef mc68010                /* Motorola 68010 */
  1081. #ifndef CKCPU
  1082. #define CKCPU "mc68010"
  1083. #endif /* CKCPU */
  1084. #endif /* mc68010 */
  1085. #ifdef mc68000                /* Motorola 68000 */
  1086. #ifndef CKCPU
  1087. #define CKCPU "mc68000"
  1088. #endif /* CKCPU */
  1089. #endif /* mc68000 */
  1090. #ifdef mc68k                /* Ditto (used by DIAB DS90) */
  1091. #ifndef CKCPU
  1092. #define CKCPU "mc68000"
  1093. #endif /* CKCPU */
  1094. #endif /* mc68k */
  1095. #ifdef m68                /* Ditto */
  1096. #ifndef CKCPU
  1097. #define CKCPU "mc68000"
  1098. #endif /* CKCPU */
  1099. #endif /* m68 */
  1100. #ifdef m68k                /* Ditto */
  1101. #ifndef CKCPU
  1102. #define CKCPU "mc68000"
  1103. #endif /* CKCPU */
  1104. #endif /* m68k */
  1105.  
  1106. #ifdef ia64                /* IA64 / Itanium */
  1107. #ifndef CKCPU
  1108. #define CKCPU "ia64"
  1109. #endif /* CKCPU */
  1110. #endif /* i686 */
  1111.  
  1112. #ifdef i686                /* Intel 80686 */
  1113. #ifndef CKCPU
  1114. #define CKCPU "i686"
  1115. #endif /* CKCPU */
  1116. #endif /* i686 */
  1117.  
  1118. #ifdef i586                /* Intel 80586 */
  1119. #ifndef CKCPU
  1120. #define CKCPU "i586"
  1121. #endif /* CKCPU */
  1122. #endif /* i586 */
  1123.  
  1124. #ifdef i486                /* Intel 80486 */
  1125. #ifndef CKCPU
  1126. #define CKCPU "i486"
  1127. #endif /* CKCPU */
  1128. #endif /* i80486 */
  1129. #ifdef i386                /* Intel 80386 */
  1130. #ifndef CKCPU
  1131. #define CKCPU "i386"
  1132. #endif /* CKCPU */
  1133. #endif /* i80386 */
  1134. #ifdef i286                /* Intel 80286 */
  1135. #ifndef CKCPU
  1136. #define CKCPU "i286"
  1137. #endif /* CKCPU */
  1138. #endif /* i286 */
  1139. #ifdef i186                /* Intel 80186 */
  1140. #ifndef CKCPU
  1141. #define CKCPU "i186"
  1142. #endif /* CKCPU */
  1143. #endif /* i186 */
  1144. #ifdef M_I586                /* Intel 80586 */
  1145. #ifndef CKCPU
  1146. #define CKCPU "i586"
  1147. #endif /* CKCPU */
  1148. #endif /* M_I586 */
  1149. #ifdef M_I486                /* Intel 80486 */
  1150. #ifndef CKCPU
  1151. #define CKCPU "i486"
  1152. #endif /* CKCPU */
  1153. #endif /* M_I486 */
  1154. #ifdef _M_I386                /* Intel 80386 */
  1155. #ifndef CKCPU
  1156. #define CKCPU "i386"
  1157. #endif /* CKCPU */
  1158. #endif /* _M_I386 */
  1159. #ifdef M_I286                /* Intel 80286 */
  1160. #ifndef CKCPU
  1161. #define CKCPU "i286"
  1162. #endif /* CKCPU */
  1163. #endif /* M_I286 */
  1164. #ifdef M_I86                /* Intel 80x86 */
  1165. #ifndef CKCPU
  1166. #define CKCPU "ix86"
  1167. #endif /* CKCPU */
  1168. #endif /* M_I86 */
  1169. #ifdef sparc                /* SUN SPARC */
  1170. #ifndef CKCPU
  1171. #define CKCPU "sparc"
  1172. #endif /* CKCPU */
  1173. #endif /* sparc */
  1174. #ifdef mips                /* MIPS RISC processor */
  1175. #ifndef CKCPU
  1176. #define CKCPU "mips"
  1177. #endif /* CKCPU */
  1178. #endif /* mips */
  1179. #ifdef _IBMR2                /* IBM RS/6000 */
  1180. #ifndef CKCPU                /* (what do they call the chip?) */
  1181. #define CKCPU "rs6000"
  1182. #endif /* CKCPU */
  1183. #endif /* rs6000 */
  1184. #ifdef u3b5                /* WE32000 MAC-32, AT&T 3Bx */
  1185. #ifndef CKCPU
  1186. #define CKCPU "u3b5"
  1187. #endif /* CKCPU */
  1188. #endif /* u3b5 */
  1189. #ifdef n3b
  1190. #ifndef CKCPU
  1191. #define CKCPU "n3b"
  1192. #endif /* CKCPU */
  1193. #endif /* n3b */
  1194. #ifdef u3b
  1195. #ifndef CKCPU
  1196. #define CKCPU "u3b"
  1197. #endif /* CKCPU */
  1198. #endif /* u3b */
  1199. #ifdef n16                /* Encore Multimax */
  1200. #ifndef CKCPU
  1201. #define CKCPU "n16"
  1202. #endif /* CKCPU */
  1203. #endif /* n16 */
  1204. #ifdef u370                /* IBM 370 */
  1205. #ifndef CKCPU
  1206. #define CKCPU "u370"
  1207. #endif /* CKCPU */
  1208. #endif /* u370 */
  1209. #ifdef MAC                /* Macintosh catch-all */
  1210. #ifndef CKCPU
  1211. #define CKCPU "mc68000"
  1212. #endif /* CKCPU */
  1213. #endif /* MAC */
  1214.  
  1215. #ifdef STRATUS
  1216. #ifndef CKCPU
  1217. #ifdef __I860__
  1218. #define CKCPU "I860 Family"
  1219. #else
  1220. #ifdef __MC68K__
  1221. #define CKCPU "MC680x0 Family"
  1222. #else
  1223. #define CKCPU "Stratus unknown processor"
  1224. #endif /* __MC68K__ */
  1225. #endif /* __I860__ */
  1226. #endif /* CKCPU */
  1227. #endif /* STRATUS */
  1228.  
  1229. #ifdef COMMENT
  1230. #ifndef CKCPU                /* All others */
  1231. #define CKCPU "unknown"
  1232. #endif /* CKCPU */
  1233. #endif /* COMMENT */
  1234.  
  1235. #endif /* CKUVER_H */
  1236.