package posix-errno
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
POSIX errno handling and Unix error conversion
Install
dune-project
Dependency
Authors
Maintainers
Sources
v4.0.2.tar.gz
md5=2e05f3e890206138c4ebd09878359a2f
sha512=79a786c299b5d9f7f5ff0c3cf289539e8ea257b2068f75cd9faca9450679e5cd7de6b0fc5b77c9ddbbb5857d4f64119837a61a22d277e6e2a8ab4b3c4d5911c0
doc/src/posix-errno.stubs/posix_errno_stubs.ml.html
Source file posix_errno_stubs.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24open Ctypes module Def (F : Cstubs.FOREIGN) = struct open F (* Errno access functions *) let posix_errno_get_errno = foreign "posix_errno_get_errno" (void @-> returning nativeint) let posix_errno_set_errno = foreign "posix_errno_set_errno" (nativeint @-> returning void) (* strerror function - returns OCaml string (cross-platform, not thread-safe) *) let strerror = foreign "strerror" (nativeint @-> returning string) (* strerror_r function - POSIX version returns int (0 on success) *) (* Raises Invalid_argument on Windows *) let strerror_r = foreign "posix_errno_strerror_r" (nativeint @-> ptr char @-> int @-> returning nativeint) (* strlen function to get string length *) let strlen = foreign "strlen" (ptr char @-> returning int) end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>