Thanks to visit codestin.com
Credit goes to github.com

Skip to content

clock_gettime error handling #61

@rumkeller

Description

@rumkeller

clock_gettime returns -1 to indicate an error. However, the return value appears to be ignored:

foreign import ccall unsafe clock_gettime :: #{type clockid_t} -> Ptr TimeSpec -> IO ()

This could be remedied by a call to throwErrnoIfMinus1_.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions