I am trying to call localtime(3) through the `alien'
package in CMUCL
19c on FreeBSD 6.0-STABLE, as follows:
(def-alien-type nil
(struct tm
(tm-sec int)
(tm-min int)
(tm-hour int)
(tm-mday int)
(tm-mon int)
(tm-year int)
(tm-wday int)
(tm-yday int)
(tm-isdst int)
(tm-gmtoff long)
(tm-zone c-string)))
(def-alien-routine ("localtime" %localtime) (*
(struct tm))
(tp (* int)))
However, when I evaluate
(%localtime (sys:int-sap 0))
I get an "Error in function UNIX::SIGSEGV-HANDLER:
Segmentation
Violation at #x2810C728. [Condition of type
SIMPLE-ERROR]".
I would appreciate any pointers on what I am doing wrong. I
am not
yet subscribed to the list, so please mark me a copy of your
message.
TIA,
Raghavendra.
--
N. Raghavendra <raghu mri.ernet.in> | See
message headers for contact
Harish-Chandra Research Institute | and OpenPGP details.
|