ostype from sys-info

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
kosh
Posts: 72
Joined: Sun Sep 13, 2009 5:38 am
Location: Japan
Contact:

ostype from sys-info

Post by kosh »

According to document, '(sys-info 9)' returns a following value:
Operating system constant:
linux=1, bsd=2, osx=3, solaris=4, cygwin=5, win32=6, os/2=7, tru64unix=9
But in newlisp.c is written like this:

Code: Select all

#ifdef CYGWIN
int opsys = 8;
#endif

#ifdef TRU64
int opsys = 9; 
#endif

#ifdef AIX
int opsys = 10;
#endif
It seems that values in the case of CYGWIN are different. and value of AIX missing from document.
Which is rgitht?

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: ostype from sys-info

Post by Lutz »

Thanks for catching this error. The manual was wrong and is now corrected:

Code: Select all

 linux=1, bsd=2, osx=3, solaris=4, win32=6, os/2=7, cygwin=8, tru64unix=9, aix=10

Locked