linol/lwt/Lwt_sys/index.html
2024-05-08 15:15:46 +00:00

2 lines
5.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Lwt_sys (lwt.Lwt_sys)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 2.4.2"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> <a href="../index.html">lwt</a> &#x00BB; Lwt_sys</nav><header class="odoc-preamble"><h1>Module <code><span>Lwt_sys</span></code></h1><p>System informations.</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec exception anchored" id="exception-Not_available"><a href="#exception-Not_available" class="anchor"></a><code><span><span class="keyword">exception</span> </span><span><span class="exception">Not_available</span> <span class="keyword">of</span> string</span></code></div><div class="spec-doc"><p><code>Not_available(feature)</code> is an exception that may be raised when a feature is not available on the current system.</p></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-feature"><a href="#type-feature" class="anchor"></a><code><span><span class="keyword">type</span> feature</span><span> = </span><span>[ </span></code><ol><li id="type-feature.wait4" class="def variant constructor anchored"><a href="#type-feature.wait4" class="anchor"></a><code><span>| </span><span>`wait4</span></code></li><li id="type-feature.get_cpu" class="def variant constructor anchored"><a href="#type-feature.get_cpu" class="anchor"></a><code><span>| </span><span>`get_cpu</span></code></li><li id="type-feature.get_affinity" class="def variant constructor anchored"><a href="#type-feature.get_affinity" class="anchor"></a><code><span>| </span><span>`get_affinity</span></code></li><li id="type-feature.set_affinity" class="def variant constructor anchored"><a href="#type-feature.set_affinity" class="anchor"></a><code><span>| </span><span>`set_affinity</span></code></li><li id="type-feature.recv_msg" class="def variant constructor anchored"><a href="#type-feature.recv_msg" class="anchor"></a><code><span>| </span><span>`recv_msg</span></code></li><li id="type-feature.send_msg" class="def variant constructor anchored"><a href="#type-feature.send_msg" class="anchor"></a><code><span>| </span><span>`send_msg</span></code></li><li id="type-feature.fd_passing" class="def variant constructor anchored"><a href="#type-feature.fd_passing" class="anchor"></a><code><span>| </span><span>`fd_passing</span></code></li><li id="type-feature.get_credentials" class="def variant constructor anchored"><a href="#type-feature.get_credentials" class="anchor"></a><code><span>| </span><span>`get_credentials</span></code></li><li id="type-feature.mincore" class="def variant constructor anchored"><a href="#type-feature.mincore" class="anchor"></a><code><span>| </span><span>`mincore</span></code></li><li id="type-feature.madvise" class="def variant constructor anchored"><a href="#type-feature.madvise" class="anchor"></a><code><span>| </span><span>`madvise</span></code></li><li id="type-feature.fdatasync" class="def variant constructor anchored"><a href="#type-feature.fdatasync" class="anchor"></a><code><span>| </span><span>`fdatasync</span></code></li><li id="type-feature.libev" class="def variant constructor anchored"><a href="#type-feature.libev" class="anchor"></a><code><span>| </span><span>`libev</span></code></li></ol><code><span> ]</span></code></div><div class="spec-doc"><p>Features that can be tested.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-have"><a href="#val-have" class="anchor"></a><code><span><span class="keyword">val</span> have : <span><a href="#type-feature">feature</a> <span class="arrow">&#45;&gt;</span></span> bool</span></code></div><div class="spec-doc"><p>Test whether the given feature is available on the current system.</p></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-byte_order"><a href="#type-byte_order" class="anchor"></a><code><span><span class="keyword">type</span> byte_order</span><span> = </span></code><ol><li id="type-byte_order.Little_endian" class="def variant constructor anchored"><a href="#type-byte_order.Little_endian" class="anchor"></a><code><span>| </span><span><span class="constructor">Little_endian</span></span></code></li><li id="type-byte_order.Big_endian" class="def variant constructor anchored"><a href="#type-byte_order.Big_endian" class="anchor"></a><code><span>| </span><span><span class="constructor">Big_endian</span></span></code><div class="def-doc"><span class="comment-delim">(*</span><p>Type of byte order</p><span class="comment-delim">*)</span></div></li></ol></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-byte_order"><a href="#val-byte_order" class="anchor"></a><code><span><span class="keyword">val</span> byte_order : <a href="#type-byte_order">byte_order</a></span></code></div><div class="spec-doc"><p>The byte order used by the computer running the program.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-windows"><a href="#val-windows" class="anchor"></a><code><span><span class="keyword">val</span> windows : bool</span></code></div><div class="spec-doc"><ul class="at-tags"><li class="deprecated"><span class="at-tag">deprecated</span> <p>Use <code>Sys.win32</code>.</p></li></ul></div></div></div></body></html>