ostype from sys-info

Started by kosh, March 25, 2012, 11:36:45 AM

Previous topic - Next topic

kosh

According to document, '(sys-info 9)' returns a following value:
QuoteOperating 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:
#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

#1
Thanks for catching this error. The manual was wrong and is now corrected:
linux=1, bsd=2, osx=3, solaris=4, win32=6, os/2=7, cygwin=8, tru64unix=9, aix=10