Hi Randall,
How do I get the value of errno after my call?
Now there is an 'errno' function (64 bits only).
For example:
: (in mist (read)) # Produce an error
!? (in mist (read))
mist -- Open error: No such file or directory
: (errno) # Get the error number
- 2
Then this
Hi Alex,
I tried to compile the 64 bit version on my macbook yesterday - no
joy. I think I have to create the /usr/bin/picolisp and
/usr/lib/picolisp links to the 32 bit version and then create the .s
files. I didn't get that far yet.
Thanks for the 'errno' call.
I'll try again this
Hi Randall,
I tried to compile the 64 bit version on my macbook yesterday - no
joy. I think I have to create the /usr/bin/picolisp and
/usr/lib/picolisp links to the 32 bit version and then create the .s
files. I didn't get that far yet.
This should not be necessary. The .s files are in the
Hi Alex,
I don't have the specifics in my head, but it complains that it cannot
find *darwin*.s files.
And when I just try as linux.*.s I get a lot of error messages. I
haven't looked deeper
yet, but the as may be tuned somehow for Mac - it is GNU as, but .
I'll take a closer look this
Hi Randall,
I don't have the specifics in my head, but it complains that it cannot
find *darwin*.s files.
Ah, yes, sorry! This makes sense. Makefile looks at the system.
I don't know how similar Darwin is to Linux. Perhaps we should start
with copying the file
src64/x86-64.linux.base.s -
Hi Alex,
I am trying to use 'native', am getting only 'NIL' as the return
value, where I would like to be getting a file descriptor number.
How do I get the value of errno after my call?
Cheers,
- Rand
--
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe
Hi Randall,
I am trying to use 'native', am getting only 'NIL' as the return
value, where I would like to be getting a file descriptor number.
If you supply the symbol 'I' as the ret argument to native,
(native fun lib ret val ..)
you'll get the int return value from the native function.