mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
431 lines
27 KiB
HTML
431 lines
27 KiB
HTML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<!-- This file is generated by Nim. -->
|
|
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>std/linux</title>
|
|
|
|
<!-- Google fonts -->
|
|
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
|
|
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
|
|
|
|
<!-- Favicon -->
|
|
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
|
|
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
|
|
|
|
<!-- CSS -->
|
|
<link rel="stylesheet" type="text/css" href="nimdoc.out.css?v=2.3.1">
|
|
|
|
<!-- JS -->
|
|
<script type="text/javascript" src="dochack.js?v=2.3.1"></script>
|
|
</head>
|
|
<body>
|
|
<div class="document" id="documentId">
|
|
<div class="container">
|
|
<h1 class="title">std/linux</h1>
|
|
<div class="row">
|
|
<div class="three columns">
|
|
<div class="theme-select-wrapper">
|
|
<label for="theme-select">Theme: </label>
|
|
<select id="theme-select" onchange="setTheme(this.value)">
|
|
<option value="auto">🌗 Match OS</option>
|
|
<option value="dark">🌑 Dark</option>
|
|
<option value="light">🌕 Light</option>
|
|
</select>
|
|
</div>
|
|
<div id="global-links">
|
|
<ul class="simple-boot">
|
|
<li><a href="manual.html">Manual</a></li>
|
|
<li><a href="lib.html">Standard library</a></li>
|
|
<li> <a id="indexLink" href="theindex.html">Index</a></li>
|
|
<li><a href="compiler/theindex.html">Compiler docs</a></li>
|
|
<li><a href="https://nim-lang.github.io/fusion/theindex.html">Fusion docs</a></li>
|
|
<li><a href="https://nim-lang.github.io/Nim/">devel</a>, <a href="https://nim-lang.org/documentation.html">stable</a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="searchInputDiv">
|
|
Search: <input type="search" id="searchInput"
|
|
oninput="search()" />
|
|
</div>
|
|
|
|
<ul class="simple simple-toc" id="toc-list">
|
|
<li>
|
|
<a class="reference reference-toplevel" href="#6" id="56">Imports</a>
|
|
</li>
|
|
<li>
|
|
<details open>
|
|
<summary><a class="reference reference-toplevel" href="#10" id="60">Consts</a></summary>
|
|
<ul class="simple simple-toc-section">
|
|
<li><a class="reference" href="#CLONE_CHILD_CLEARTID" title="CLONE_CHILD_CLEARTID = 0x00200000'i32">CLONE_CHILD_CLEARTID</a></li>
|
|
<li><a class="reference" href="#CLONE_CHILD_SETTID" title="CLONE_CHILD_SETTID = 0x01000000'i32">CLONE_CHILD_SETTID</a></li>
|
|
<li><a class="reference" href="#CLONE_DETACHED" title="CLONE_DETACHED = 0x00400000'i32">CLONE_DETACHED</a></li>
|
|
<li><a class="reference" href="#CLONE_FILES" title="CLONE_FILES = 0x00000400'i32">CLONE_FILES</a></li>
|
|
<li><a class="reference" href="#CLONE_FS" title="CLONE_FS = 0x00000200'i32">CLONE_FS</a></li>
|
|
<li><a class="reference" href="#CLONE_IO" title="CLONE_IO = 0x80000000'i32">CLONE_IO</a></li>
|
|
<li><a class="reference" href="#CLONE_NEWCGROUP" title="CLONE_NEWCGROUP = 0x02000000'i32">CLONE_NEWCGROUP</a></li>
|
|
<li><a class="reference" href="#CLONE_NEWIPC" title="CLONE_NEWIPC = 0x08000000'i32">CLONE_NEWIPC</a></li>
|
|
<li><a class="reference" href="#CLONE_NEWNET" title="CLONE_NEWNET = 0x40000000'i32">CLONE_NEWNET</a></li>
|
|
<li><a class="reference" href="#CLONE_NEWNS" title="CLONE_NEWNS = 0x00020000'i32">CLONE_NEWNS</a></li>
|
|
<li><a class="reference" href="#CLONE_NEWPID" title="CLONE_NEWPID = 0x20000000'i32">CLONE_NEWPID</a></li>
|
|
<li><a class="reference" href="#CLONE_NEWUSER" title="CLONE_NEWUSER = 0x10000000'i32">CLONE_NEWUSER</a></li>
|
|
<li><a class="reference" href="#CLONE_NEWUTS" title="CLONE_NEWUTS = 0x04000000'i32">CLONE_NEWUTS</a></li>
|
|
<li><a class="reference" href="#CLONE_PARENT" title="CLONE_PARENT = 0x00008000'i32">CLONE_PARENT</a></li>
|
|
<li><a class="reference" href="#CLONE_PARENT_SETTID" title="CLONE_PARENT_SETTID = 0x00100000'i32">CLONE_PARENT_SETTID</a></li>
|
|
<li><a class="reference" href="#CLONE_PIDFD" title="CLONE_PIDFD = 0x00001000'i32">CLONE_PIDFD</a></li>
|
|
<li><a class="reference" href="#CLONE_PTRACE" title="CLONE_PTRACE = 0x00002000'i32">CLONE_PTRACE</a></li>
|
|
<li><a class="reference" href="#CLONE_SETTLS" title="CLONE_SETTLS = 0x00080000'i32">CLONE_SETTLS</a></li>
|
|
<li><a class="reference" href="#CLONE_SIGHAND" title="CLONE_SIGHAND = 0x00000800'i32">CLONE_SIGHAND</a></li>
|
|
<li><a class="reference" href="#CLONE_SYSVSEM" title="CLONE_SYSVSEM = 0x00040000'i32">CLONE_SYSVSEM</a></li>
|
|
<li><a class="reference" href="#CLONE_THREAD" title="CLONE_THREAD = 0x00010000'i32">CLONE_THREAD</a></li>
|
|
<li><a class="reference" href="#CLONE_UNTRACED" title="CLONE_UNTRACED = 0x00800000'i32">CLONE_UNTRACED</a></li>
|
|
<li><a class="reference" href="#CLONE_VFORK" title="CLONE_VFORK = 0x00004000'i32">CLONE_VFORK</a></li>
|
|
<li><a class="reference" href="#CLONE_VM" title="CLONE_VM = 0x00000100'i32">CLONE_VM</a></li>
|
|
<li><a class="reference" href="#CSIGNAL" title="CSIGNAL = 0x000000FF'i32">CSIGNAL</a></li>
|
|
|
|
</ul>
|
|
</details>
|
|
</li>
|
|
<li>
|
|
<details open>
|
|
<summary><a class="reference reference-toplevel" href="#12" id="62">Procs</a></summary>
|
|
<ul class="simple simple-toc-section">
|
|
<ul class="simple nested-toc-section">clone
|
|
<li><a class="reference" href="#clone%2Cpointer%2Cpointer%2Ccint%2Cpointer%2Cptr.Pid%2Cpointer%2Cptr.Pid" title="clone(fn: pointer; child_stack: pointer; flags: cint; arg: pointer;
|
|
ptid: ptr Pid; tls: pointer; ctid: ptr Pid): cint">clone(fn: pointer; child_stack: pointer; flags: cint; arg: pointer;
|
|
ptid: ptr Pid; tls: pointer; ctid: ptr Pid): cint</a></li>
|
|
|
|
</ul>
|
|
<ul class="simple nested-toc-section">pipe2
|
|
<li><a class="reference" href="#pipe2%2Carray%5B%2Ccint%5D%2Ccint" title="pipe2(a: array[0 .. 1, cint]; flags: cint): cint">pipe2(a: array[0 .. 1, cint]; flags: cint): cint</a></li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
</details>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
<div class="nine columns" id="content">
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L1" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L1" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
<div id="tocRoot"></div>
|
|
|
|
<p class="module-desc">Flags of <tt class="docutils literal"><span class="pre"><span class="Identifier">clone</span></span></tt> syscall. See <a class="reference external" href="https://man7.org/linux/man-pages/man2/clone.2.html">clone syscall manual</a> for more information.</p>
|
|
<div class="section" id="6">
|
|
<h1><a class="toc-backref" href="#6">Imports</a></h1>
|
|
<dl class="item">
|
|
<a class="reference external" href="posix.html">posix</a>
|
|
</dl>
|
|
</div>
|
|
<div class="section" id="10">
|
|
<h1><a class="toc-backref" href="#10">Consts</a></h1>
|
|
<dl class="item">
|
|
<div id="CLONE_CHILD_CLEARTID">
|
|
<dt><pre><a href="linux.html#CLONE_CHILD_CLEARTID"><span class="Identifier">CLONE_CHILD_CLEARTID</span></a> <span class="Other">=</span> <span class="DecNumber">0x00200000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L21" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L21" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_CHILD_SETTID">
|
|
<dt><pre><a href="linux.html#CLONE_CHILD_SETTID"><span class="Identifier">CLONE_CHILD_SETTID</span></a> <span class="Other">=</span> <span class="DecNumber">0x01000000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L24" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L24" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_DETACHED">
|
|
<dt><pre><a href="linux.html#CLONE_DETACHED"><span class="Identifier">CLONE_DETACHED</span></a> <span class="Other">=</span> <span class="DecNumber">0x00400000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L22" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L22" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_FILES">
|
|
<dt><pre><a href="linux.html#CLONE_FILES"><span class="Identifier">CLONE_FILES</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000400'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L10" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L10" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_FS">
|
|
<dt><pre><a href="linux.html#CLONE_FS"><span class="Identifier">CLONE_FS</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000200'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L9" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L9" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_IO">
|
|
<dt><pre><a href="linux.html#CLONE_IO"><span class="Identifier">CLONE_IO</span></a> <span class="Other">=</span> <span class="DecNumber">0x80000000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L31" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L31" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_NEWCGROUP">
|
|
<dt><pre><a href="linux.html#CLONE_NEWCGROUP"><span class="Identifier">CLONE_NEWCGROUP</span></a> <span class="Other">=</span> <span class="DecNumber">0x02000000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L25" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L25" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_NEWIPC">
|
|
<dt><pre><a href="linux.html#CLONE_NEWIPC"><span class="Identifier">CLONE_NEWIPC</span></a> <span class="Other">=</span> <span class="DecNumber">0x08000000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L27" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L27" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_NEWNET">
|
|
<dt><pre><a href="linux.html#CLONE_NEWNET"><span class="Identifier">CLONE_NEWNET</span></a> <span class="Other">=</span> <span class="DecNumber">0x40000000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L30" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L30" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_NEWNS">
|
|
<dt><pre><a href="linux.html#CLONE_NEWNS"><span class="Identifier">CLONE_NEWNS</span></a> <span class="Other">=</span> <span class="DecNumber">0x00020000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L17" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L17" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_NEWPID">
|
|
<dt><pre><a href="linux.html#CLONE_NEWPID"><span class="Identifier">CLONE_NEWPID</span></a> <span class="Other">=</span> <span class="DecNumber">0x20000000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L29" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L29" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_NEWUSER">
|
|
<dt><pre><a href="linux.html#CLONE_NEWUSER"><span class="Identifier">CLONE_NEWUSER</span></a> <span class="Other">=</span> <span class="DecNumber">0x10000000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L28" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L28" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_NEWUTS">
|
|
<dt><pre><a href="linux.html#CLONE_NEWUTS"><span class="Identifier">CLONE_NEWUTS</span></a> <span class="Other">=</span> <span class="DecNumber">0x04000000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L26" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L26" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_PARENT">
|
|
<dt><pre><a href="linux.html#CLONE_PARENT"><span class="Identifier">CLONE_PARENT</span></a> <span class="Other">=</span> <span class="DecNumber">0x00008000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L15" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L15" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_PARENT_SETTID">
|
|
<dt><pre><a href="linux.html#CLONE_PARENT_SETTID"><span class="Identifier">CLONE_PARENT_SETTID</span></a> <span class="Other">=</span> <span class="DecNumber">0x00100000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L20" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L20" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_PIDFD">
|
|
<dt><pre><a href="linux.html#CLONE_PIDFD"><span class="Identifier">CLONE_PIDFD</span></a> <span class="Other">=</span> <span class="DecNumber">0x00001000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L12" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L12" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_PTRACE">
|
|
<dt><pre><a href="linux.html#CLONE_PTRACE"><span class="Identifier">CLONE_PTRACE</span></a> <span class="Other">=</span> <span class="DecNumber">0x00002000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L13" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L13" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_SETTLS">
|
|
<dt><pre><a href="linux.html#CLONE_SETTLS"><span class="Identifier">CLONE_SETTLS</span></a> <span class="Other">=</span> <span class="DecNumber">0x00080000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L19" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L19" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_SIGHAND">
|
|
<dt><pre><a href="linux.html#CLONE_SIGHAND"><span class="Identifier">CLONE_SIGHAND</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000800'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L11" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L11" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_SYSVSEM">
|
|
<dt><pre><a href="linux.html#CLONE_SYSVSEM"><span class="Identifier">CLONE_SYSVSEM</span></a> <span class="Other">=</span> <span class="DecNumber">0x00040000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L18" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L18" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_THREAD">
|
|
<dt><pre><a href="linux.html#CLONE_THREAD"><span class="Identifier">CLONE_THREAD</span></a> <span class="Other">=</span> <span class="DecNumber">0x00010000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L16" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L16" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_UNTRACED">
|
|
<dt><pre><a href="linux.html#CLONE_UNTRACED"><span class="Identifier">CLONE_UNTRACED</span></a> <span class="Other">=</span> <span class="DecNumber">0x00800000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L23" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L23" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_VFORK">
|
|
<dt><pre><a href="linux.html#CLONE_VFORK"><span class="Identifier">CLONE_VFORK</span></a> <span class="Other">=</span> <span class="DecNumber">0x00004000'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L14" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L14" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CLONE_VM">
|
|
<dt><pre><a href="linux.html#CLONE_VM"><span class="Identifier">CLONE_VM</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000100'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L8" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L8" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
<div id="CSIGNAL">
|
|
<dt><pre><a href="linux.html#CSIGNAL"><span class="Identifier">CSIGNAL</span></a> <span class="Other">=</span> <span class="DecNumber">0x000000FF'i32</span></pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L7" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L7" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
|
|
</dl>
|
|
</div>
|
|
<div class="section" id="12">
|
|
<h1><a class="toc-backref" href="#12">Procs</a></h1>
|
|
<dl class="item">
|
|
<div id="clone-procs-all">
|
|
<div id="clone,pointer,pointer,cint,pointer,ptr.Pid,pointer,ptr.Pid">
|
|
<dt><pre><span class="Keyword">proc</span> <a href="#clone%2Cpointer%2Cpointer%2Ccint%2Cpointer%2Cptr.Pid%2Cpointer%2Cptr.Pid"><span class="Identifier">clone</span></a><span class="Other">(</span><span class="Identifier">fn</span><span class="Other">:</span> <a href="system.html#pointer"><span class="Identifier">pointer</span></a><span class="Other">;</span> <span class="Identifier">child_stack</span><span class="Other">:</span> <a href="system.html#pointer"><span class="Identifier">pointer</span></a><span class="Other">;</span> <span class="Identifier">flags</span><span class="Other">:</span> <a href="ctypes.html#cint"><span class="Identifier">cint</span></a><span class="Other">;</span> <span class="Identifier">arg</span><span class="Other">:</span> <a href="system.html#pointer"><span class="Identifier">pointer</span></a><span class="Other">;</span>
|
|
<span class="Identifier">ptid</span><span class="Other">:</span> <span class="Keyword">ptr</span> <a href="posix.html#Pid"><span class="Identifier">Pid</span></a><span class="Other">;</span> <span class="Identifier">tls</span><span class="Other">:</span> <a href="system.html#pointer"><span class="Identifier">pointer</span></a><span class="Other">;</span> <span class="Identifier">ctid</span><span class="Other">:</span> <span class="Keyword">ptr</span> <a href="posix.html#Pid"><span class="Identifier">Pid</span></a><span class="Other">)</span><span class="Other">:</span> <a href="ctypes.html#cint"><span class="Identifier">cint</span></a> {.<span class="Identifier">importc</span><span class="Other">,</span>
|
|
<span class="Identifier">header</span><span class="Other">:</span> <span class="StringLit">"<sched.h>"</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L35" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L35" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
|
|
</div>
|
|
<div id="pipe2-procs-all">
|
|
<div id="pipe2,array[,cint],cint">
|
|
<dt><pre><span class="Keyword">proc</span> <a href="#pipe2%2Carray%5B%2Ccint%5D%2Ccint"><span class="Identifier">pipe2</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">:</span> <a href="system.html#array"><span class="Identifier">array</span></a><span class="Other">[</span><span class="DecNumber">0</span> <span class="Operator">..</span> <span class="DecNumber">1</span><span class="Other">,</span> <a href="ctypes.html#cint"><span class="Identifier">cint</span></a><span class="Other">]</span><span class="Other">;</span> <span class="Identifier">flags</span><span class="Other">:</span> <a href="ctypes.html#cint"><span class="Identifier">cint</span></a><span class="Other">)</span><span class="Other">:</span> <a href="ctypes.html#cint"><span class="Identifier">cint</span></a> {.<span class="Identifier">importc</span><span class="Other">,</span>
|
|
<span class="Identifier">header</span><span class="Other">:</span> <span class="StringLit">"<unistd.h>"</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
|
|
<dd>
|
|
|
|
|
|
<a href="https://github.com/nim-lang/Nim/tree/devel/lib/posix/linux.nim#L39" class="link-seesrc" target="_blank">Source</a>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/lib/posix/linux.nim#L39" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</dd>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</dl>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="twelve-columns footer">
|
|
<span class="nim-sprite"></span>
|
|
<br>
|
|
<small style="color: var(--hint);">Made with Nim. Generated: 2025-12-28 15:55:35 UTC</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script defer data-domain="nim-lang.org" src="https://plausible.io/js/plausible.js"></script>
|
|
|
|
</body>
|
|
</html>
|