Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

OCaml's int is not large enough to hold errno values on all platforms (e.g. hurd-i386) #11

Closed
yallop opened this issue Jun 24, 2016 · 2 comments

Comments

@yallop
Copy link
Collaborator

yallop commented Jun 24, 2016

See yallop/ocaml-ctypes#409

@dsheets
Copy link
Owner

dsheets commented Jul 6, 2016

How very... special. Would an int32 work? nativeint? This is annoying...

@yallop
Copy link
Collaborator Author

yallop commented Jul 7, 2016

Ctypes HEAD has a new sint type that matches the native integer type of the platform.

Using sint means depending on ctypes, unfortunately. However, since errno is a C type, perhaps that's not entirely unreasonable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants