home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / test / tar / x28.tar.Z / x28.tar / ckuver.h < prev    next >
C/C++ Source or Header  |  2010-02-01  |  24KB  |  1,259 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. #ifndef MINIX
  508. #ifdef MINIX315
  509. #define MINIX
  510. #endif    /* MINIX315 */
  511. #endif    /* MINIX */
  512.  
  513. #ifndef MINIX
  514. #ifdef MINIX3
  515. #define MINIX
  516. #endif    /* MINIX3 */
  517. #endif    /* MINIX */
  518.  
  519. #ifdef MINIX
  520. #ifdef MINIX315
  521. #define HERALD " Minix 3.1.5"
  522. #ifndef MINIX3
  523. #define MINIX3
  524. #endif    /* MINIX3 */
  525. #endif    /* MINIX315 */
  526. #ifdef MINIX3
  527. #ifndef MINIX2
  528. #define MINIX2
  529. #endif    /* MINIX2 */
  530. #ifndef HERALD
  531. #define HERALD " Minix 3.0"
  532. #endif    /* HERALD */
  533. #else
  534. #ifdef MINIX2
  535. #define HERALD " Minix 2.0"
  536. #else
  537. #define HERALD " Minix 1.0"
  538. #endif /* MINIX3 */
  539. #endif /* MINIX2 */
  540. #endif /* MINIX */
  541.  
  542. #ifdef MIPS
  543. #define HERALD " MIPS RISC/OS SVR3"
  544. #endif /* MIPS */
  545.  
  546. #ifdef NEXT
  547. #ifdef OPENSTEP42
  548. #define HERALD " OPENSTEP 4.2"
  549. #else
  550. #ifdef NEXT33
  551. #define HERALD " NeXTSTEP 3.3"
  552. #else
  553. #define HERALD " NeXTSTEP"
  554. #endif /* NEXT33 */
  555. #endif /* OPENSTEP42 */
  556. #endif /* NEXT */
  557.  
  558. #ifdef OSF
  559. #ifdef i386
  560. #define HERALD " DECpc OSF/1"
  561. #ifdef __GNUC
  562. #define OSFPC
  563. #endif /* __GNUC */
  564. #else  /* Not i386 so Alpha */
  565.  
  566. #ifdef TRU64
  567.  
  568. #ifdef OSF51B
  569. #define HERALD " Compaq Tru64 UNIX 5.1B"
  570. #else
  571. #ifdef OSF51A
  572. #define HERALD " Compaq Tru64 UNIX 5.1A"
  573. #else
  574. #ifdef OSF50
  575. #define HERALD " Compaq Tru64 UNIX 5.0A"
  576. #else
  577. #ifdef OSF40G
  578. #define HERALD " Compaq Tru64 UNIX 4.0G"
  579. #else
  580. #ifdef OSF40F
  581. #define HERALD " Compaq Tru64 UNIX 4.0F"
  582. #else
  583. #ifdef OSF40E
  584. #define HERALD " Compaq Tru64 UNIX 4.0E"
  585. #endif /* OSF40E */
  586. #endif /* OSF40F */
  587. #endif /* OSF40G */
  588. #endif /* OSF50 */
  589. #endif /* OSF51A */
  590. #endif /* OSF51B */
  591.  
  592. #else  /* Not TRU64 */
  593.  
  594. #ifdef OSF40
  595. #define HERALD " Digital UNIX 4.0"
  596. #else
  597. #ifdef OSF32
  598. #define HERALD " Digital UNIX 3.2"
  599. #else
  600. #define HERALD " DEC OSF/1 Alpha"
  601. #endif /* OSF40 */
  602. #endif /* OSF32 */
  603.  
  604. #endif /* TRU64 */
  605. #endif /* i386 */
  606. #endif /* OSF */
  607.  
  608. #ifdef PCIX
  609. #define HERALD " PC/IX"
  610. #endif /* PCIX */
  611.  
  612. #ifdef sxaE50
  613. #define HERALD " PFU SX/A V10/L50"
  614. #endif /* sxaE50 */
  615.  
  616. #ifdef PROVX1
  617. #define HERALD " DEC Professional 300 (Venix 1.0)"
  618. #endif /* PROVX1 */
  619.  
  620. #ifdef PYRAMID
  621. #ifdef SVR4
  622. #define HERALD " Pyramid DC/OSx"
  623. #else
  624. #define HERALD " Pyramid Dual Port OSx"
  625. #endif /* SVR4 */
  626. #endif /* PYRAMID */
  627.  
  628. #ifdef RTAIX
  629. #define HERALD " IBM RT PC (AIX 2.2)"
  630. #endif /* RTAIX */
  631.  
  632. #ifdef RTU
  633. #define HERALD " Masscomp/Concurrent RTU"
  634. #endif /* RTU */
  635.  
  636. #ifdef sony_news
  637. #define HERALD " SONY NEWS"
  638. #endif /* sony_news */
  639.  
  640. #ifdef SOLARIS24
  641. #define HERALD " Solaris 2.4"
  642. #else
  643. #ifdef SOLARIS23
  644. #define HERALD " Solaris 2.3"
  645. #else
  646. #ifdef SOLARIS
  647. #define HERALD " Solaris 2.x"
  648. #endif /* SOLARIS */
  649. #endif /* SOLARIS23 */
  650. #endif /* SOLARIS24 */
  651.  
  652. #ifdef SUNOS4
  653. #ifdef BSD4
  654. #ifdef SUNOS41
  655. #define HERALD " SunOS 4.1"
  656. #else
  657. #define HERALD " SunOS 4.0"
  658. #endif /* SUNOS41 */
  659. #endif /* BSD4 */
  660. #endif /* SUNOS4 */
  661.  
  662. #ifdef SUN4S5
  663. #ifdef HDBUUCP
  664. #define HERALD " SunOS 4.1 (SVR3)"
  665. #else
  666. #define HERALD " SunOS 4.0 (SVR3)"
  667. #endif /* HDBUUCP */
  668. #endif /* SUN4S5 */
  669.  
  670. #ifdef STRATUS
  671. #define HERALD " Stratus VOS"
  672. #endif /* STRATUS */
  673.  
  674. #ifdef TOWER1
  675. #define HERALD " NCR Tower 1632 OS 1.02"
  676. #endif /* TOWER1 */
  677.  
  678. #ifdef TRS16
  679. #define HERALD " Tandy 16/6000 Xenix 3.0"
  680. #ifndef CKCPU
  681. #define CKCPU "mc68000"
  682. #endif /* CKCPU */
  683. #endif /* TRS16 */
  684.  
  685. #ifdef u3b2
  686. #ifndef HERALD
  687. #ifdef SVR3
  688. #define HERALD " AT&T 3B2 System V R3"
  689. #else
  690. #define HERALD " AT&T 3B2 System V"
  691. #endif /* SVR3 */
  692. #endif /* HERALD */
  693. #endif /* u3b2 */
  694.  
  695. #ifdef ultrix
  696. #ifdef vax
  697. #ifdef ULTRIX3
  698. #define HERALD " VAX/ULTRIX 3.0"
  699. #else
  700. #define HERALD " VAX/ULTRIX"
  701. #endif /* ULTRIX3 */
  702. #else
  703. #ifdef mips
  704. #ifdef ULTRIX43
  705. #define HERALD " DECstation/ULTRIX 4.3"
  706. #else
  707. #ifdef ULTRIX44
  708. #define HERALD " DECstation/ULTRIX 4.4"
  709. #else
  710. #ifdef ULTRIX45
  711. #define HERALD " DECstation/ULTRIX 4.5"
  712. #else
  713. #define HERALD " DECstation/ULTRIX"
  714. #endif /* ULTRIX45 */
  715. #endif /* ULTRIX44 */
  716. #endif /* ULTRIX43 */
  717. #else
  718. #define HERALD " ULTRIX"
  719. #endif /* mips */
  720. #endif /* vax */
  721. #endif /* ultrix */
  722.  
  723. #ifdef OXOS
  724. #define HERALD " Olivetti X/OS"
  725. #endif /* OXOS */
  726.  
  727. #ifdef _386BSD
  728. #define HERALD " 386BSD"
  729. #endif /* _386BSD */
  730.  
  731. #ifdef POSIX
  732. #ifdef PTX
  733. #ifdef PTX4
  734. #define HERALD " DYNIX/ptx V4"
  735. #else
  736. #define HERALD " DYNIX/ptx"
  737. #endif /* PTX4 */
  738. #else  /* PTX */
  739. #ifndef OSF        /* Let OSF -DPOSIX keep previously defined HERALD */
  740. #ifdef HERALD
  741. #undef HERALD
  742. #endif /* HERALD */
  743. #endif /* OSF */
  744. #ifdef OU8
  745. #define HERALD " OpenUNIX 8"
  746. #else
  747. #ifdef UW7
  748. #define HERALD " Unixware 7"
  749. #else
  750. #ifdef QNX
  751. #ifdef QNX16
  752. #define HERALD " QNX 16-bit"
  753. #else
  754. #define HERALD " QNX 32-bit"
  755. #endif /* QNX16 */
  756. #else
  757. #ifdef NEUTRINO
  758. #define HERALD " QNX Neutrino 2"
  759. #else  /* NEUTRINO */
  760. #ifdef QNX6
  761. #define HERALD " QNX6"
  762. #else  /* QNX6 */
  763. #ifdef __linux__
  764. #ifdef ZSL5500
  765. #define HERALD " Sharp Zaurus SL-5500"
  766. #else
  767. #ifdef RH90
  768. #define HERALD " Red Hat Linux 9.0"
  769. #else
  770. #ifdef RH80
  771. #define HERALD " Red Hat Linux 8.0"
  772. #else
  773. #ifdef RH73
  774. #define HERALD " Red Hat Linux 7.3"
  775. #else
  776. #ifdef RH72
  777. #define HERALD " Red Hat Linux 7.2"
  778. #else
  779. #ifdef RH71
  780. #define HERALD " Red Hat Linux 7.1"
  781. #else
  782. #define HERALD " Linux"
  783. #endif /* RH71 */
  784. #endif /* RH72 */
  785. #endif /* RH73 */
  786. #endif /* RH80 */
  787. #endif /* RH90 */
  788. #endif /* ZSL5500 */
  789. #else  /* __linux__ */
  790. #ifdef _386BSD                /* 386BSD Jolix */
  791. #define HERALD " 386BSD"
  792. #else
  793. #ifdef LYNXOS                /* Lynx OS 2.2 */
  794. #define HERALD " Lynx OS"
  795. #else
  796. #ifdef Plan9
  797. #define HERALD " Plan 9 from Bell Labs"
  798. #else
  799. #ifdef SOLARIS10
  800. #define HERALD " Solaris 10"
  801. #else
  802. #ifdef SOLARIS9
  803. #define HERALD " Solaris 9"
  804. #else
  805. #ifdef SOLARIS8
  806. #define HERALD " Solaris 8"
  807. #else
  808. #ifdef SOLARIS7
  809. #define HERALD " Solaris 7"
  810. #else
  811. #ifdef SOLARIS26
  812. #define HERALD " Solaris 2.6"
  813. #else
  814. #ifdef SOLARIS25
  815. #define HERALD " Solaris 2.5"
  816. #else
  817. #ifdef SOLARIS24
  818. #define HERALD " Solaris 2.4"
  819. #else
  820. #ifdef SOLARIS
  821. #define HERALD " Solaris 2.x"
  822. #endif /* SOLARIS */
  823. #endif /* SOLARIS24 */
  824. #endif /* SOLARIS25 */
  825. #endif /* SOLARIS26 */
  826. #endif /* SOLARIS7 */
  827. #endif /* SOLARIS8 */
  828. #endif /* SOLARIS9 */
  829. #endif /* SOLARIS10 */
  830. #endif /* Plan9 */
  831. #endif /* LYNXOS */
  832. #endif /* _386BSD */
  833. #endif /* __linux__ */
  834. #endif /* QNX6 */
  835. #endif /* NEUTRINO */
  836. #endif /* QNX */
  837. #endif /* UW7 */
  838. #endif /* OU8 */
  839. #endif /* PTX */
  840. #endif /* POSIX */
  841.  
  842. #ifdef UTS24
  843. #define HERALD " Amdahl UTS 2.4"
  844. #endif /* UTS24 */
  845.  
  846. #ifdef UTSV
  847. #define HERALD " Amdahl UTS V"
  848. #endif /* UTSV */
  849.  
  850. #ifdef VXVE
  851. #define HERALD " CDC VX/VE 5.2.1 System V"
  852. #endif /* VXVE */
  853.  
  854. #ifdef SCO234
  855. #ifdef HERALD
  856. #undef HERALD
  857. #endif /* HERALD */
  858. #define HERALD " SCO XENIX 2.3.4"
  859. #else
  860. #ifdef CK_SCO32V4
  861. #ifdef HERALD
  862. #undef HERALD
  863. #endif /* HERALD */
  864. #ifdef ODT30
  865. #define HERALD " SCO ODT 3.0"
  866. #else
  867. #define HERALD " SCO UNIX/386 V4"
  868. #endif /* ODT30 */
  869. #else
  870. #ifdef CK_SCOV5
  871. #ifdef HERALD
  872. #undef HERALD
  873. #endif /* HERALD */
  874. #ifdef SCO_OSR507
  875. #define HERALD " SCO OpenServer R5.0.7"
  876. #else
  877. #ifdef SCO_OSR506A
  878. #define HERALD " SCO OpenServer R5.0.6a"
  879. #else
  880. #ifdef SCO_OSR506
  881. #define HERALD " SCO OpenServer R5.0.6"
  882. #else
  883. #ifdef SCO_OSR505
  884. #define HERALD " SCO OpenServer R5.0.5"
  885. #else
  886. #ifdef SCO_OSR504
  887. #define HERALD " SCO OpenServer R5.0.4"
  888. #else
  889. #ifdef SCO_OSR502
  890. #define HERALD " SCO OpenServer R5.0.2"
  891. #else
  892. #define HERALD " SCO OpenServer R5.0"
  893. #endif /* SCO_OSR502 */
  894. #endif /* SCO_OSR504 */
  895. #endif /* SCO_OSR505 */
  896. #endif /* SCO_OSR506 */
  897. #endif /* SCO_OSR506A */
  898. #endif /* SCO_OSR507 */
  899. #else
  900. #ifdef XENIX
  901. #ifdef HERALD
  902. #undef HERALD
  903. #endif /* HERALD */
  904. #ifdef M_UNIX
  905. #define HERALD " SCO UNIX/386"
  906. #else
  907. #ifdef M_I386
  908. #define HERALD " Xenix/386"
  909. #else
  910. #ifdef M_I286
  911. #define HERALD " Xenix/286"
  912. #else
  913. #define HERALD " Xenix"
  914. #endif /* M_I286 */
  915. #endif /* M_I386 */
  916. #endif /* M_UNIX */
  917. #endif /* XENIX  */
  918. #endif /* CK_SCOV5 */
  919. #endif /* CK_SCOV32V4 */
  920. #endif /* SCO234 */
  921.  
  922. #ifdef ZILOG
  923. #define HERALD " Zilog S8000 Zeus 3.21+"
  924. #endif /* ZILOG */
  925.  
  926. #ifdef UTEK
  927. #define HERALD " UTek"
  928. #endif /* UTEK */
  929.  
  930. /* Catch-alls for anything not defined explicitly above */
  931.  
  932. #ifndef HERALD
  933. #ifdef SVR4
  934. #ifdef i386
  935. #define HERALD " AT&T System V/386 R4"
  936. #else
  937. #ifdef AMIX
  938. #define HERALD " Commodore Amiga System V/m68k R4"
  939. #else
  940. #define HERALD " AT&T System V R4"
  941. #endif /* AMIX */
  942. #endif /* i386 */
  943. #else
  944. #ifdef SVR3
  945. #define HERALD " AT&T System V R3"
  946. #else
  947. #ifdef ATTSV
  948. #define HERALD " AT&T System III / System V"
  949. #else
  950. #ifdef BSD43
  951. #ifdef pdp11
  952. #define HERALD " 2.10 BSD PDP-11"
  953. #else
  954. #ifdef vax
  955. #define HERALD " 4.3 BSD VAX"
  956. #else
  957. #define HERALD " 4.3 BSD"
  958. #endif /* vax */
  959. #endif /* pdp11 */
  960. #else
  961. #ifdef BSD4
  962. #ifdef vax
  963. #define HERALD " 4.2 BSD VAX"
  964. #else
  965. #define HERALD " 4.2 BSD"
  966. #endif /* vax */
  967. #else
  968. #ifdef V7
  969. #define HERALD " UNIX Version 7"
  970. #endif /* V7 */
  971. #endif /* BSD4 */
  972. #endif /* BSD43 */
  973. #endif /* ATTSV */
  974. #endif /* SVR3 */
  975. #endif /* SVR4 */
  976. #endif /* HERALD */
  977. #endif /* HERALD */
  978.  
  979. #ifdef OS2
  980. #ifdef HERALD
  981. #undef HERALD
  982. #endif /* HERALD */
  983. #ifdef NT
  984. #define HERALD " 32-bit Windows"
  985. #else /* NT */
  986. #define HERALD " 32-bit OS/2"
  987. #endif /* NT */
  988. #endif /* OS/2 */
  989.  
  990. #ifndef HERALD
  991. #define HERALD " Unknown Version"
  992. #endif /* HERALD */
  993.  
  994. /* Hardware type */
  995.  
  996. #ifdef vax                /* DEC VAX */
  997. #ifndef CKCPU
  998. #define CKCPU "vax"
  999. #endif /* CKCPU */
  1000. #endif /*  vax */
  1001. #ifdef pdp11                /* DEC PDP-11 */
  1002. #ifndef CKCPU
  1003. #define CKCPU "pdp11"
  1004. #endif /* CKCPU */
  1005. #endif /* pdp11 */
  1006.  
  1007. #ifdef __ALPHA                /* DEC Alpha */
  1008. #ifndef CKCPU
  1009. #define CKCPU "Alpha"
  1010. #endif /* CKCPU */
  1011. #endif /* __ALPHA */
  1012.  
  1013. #ifdef __alpha                /* OSF/1 uses lowercase... */
  1014. #ifndef CKCPU
  1015. #define CKCPU "Alpha"
  1016. #endif /* CKCPU */
  1017. #endif /* __alpha */
  1018.  
  1019. #ifdef DGUX                /* Override Motorola 88k assumption */
  1020. #ifndef CKCPU                /* New AViiONs are Intel based... */
  1021. #ifdef i586
  1022. #define CKCPU "i586"
  1023. #else
  1024. #ifdef i486
  1025. #define CKCPU "i486"
  1026. #else
  1027. #ifdef i386
  1028. #define CKCPU "i386"
  1029. #endif /* i386 */
  1030. #endif /* i486 */
  1031. #endif /* i586 */
  1032. #endif /* CKCPU */
  1033. #endif /* DGUX */
  1034.  
  1035. /* HP 9000 */
  1036.  
  1037. #ifdef __hp9000s700
  1038. #ifndef CKCPU
  1039. #define CKCPU "hp9000s700"
  1040. #endif /* CKCPU */
  1041. #endif /* __hp9000s700 */
  1042.  
  1043. #ifdef __hp9000s800
  1044. #ifndef CKCPU
  1045. #define CKCPU "hp9000s800"
  1046. #endif /* CKCPU */
  1047. #endif /* __hp9000s800 */
  1048.  
  1049. #ifdef __hp9000s500
  1050. #ifndef CKCPU
  1051. #define CKCPU "hp9000s500"
  1052. #endif /* CKCPU */
  1053. #endif /* __hp9000s500 */
  1054.  
  1055. #ifdef __hp9000s400
  1056. #ifndef CKCPU
  1057. #define CKCPU "hp9000s400"
  1058. #endif /* CKCPU */
  1059. #endif /* __hp9000s400 */
  1060.  
  1061. #ifdef __hp9000s300
  1062. #ifndef CKCPU
  1063. #define CKCPU "hp9000s300"
  1064. #endif /* CKCPU */
  1065. #endif /* __hp9000s300 */
  1066.  
  1067. #ifdef __hp9000s200
  1068. #ifndef CKCPU
  1069. #define CKCPU "hp9000s200"
  1070. #endif /* CKCPU */
  1071. #endif /* __hp9000s200 */
  1072.  
  1073. #ifdef m88000                /* Motorola 88000 */
  1074. #ifndef CKCPU
  1075. #define CKCPU "mc88000"
  1076. #endif /* CKCPU */
  1077. #endif /* m88000 */
  1078. #ifdef __using_M88KBCS            /* DG symbol for Motorola 88000 */
  1079. #ifndef CKCPU
  1080. #define CKCPU "mc88000"
  1081. #endif /* CKCPU */
  1082. #endif /* __using_M88KBCS */
  1083. #ifdef m88k                /* Motorola symbol for 88000 */
  1084. #ifndef CKCPU
  1085. #define CKCPU "mc88000"
  1086. #endif /* CKCPU */
  1087. #endif /* m88k */
  1088. #ifdef mc68040                /* Motorola 68040 */
  1089. #ifndef CKCPU
  1090. #define CKCPU "mc68040"
  1091. #endif /* CKCPU */
  1092. #endif /* mc68040 */
  1093. #ifdef mc68030                /* Motorola 68030 */
  1094. #ifndef CKCPU
  1095. #define CKCPU "mc68030"
  1096. #endif /* CKCPU */
  1097. #endif /* mc68030 */
  1098. #ifdef mc68020                /* Motorola 68020 */
  1099. #ifndef CKCPU
  1100. #define CKCPU "mc68020"
  1101. #endif /* CKCPU */
  1102. #endif /* mc68020 */
  1103. #ifdef mc68010                /* Motorola 68010 */
  1104. #ifndef CKCPU
  1105. #define CKCPU "mc68010"
  1106. #endif /* CKCPU */
  1107. #endif /* mc68010 */
  1108. #ifdef mc68000                /* Motorola 68000 */
  1109. #ifndef CKCPU
  1110. #define CKCPU "mc68000"
  1111. #endif /* CKCPU */
  1112. #endif /* mc68000 */
  1113. #ifdef mc68k                /* Ditto (used by DIAB DS90) */
  1114. #ifndef CKCPU
  1115. #define CKCPU "mc68000"
  1116. #endif /* CKCPU */
  1117. #endif /* mc68k */
  1118. #ifdef m68                /* Ditto */
  1119. #ifndef CKCPU
  1120. #define CKCPU "mc68000"
  1121. #endif /* CKCPU */
  1122. #endif /* m68 */
  1123. #ifdef m68k                /* Ditto */
  1124. #ifndef CKCPU
  1125. #define CKCPU "mc68000"
  1126. #endif /* CKCPU */
  1127. #endif /* m68k */
  1128.  
  1129. #ifdef ia64                /* IA64 / Itanium */
  1130. #ifndef CKCPU
  1131. #define CKCPU "ia64"
  1132. #endif /* CKCPU */
  1133. #endif /* i686 */
  1134.  
  1135. #ifdef i686                /* Intel 80686 */
  1136. #ifndef CKCPU
  1137. #define CKCPU "i686"
  1138. #endif /* CKCPU */
  1139. #endif /* i686 */
  1140.  
  1141. #ifdef i586                /* Intel 80586 */
  1142. #ifndef CKCPU
  1143. #define CKCPU "i586"
  1144. #endif /* CKCPU */
  1145. #endif /* i586 */
  1146.  
  1147. #ifdef i486                /* Intel 80486 */
  1148. #ifndef CKCPU
  1149. #define CKCPU "i486"
  1150. #endif /* CKCPU */
  1151. #endif /* i80486 */
  1152. #ifdef i386                /* Intel 80386 */
  1153. #ifndef CKCPU
  1154. #define CKCPU "i386"
  1155. #endif /* CKCPU */
  1156. #endif /* i80386 */
  1157. #ifdef i286                /* Intel 80286 */
  1158. #ifndef CKCPU
  1159. #define CKCPU "i286"
  1160. #endif /* CKCPU */
  1161. #endif /* i286 */
  1162. #ifdef i186                /* Intel 80186 */
  1163. #ifndef CKCPU
  1164. #define CKCPU "i186"
  1165. #endif /* CKCPU */
  1166. #endif /* i186 */
  1167. #ifdef M_I586                /* Intel 80586 */
  1168. #ifndef CKCPU
  1169. #define CKCPU "i586"
  1170. #endif /* CKCPU */
  1171. #endif /* M_I586 */
  1172. #ifdef M_I486                /* Intel 80486 */
  1173. #ifndef CKCPU
  1174. #define CKCPU "i486"
  1175. #endif /* CKCPU */
  1176. #endif /* M_I486 */
  1177. #ifdef _M_I386                /* Intel 80386 */
  1178. #ifndef CKCPU
  1179. #define CKCPU "i386"
  1180. #endif /* CKCPU */
  1181. #endif /* _M_I386 */
  1182. #ifdef M_I286                /* Intel 80286 */
  1183. #ifndef CKCPU
  1184. #define CKCPU "i286"
  1185. #endif /* CKCPU */
  1186. #endif /* M_I286 */
  1187. #ifdef M_I86                /* Intel 80x86 */
  1188. #ifndef CKCPU
  1189. #define CKCPU "ix86"
  1190. #endif /* CKCPU */
  1191. #endif /* M_I86 */
  1192. #ifdef sparc                /* SUN SPARC */
  1193. #ifndef CKCPU
  1194. #define CKCPU "sparc"
  1195. #endif /* CKCPU */
  1196. #endif /* sparc */
  1197. #ifdef mips                /* MIPS RISC processor */
  1198. #ifndef CKCPU
  1199. #define CKCPU "mips"
  1200. #endif /* CKCPU */
  1201. #endif /* mips */
  1202. #ifdef _IBMR2                /* IBM RS/6000 */
  1203. #ifndef CKCPU                /* (what do they call the chip?) */
  1204. #define CKCPU "rs6000"
  1205. #endif /* CKCPU */
  1206. #endif /* rs6000 */
  1207. #ifdef u3b5                /* WE32000 MAC-32, AT&T 3Bx */
  1208. #ifndef CKCPU
  1209. #define CKCPU "u3b5"
  1210. #endif /* CKCPU */
  1211. #endif /* u3b5 */
  1212. #ifdef n3b
  1213. #ifndef CKCPU
  1214. #define CKCPU "n3b"
  1215. #endif /* CKCPU */
  1216. #endif /* n3b */
  1217. #ifdef u3b
  1218. #ifndef CKCPU
  1219. #define CKCPU "u3b"
  1220. #endif /* CKCPU */
  1221. #endif /* u3b */
  1222. #ifdef n16                /* Encore Multimax */
  1223. #ifndef CKCPU
  1224. #define CKCPU "n16"
  1225. #endif /* CKCPU */
  1226. #endif /* n16 */
  1227. #ifdef u370                /* IBM 370 */
  1228. #ifndef CKCPU
  1229. #define CKCPU "u370"
  1230. #endif /* CKCPU */
  1231. #endif /* u370 */
  1232. #ifdef MAC                /* Macintosh catch-all */
  1233. #ifndef CKCPU
  1234. #define CKCPU "mc68000"
  1235. #endif /* CKCPU */
  1236. #endif /* MAC */
  1237.  
  1238. #ifdef STRATUS
  1239. #ifndef CKCPU
  1240. #ifdef __I860__
  1241. #define CKCPU "I860 Family"
  1242. #else
  1243. #ifdef __MC68K__
  1244. #define CKCPU "MC680x0 Family"
  1245. #else
  1246. #define CKCPU "Stratus unknown processor"
  1247. #endif /* __MC68K__ */
  1248. #endif /* __I860__ */
  1249. #endif /* CKCPU */
  1250. #endif /* STRATUS */
  1251.  
  1252. #ifdef COMMENT
  1253. #ifndef CKCPU                /* All others */
  1254. #define CKCPU "unknown"
  1255. #endif /* CKCPU */
  1256. #endif /* COMMENT */
  1257.  
  1258. #endif /* CKUVER_H */
  1259.