Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!dvlmarv!zaphod!billj From: billj@zaphod.UUCP Newsgroups: comp.lang.c Subject: pre#defined cpp symbols Message-ID: <1836@zaphod.UUCP> Date: Thu, 23-Jul-87 21:31:07 EDT Article-I.D.: zaphod.1836 Posted: Thu Jul 23 21:31:07 1987 Date-Received: Sat, 25-Jul-87 11:20:46 EDT Reply-To: billj@zaphod.UUCP (Bill Jones) Organization: Develcon Electronics, Saskatoon SK Canada Lines: 76 Summary: what's missing? Some of the old hand net.lang.c readers may remember an article posted in September '84 by foros1!jr, and reposted in April '86 by convexs!hosking, detailing the symbols predefined by various cpp versions. The table below is drawn from that article, and slightly updated by me to remove versions I thought extremely rare, and add others I knew of. I am interested in updating it: if you know of errors, omissions, or versions now obsolete, please send me mail. I will collect responses for about two weeks before posting an updated version. Predefined Preprocessor Symbols Name Description and availability __DATE__ date of compilation: ANSI, Decus C __FILE__ current source file name: ANSI, most __LINE__ line number within source file: ANSI, most __PAGE__ page number within source file: Data General __STDC__ standard, i.e. ANSI, C __TIME__ time of compilation, e.g. "14:22:00": ANSI AOSVS Data General AOS/VS operating system aosvs Data General AOS/VS operating system apollo Apollo workstations bsd4_2 Berkeley 4.2 Unix: Ultrix DATAGENERAL Data General hardware datageneral Data General hardware decus Decus C (PDP-11 RSX, RSTS, RT-11) DGUX Data General Unix dgux Data General Unix gcos Honeywell 6000 GCOS system (AT&T only?) GFLOAT Ultrix compiling 8-byte floating point ibm IBM and Amdahl mainframes (AT&T only?) interdata Interdata 8/32 (AT&T only?) hp9000s200 Hewlett-Packard 9000 HP/UX hp9000s500 Hewlett-Packard 9000 HP/UX kl10 DEC-20 KL10 processor: U of Utah pcc lint being processed by lint m68000 Motorola M68000 family: CCI m68k Motorola M68000 family: Motorola SysV mc68000 Motorola M68000 family: Sun, Fortune, others mert AT&T MERT variant of Unix nomacarg cpp without macro arguments: Decus C orion Orion supermicro os IBM OS/360, /370 (AT&T only?) pdp11 DEC PDP-11: Unix V7, Decus C PWB Programmer's workbench variant RES AT&T Research Unix rsx DEC PDP-11 RSX: Decus C RT AT&T UNIX/RT sel Gould Concept 32 selport Gould Concept 32 sun Sun Microsystems workstations SYSTEM_FIVE Ultrix SysV emulation TM_DPS6 Honeywell DPS 6: Waterloo C TM_L66 Honeywell Level 66: Waterloo C tops20 DEC-20 TOPS-20: U of Utah pcc TS AT&T UNIX/TS for IBM TS_GCOS Honeywell GCOS 8: Waterloo C TS_MOD400 Honeywell GCOS 6 model 400: Waterloo C tss AT&T C under IBM TSS u370 AT&T Unix on IBM 370 u3b AT&T Unix on 3B series u3b2 AT&T Unix on 3B-2 u3b20 AT&T Unix on 3B-20 u3b5 AT&T Unix on 3B-5 ultrix DEC's Ultrix variant univac Univac/1100 Unix unix any Unix uts Amdahl UTS variant vax DEC VAX computers vax11c DEC (VMS/Ultrix) VAX-11 C vms DEC VMS operating system: VAX-11 C z80 Zilog Z80: Vandata C z8000 Zilog Z8000 -- Bill Jones, Develcon Electronics, 856 51 St E, Saskatoon S7K 5C7 Canada uucp: ...ihnp4!sask!zaphod!billj phone: +1 306 931 1504