1. Euphoria for FreeBSD!
- Posted by Robert Craig <rds at RapidEuphoria.com> Apr 19, 2002
- 463 views
I've released Euphoria 2.3 for FreeBSD. You can get the Interpreter and the Euphoria To C Translator for FreeBSD from: http://www.rapideuphoria.com/v20.htm You first have to install Euphoria for Linux, then replace exu with the one compiled for FreeBSD. The two platforms are so similar, I decided to let platform() return 3 for both of them. Otherwise a lot of existing Linux code would break needlessly on FreeBSD. The Interpreter source code product has also been updated with the latest changes for FreeBSD, plus a batch file for building Euphoria on FreeBSD. The FreeBSD support will now be included free with the Interpreter, Translator, and Source Code products. If you registered already for 2.3, and you want to add support for FreeBSD to whatever you bought, send me an e-mail. Those who have the source, can update it by following the same instructions as before - the .zip file was updated today. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
2. Re: Euphoria for FreeBSD!
- Posted by jbrown105 at speedymail.org Apr 20, 2002
- 458 views
On 0, Robert Craig <rds at RapidEuphoria.com> wrote: > > I've released Euphoria 2.3 for FreeBSD. > You can get the Interpreter and the Euphoria To C Translator > for FreeBSD from: > http://www.rapideuphoria.com/v20.htm > I don't have it myself, but this is still excellent news. > You first have to install Euphoria for Linux, > then replace exu with the one compiled for FreeBSD. > The two platforms are so similar, I decided to let > platform() return 3 for both of them. Otherwise > a lot of existing Linux code would break needlessly on FreeBSD. > Then how do I tell the difference between a FreeBSD platform and a Linux platform? Some Linux code (not a lot, but some) may not run on FreeBSD. Perhaps a unix_platform() function, which returns 1 on Linux and 2 on FreeBSD and 0 on DOS/Windows? jbrown -- Please don't use http://fastmail.fm (I like feeling special.)
3. Re: Euphoria for FreeBSD!
- Posted by Ted Fines <fines at macalester.edu> Apr 20, 2002
- 442 views
'uname -s' shows OS name. Here's the Linux programmer's man page on uname. I'd bet that freeBSD has the same function. Someone would just have to inline some C code or wrap the function in Eu (by someone, I of course mean someone besides me!): UNAME(2) Linux Programmer's Manual UNAME(2) NAME uname - get name and information about current kernel SYNOPSIS #include <sys/utsname.h> int uname(struct utsname *buf); DESCRIPTION uname returns system information in the structure pointed to by buf. The utsname struct is as defined in <sys/utsname.h>: struct utsname { char sysname[SYS_NMLN]; char nodename[SYS_NMLN]; char release[SYS_NMLN]; char version[SYS_NMLN]; char machine[SYS_NMLN]; #ifdef _GNU_SOURCE char domainname[SYS_NMLN]; #endif }; RETURN VALUE On success, zero is returned. On error, -1 is returned, and errno is set appropriately. ERRORS EFAULT buf is not valid. CONFORMING TO SVr4, SVID, POSIX, X/OPEN The domainname member is a GNU extension. SEE ALSO uname(1), getdomainname(2), gethostname(2) Linux 0.99.11 1993-07-24 UNAME(2) --On Saturday, April 20, 2002 4:08 PM +0000 jbrown105 at speedymail.org wrote: > > On 0, Robert Craig <rds at RapidEuphoria.com> wrote: >> >> I've released Euphoria 2.3 for FreeBSD. >> You can get the Interpreter and the Euphoria To C Translator >> for FreeBSD from: >> http://www.rapideuphoria.com/v20.htm >> > > I don't have it myself, but this is still excellent news. > >> You first have to install Euphoria for Linux, >> then replace exu with the one compiled for FreeBSD. >> The two platforms are so similar, I decided to let >> platform() return 3 for both of them. Otherwise >> a lot of existing Linux code would break needlessly on FreeBSD. >> > > Then how do I tell the difference between a FreeBSD platform and a > Linux platform? Some Linux code (not a lot, but some) may not run on > FreeBSD. > Perhaps a unix_platform() function, which returns 1 on Linux and 2 on > FreeBSD and 0 on DOS/Windows? > > jbrown > > > -- > Please don't use http://fastmail.fm > (I like feeling special.) > > > >
4. Re: Euphoria for FreeBSD!
- Posted by Robert Craig <rds at RapidEuphoria.com> Apr 20, 2002
- 428 views
Ted Fines writes: > 'uname -s' shows OS name. On my Linux system, uname without any options, writes: Linux to standard output. On FreeBSD, uname writes: FreeBSD to standard output. The two systems are very similar. If your program needs to make a distinction, it's probably due to some library or executable file that might not exist on both systems, so you'd probably just test for the existence of that file. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
5. Re: Euphoria for FreeBSD!
- Posted by Martin Stachon <martin.stachon at worldonline.cz> Apr 21, 2002
- 446 views
Rob Craig writes: > You first have to install Euphoria for Linux, > then replace exu with the one compiled for FreeBSD. > The two platforms are so similar, I decided to let > platform() return 3 for both of them. Otherwise > a lot of existing Linux code would break needlessly on FreeBSD. As Eu ports for other platforms may follow, how about extending platform() like this : sequence s s = extended_platform() s[OSFAMILY] = "Unix","Dos","Windows","MacOS" s[OSNAME] = "Windows","FreeBSD","Linux","OpenBSD","AIX","MacOS","MacOS X"... s[OSVERSION] = xx.yy s[ARCHITECTURE] = "mc68000","i386","IA-64","PowerPC"... s[BYTE_ORDER] = BIG_ENDIAN,LITTLE_ENDIAN ... Martin Regards, Martin Stachon martin.stachon at worldonline.cz http://www.webpark.cz/stachon