Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004919OCamlotherlibspublic2009-11-13 20:492016-12-07 16:40
Assigned To 
PlatformOSOS Version
Product Version3.11.0 
Target VersionFixed in Version 
Summary0004919: Missing code_of_unix_error() in C interface of Unix module
DescriptionThe C interface to the Unix module provides a unix_error_of_code() to convert C errno numbers into OCaml Unix.error. It does not provide the reverse function though. In libfuse I have callbacks that can return a C errno number. The libfuse OCaml bindings then need a way to convert a Unix.error into a C errno number before returning it to libfuse. The attached patch adds the missing code_of_unix_error() function for this.
Attached Files? file icon patch [^] (764 bytes) 2009-11-13 20:49 [Show Content]
patch file icon code_of_unix_error.patch [^] (2,035 bytes) 2013-07-30 21:58 [Show Content]
gz file icon code_of_unix_error.tar.gz [^] (1,221 bytes) 2013-07-30 21:59

- Relationships

-  Notes
vbmithr (reporter)
2013-07-30 22:00

I tested goswin's patch, it is working for me.
Attached: A completed version of the patch (win32's unixsupport.{c,h} patched as well), and a little test program for it.

- Issue History
Date Modified Username Field Change
2009-11-13 20:49 goswin New Issue
2009-11-13 20:49 goswin File Added: patch
2009-12-08 17:31 doligez Status new => acknowledged
2013-07-30 21:58 vbmithr File Added: code_of_unix_error.patch
2013-07-30 21:59 vbmithr File Added: code_of_unix_error.tar.gz
2013-07-30 22:00 vbmithr Note Added: 0010024
2013-09-04 18:16 doligez Tag Attached: patch
2016-12-07 16:40 shinwell Category OCaml general => OCaml standard library
2016-12-07 16:40 shinwell Category OCaml standard library => OCaml otherlibs
2017-02-23 16:42 doligez Category OCaml otherlibs => otherlibs

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker