This file is indexed.

/usr/share/doc/libghc-unix-compat-doc/html/System-PosixCompat-Unistd.html is in libghc-unix-compat-doc 0.4.1.4-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>System.PosixCompat.Unistd</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_System-PosixCompat-Unistd.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/System-PosixCompat-Unistd.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">unix-compat-0.4.1.4: Portable POSIX-compatibility layer.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.PosixCompat.Unistd</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">System environment</a></li><li><a href="#g:2">Sleeping</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module makes the operations exported by <code>System.Posix.Unistd</code>
available on all platforms. On POSIX systems it re-exports operations from
<code>System.Posix.Unistd</code>, on other platforms it emulates the operations as far
as possible.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:SystemID">SystemID</a> :: * = <a href="#v:SystemID">SystemID</a> {<ul class="subs"><li><a href="#v:systemName">systemName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li><a href="#v:nodeName">nodeName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li><a href="#v:release">release</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li><a href="#v:version">version</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li><a href="#v:machine">machine</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li></ul>}</li><li class="src short"><a href="#v:getSystemID">getSystemID</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="System-PosixCompat-Unistd.html#t:SystemID">SystemID</a></li><li class="src short"><a href="#v:sleep">sleep</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:usleep">usleep</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:nanosleep">nanosleep</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</li></ul></div><div id="interface"><h1 id="g:1">System environment</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:SystemID" class="def">SystemID</a> :: *</p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SystemID" class="def">SystemID</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:systemName" class="def">systemName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:nodeName" class="def">nodeName</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:release" class="def">release</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:version" class="def">version</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:machine" class="def">machine</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div></div><div class="top"><p class="src"><a name="v:getSystemID" class="def">getSystemID</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="System-PosixCompat-Unistd.html#t:SystemID">SystemID</a></p></div><h1 id="g:2">Sleeping</h1><div class="top"><p class="src"><a name="v:sleep" class="def">sleep</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a></p><div class="doc"><p>Sleep for the specified duration (in seconds).  Returns the time remaining
 (if the sleep was interrupted by a signal, for example).</p><p><em>GHC Note</em>: <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Concurrent.html#v:threadDelay">threadDelay</a></code> is a better choice.  Since GHC
 uses signals for its internal clock, a call to <code><a href="System-PosixCompat-Unistd.html#v:sleep">sleep</a></code> will usually be
 interrupted immediately.  That makes <code><a href="System-PosixCompat-Unistd.html#v:sleep">sleep</a></code> unusable in a program compiled
 with GHC, unless the RTS timer is disabled (with <code>+RTS -V0</code>).  Furthermore,
 without the <code>-threaded</code> option, <code><a href="System-PosixCompat-Unistd.html#v:sleep">sleep</a></code> will block all other user threads.
 Even with the <code>-threaded</code> option, <code><a href="System-PosixCompat-Unistd.html#v:sleep">sleep</a></code> requires a full OS thread to
 itself.  <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Concurrent.html#v:threadDelay">threadDelay</a></code> has none of these shortcomings.</p></div></div><div class="top"><p class="src"><a name="v:usleep" class="def">usleep</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</p><div class="doc"><p>Sleep for the specified duration (in microseconds).</p><p><em>GHC Note</em>: <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Concurrent.html#v:threadDelay">threadDelay</a></code> is a better choice.
 Without the <code>-threaded</code> option, <code><a href="System-PosixCompat-Unistd.html#v:usleep">usleep</a></code> will block all other user
 threads.  Even with the <code>-threaded</code> option, <code><a href="System-PosixCompat-Unistd.html#v:usleep">usleep</a></code> requires a
 full OS thread to itself.  <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Control-Concurrent.html#v:threadDelay">threadDelay</a></code> has
 neither of these shortcomings.</p></div></div><div class="top"><p class="src"><a name="v:nanosleep" class="def">nanosleep</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Integer">Integer</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</p><div class="doc"><p>Sleep for the specified duration (in nanoseconds)</p><p><em>GHC Note</em>: the comment for <code><a href="System-PosixCompat-Unistd.html#v:usleep">usleep</a></code> also applies here.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>