module: unix-portability author: Hannes Mehnert define function unix-lseek (fd :: , position :: , mode :: ) => (position :: ) raw-as-integer (%call-c-function ("lseek") (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(%call-c-function ("myerrno") () => (errnop :: ) () end) end; define constant $proc-path = "exe";