USL Development System


Description

The USL C/C++ compiler. Mostly provided with USL variants of Unix System V Release 4, SCO OpenServer, and SCO UnixWare.

It was replaced by the SCO Development System with later versions of SCO OpenServer and SCO UnixWare.

Macros

TypeMacroFormatDescription
Identification__USLC__  
Version__SCO_VERSION__VRRYYYYMMV = Version RR = Revision YYYY = Year MM = Month

Examples

Version__SCO_VERSION__Description
3.2302199801 
3.3303200210UnixWare 7.1.3 UDK C++ (CC)
3.4304200805UnixWare 7.1.4 UDK C++ (CC)
4.2402200805UnixWare 7.1.4 UDK C (cc)

Notes

For the exact identity of the USL compiler's version you're probably firmly in the "It's Unix!" nonsense ala AT&T Unix. However, we can do some guesswork.

 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
#include <stdio.h>

int
main(void)
{
#if defined(_M_SYS5) || defined(_M_SYSV)
  printf("Host is System V.\n");
#endif

#if defined(M_UNIX) || defined(unix)
# if defined(M_XENIX)
  printf("Xenix or OpenServer\n");
# endif

  printf("Unix.\n");
#endif

#if defined(__USLC__)
  printf("USL C compiler.\n");
#endif

#if defined(_SCO_DS)
  printf("SCO C compiler.\n");
#endif

#if defined(__SCO_VERSION__)
  printf("SCO compiler version %d\n", __SCO_VERSION__);
#endif

  return 0;
}
 

On UnixWare 7.1.3, this picks up unix, __USLC__, and __SCO_VERSION__.

On OpenServer 5.0.7, this picks up _M_SYS5, _M_SYSV, M_UNIX, M_XENIX, __USLC__, and _SCO_DS.

See Also

SCO Development System

 
Return to top
 
Created: