module: unix-portability author: Hannes Mehnert define function unix-lseek (fd :: , position :: , mode :: ) => (position :: ) raw-as-integer (%call-c-function ("mylseek") (fd :: , position :: , mode :: ) => (result :: ) (integer-as-raw(fd), integer-as-raw(position), integer-as-raw(mode)) end) end; define function unix-errno () => (res :: ) raw-as-integer (primitive-c-signed-int-at (%call-c-function ("__error") () => (errnop :: ) () end, integer-as-raw(0), integer-as-raw(0))) end; define constant $proc-path = "file";