Page 1 of 1

ostype from sys-info

Posted: Sun Mar 25, 2012 6:36 pm
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?

Re: ostype from sys-info

Posted: Mon Mar 26, 2012 4:42 am
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