11cb0ef41Sopenharmony_ci<!DOCTYPE html> 21cb0ef41Sopenharmony_ci<html lang="en"> 31cb0ef41Sopenharmony_ci<head> 41cb0ef41Sopenharmony_ci <meta charset="utf-8"> 51cb0ef41Sopenharmony_ci <meta name="viewport" content="width=device-width"> 61cb0ef41Sopenharmony_ci <meta name="nodejs.org:node-version" content="v18.20.1"> 71cb0ef41Sopenharmony_ci <title>OS | Node.js v18.20.1 Documentation</title> 81cb0ef41Sopenharmony_ci <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic&display=fallback"> 91cb0ef41Sopenharmony_ci <link rel="stylesheet" href="assets/style.css"> 101cb0ef41Sopenharmony_ci <link rel="stylesheet" href="assets/hljs.css"> 111cb0ef41Sopenharmony_ci <link rel="canonical" href="https://nodejs.org/api/os.html"> 121cb0ef41Sopenharmony_ci <script async defer src="assets/api.js" type="text/javascript"></script> 131cb0ef41Sopenharmony_ci 141cb0ef41Sopenharmony_ci</head> 151cb0ef41Sopenharmony_ci<body class="alt apidoc" id="api-section-os"> 161cb0ef41Sopenharmony_ci <div id="content" class="clearfix"> 171cb0ef41Sopenharmony_ci <div id="column2" class="interior"> 181cb0ef41Sopenharmony_ci <div id="intro" class="interior"> 191cb0ef41Sopenharmony_ci <a href="/" title="Go back to the home page"> 201cb0ef41Sopenharmony_ci Node.js 211cb0ef41Sopenharmony_ci </a> 221cb0ef41Sopenharmony_ci </div> 231cb0ef41Sopenharmony_ci <ul> 241cb0ef41Sopenharmony_ci<li><a href="documentation.html" class="nav-documentation">About this documentation</a></li> 251cb0ef41Sopenharmony_ci<li><a href="synopsis.html" class="nav-synopsis">Usage and example</a></li> 261cb0ef41Sopenharmony_ci</ul> 271cb0ef41Sopenharmony_ci<hr class="line"> 281cb0ef41Sopenharmony_ci<ul> 291cb0ef41Sopenharmony_ci<li><a href="assert.html" class="nav-assert">Assertion testing</a></li> 301cb0ef41Sopenharmony_ci<li><a href="async_context.html" class="nav-async_context">Asynchronous context tracking</a></li> 311cb0ef41Sopenharmony_ci<li><a href="async_hooks.html" class="nav-async_hooks">Async hooks</a></li> 321cb0ef41Sopenharmony_ci<li><a href="buffer.html" class="nav-buffer">Buffer</a></li> 331cb0ef41Sopenharmony_ci<li><a href="addons.html" class="nav-addons">C++ addons</a></li> 341cb0ef41Sopenharmony_ci<li><a href="n-api.html" class="nav-n-api">C/C++ addons with Node-API</a></li> 351cb0ef41Sopenharmony_ci<li><a href="embedding.html" class="nav-embedding">C++ embedder API</a></li> 361cb0ef41Sopenharmony_ci<li><a href="child_process.html" class="nav-child_process">Child processes</a></li> 371cb0ef41Sopenharmony_ci<li><a href="cluster.html" class="nav-cluster">Cluster</a></li> 381cb0ef41Sopenharmony_ci<li><a href="cli.html" class="nav-cli">Command-line options</a></li> 391cb0ef41Sopenharmony_ci<li><a href="console.html" class="nav-console">Console</a></li> 401cb0ef41Sopenharmony_ci<li><a href="corepack.html" class="nav-corepack">Corepack</a></li> 411cb0ef41Sopenharmony_ci<li><a href="crypto.html" class="nav-crypto">Crypto</a></li> 421cb0ef41Sopenharmony_ci<li><a href="debugger.html" class="nav-debugger">Debugger</a></li> 431cb0ef41Sopenharmony_ci<li><a href="deprecations.html" class="nav-deprecations">Deprecated APIs</a></li> 441cb0ef41Sopenharmony_ci<li><a href="diagnostics_channel.html" class="nav-diagnostics_channel">Diagnostics Channel</a></li> 451cb0ef41Sopenharmony_ci<li><a href="dns.html" class="nav-dns">DNS</a></li> 461cb0ef41Sopenharmony_ci<li><a href="domain.html" class="nav-domain">Domain</a></li> 471cb0ef41Sopenharmony_ci<li><a href="errors.html" class="nav-errors">Errors</a></li> 481cb0ef41Sopenharmony_ci<li><a href="events.html" class="nav-events">Events</a></li> 491cb0ef41Sopenharmony_ci<li><a href="fs.html" class="nav-fs">File system</a></li> 501cb0ef41Sopenharmony_ci<li><a href="globals.html" class="nav-globals">Globals</a></li> 511cb0ef41Sopenharmony_ci<li><a href="http.html" class="nav-http">HTTP</a></li> 521cb0ef41Sopenharmony_ci<li><a href="http2.html" class="nav-http2">HTTP/2</a></li> 531cb0ef41Sopenharmony_ci<li><a href="https.html" class="nav-https">HTTPS</a></li> 541cb0ef41Sopenharmony_ci<li><a href="inspector.html" class="nav-inspector">Inspector</a></li> 551cb0ef41Sopenharmony_ci<li><a href="intl.html" class="nav-intl">Internationalization</a></li> 561cb0ef41Sopenharmony_ci<li><a href="modules.html" class="nav-modules">Modules: CommonJS modules</a></li> 571cb0ef41Sopenharmony_ci<li><a href="esm.html" class="nav-esm">Modules: ECMAScript modules</a></li> 581cb0ef41Sopenharmony_ci<li><a href="module.html" class="nav-module">Modules: <code>node:module</code> API</a></li> 591cb0ef41Sopenharmony_ci<li><a href="packages.html" class="nav-packages">Modules: Packages</a></li> 601cb0ef41Sopenharmony_ci<li><a href="net.html" class="nav-net">Net</a></li> 611cb0ef41Sopenharmony_ci<li><a href="os.html" class="nav-os active">OS</a></li> 621cb0ef41Sopenharmony_ci<li><a href="path.html" class="nav-path">Path</a></li> 631cb0ef41Sopenharmony_ci<li><a href="perf_hooks.html" class="nav-perf_hooks">Performance hooks</a></li> 641cb0ef41Sopenharmony_ci<li><a href="permissions.html" class="nav-permissions">Permissions</a></li> 651cb0ef41Sopenharmony_ci<li><a href="process.html" class="nav-process">Process</a></li> 661cb0ef41Sopenharmony_ci<li><a href="punycode.html" class="nav-punycode">Punycode</a></li> 671cb0ef41Sopenharmony_ci<li><a href="querystring.html" class="nav-querystring">Query strings</a></li> 681cb0ef41Sopenharmony_ci<li><a href="readline.html" class="nav-readline">Readline</a></li> 691cb0ef41Sopenharmony_ci<li><a href="repl.html" class="nav-repl">REPL</a></li> 701cb0ef41Sopenharmony_ci<li><a href="report.html" class="nav-report">Report</a></li> 711cb0ef41Sopenharmony_ci<li><a href="single-executable-applications.html" class="nav-single-executable-applications">Single executable applications</a></li> 721cb0ef41Sopenharmony_ci<li><a href="stream.html" class="nav-stream">Stream</a></li> 731cb0ef41Sopenharmony_ci<li><a href="string_decoder.html" class="nav-string_decoder">String decoder</a></li> 741cb0ef41Sopenharmony_ci<li><a href="test.html" class="nav-test">Test runner</a></li> 751cb0ef41Sopenharmony_ci<li><a href="timers.html" class="nav-timers">Timers</a></li> 761cb0ef41Sopenharmony_ci<li><a href="tls.html" class="nav-tls">TLS/SSL</a></li> 771cb0ef41Sopenharmony_ci<li><a href="tracing.html" class="nav-tracing">Trace events</a></li> 781cb0ef41Sopenharmony_ci<li><a href="tty.html" class="nav-tty">TTY</a></li> 791cb0ef41Sopenharmony_ci<li><a href="dgram.html" class="nav-dgram">UDP/datagram</a></li> 801cb0ef41Sopenharmony_ci<li><a href="url.html" class="nav-url">URL</a></li> 811cb0ef41Sopenharmony_ci<li><a href="util.html" class="nav-util">Utilities</a></li> 821cb0ef41Sopenharmony_ci<li><a href="v8.html" class="nav-v8">V8</a></li> 831cb0ef41Sopenharmony_ci<li><a href="vm.html" class="nav-vm">VM</a></li> 841cb0ef41Sopenharmony_ci<li><a href="wasi.html" class="nav-wasi">WASI</a></li> 851cb0ef41Sopenharmony_ci<li><a href="webcrypto.html" class="nav-webcrypto">Web Crypto API</a></li> 861cb0ef41Sopenharmony_ci<li><a href="webstreams.html" class="nav-webstreams">Web Streams API</a></li> 871cb0ef41Sopenharmony_ci<li><a href="worker_threads.html" class="nav-worker_threads">Worker threads</a></li> 881cb0ef41Sopenharmony_ci<li><a href="zlib.html" class="nav-zlib">Zlib</a></li> 891cb0ef41Sopenharmony_ci</ul> 901cb0ef41Sopenharmony_ci<hr class="line"> 911cb0ef41Sopenharmony_ci<ul> 921cb0ef41Sopenharmony_ci<li><a href="https://github.com/nodejs/node" class="nav-https-github-com-nodejs-node">Code repository and issue tracker</a></li> 931cb0ef41Sopenharmony_ci</ul> 941cb0ef41Sopenharmony_ci </div> 951cb0ef41Sopenharmony_ci 961cb0ef41Sopenharmony_ci <div id="column1" data-id="os" class="interior"> 971cb0ef41Sopenharmony_ci <header class="header"> 981cb0ef41Sopenharmony_ci <div class="header-container"> 991cb0ef41Sopenharmony_ci <h1>Node.js v18.20.1 documentation</h1> 1001cb0ef41Sopenharmony_ci <button class="theme-toggle-btn" id="theme-toggle-btn" title="Toggle dark mode/light mode" aria-label="Toggle dark mode/light mode" hidden> 1011cb0ef41Sopenharmony_ci <svg xmlns="http://www.w3.org/2000/svg" class="icon dark-icon" height="24" width="24"> 1021cb0ef41Sopenharmony_ci <path fill="none" d="M0 0h24v24H0z" /> 1031cb0ef41Sopenharmony_ci <path d="M11.1 12.08c-2.33-4.51-.5-8.48.53-10.07C6.27 2.2 1.98 6.59 1.98 12c0 .14.02.28.02.42.62-.27 1.29-.42 2-.42 1.66 0 3.18.83 4.1 2.15A4.01 4.01 0 0111 18c0 1.52-.87 2.83-2.12 3.51.98.32 2.03.5 3.11.5 3.5 0 6.58-1.8 8.37-4.52-2.36.23-6.98-.97-9.26-5.41z"/> 1041cb0ef41Sopenharmony_ci <path d="M7 16h-.18C6.4 14.84 5.3 14 4 14c-1.66 0-3 1.34-3 3s1.34 3 3 3h3c1.1 0 2-.9 2-2s-.9-2-2-2z"/> 1051cb0ef41Sopenharmony_ci </svg> 1061cb0ef41Sopenharmony_ci <svg xmlns="http://www.w3.org/2000/svg" class="icon light-icon" height="24" width="24"> 1071cb0ef41Sopenharmony_ci <path d="M0 0h24v24H0z" fill="none" /> 1081cb0ef41Sopenharmony_ci <path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7l1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"/> 1091cb0ef41Sopenharmony_ci </svg> 1101cb0ef41Sopenharmony_ci </button> 1111cb0ef41Sopenharmony_ci </div> 1121cb0ef41Sopenharmony_ci <div id="gtoc"> 1131cb0ef41Sopenharmony_ci <ul> 1141cb0ef41Sopenharmony_ci <li class="pinned-header">Node.js v18.20.1</li> 1151cb0ef41Sopenharmony_ci 1161cb0ef41Sopenharmony_ci <li class="picker-header"> 1171cb0ef41Sopenharmony_ci <a href="#"> 1181cb0ef41Sopenharmony_ci <span class="collapsed-arrow">►</span><span class="expanded-arrow">▼</span> 1191cb0ef41Sopenharmony_ci Table of contents 1201cb0ef41Sopenharmony_ci </a> 1211cb0ef41Sopenharmony_ci 1221cb0ef41Sopenharmony_ci <div class="picker"><div class="toc"><ul> 1231cb0ef41Sopenharmony_ci<li><span class="stability_2"><a href="#os">OS</a></span> 1241cb0ef41Sopenharmony_ci<ul> 1251cb0ef41Sopenharmony_ci<li><a href="#oseol"><code>os.EOL</code></a></li> 1261cb0ef41Sopenharmony_ci<li><a href="#osavailableparallelism"><code>os.availableParallelism()</code></a></li> 1271cb0ef41Sopenharmony_ci<li><a href="#osarch"><code>os.arch()</code></a></li> 1281cb0ef41Sopenharmony_ci<li><a href="#osconstants"><code>os.constants</code></a></li> 1291cb0ef41Sopenharmony_ci<li><a href="#oscpus"><code>os.cpus()</code></a></li> 1301cb0ef41Sopenharmony_ci<li><a href="#osdevnull"><code>os.devNull</code></a></li> 1311cb0ef41Sopenharmony_ci<li><a href="#osendianness"><code>os.endianness()</code></a></li> 1321cb0ef41Sopenharmony_ci<li><a href="#osfreemem"><code>os.freemem()</code></a></li> 1331cb0ef41Sopenharmony_ci<li><a href="#osgetprioritypid"><code>os.getPriority([pid])</code></a></li> 1341cb0ef41Sopenharmony_ci<li><a href="#oshomedir"><code>os.homedir()</code></a></li> 1351cb0ef41Sopenharmony_ci<li><a href="#oshostname"><code>os.hostname()</code></a></li> 1361cb0ef41Sopenharmony_ci<li><a href="#osloadavg"><code>os.loadavg()</code></a></li> 1371cb0ef41Sopenharmony_ci<li><a href="#osmachine"><code>os.machine()</code></a></li> 1381cb0ef41Sopenharmony_ci<li><a href="#osnetworkinterfaces"><code>os.networkInterfaces()</code></a></li> 1391cb0ef41Sopenharmony_ci<li><a href="#osplatform"><code>os.platform()</code></a></li> 1401cb0ef41Sopenharmony_ci<li><a href="#osrelease"><code>os.release()</code></a></li> 1411cb0ef41Sopenharmony_ci<li><a href="#ossetprioritypid-priority"><code>os.setPriority([pid, ]priority)</code></a></li> 1421cb0ef41Sopenharmony_ci<li><a href="#ostmpdir"><code>os.tmpdir()</code></a></li> 1431cb0ef41Sopenharmony_ci<li><a href="#ostotalmem"><code>os.totalmem()</code></a></li> 1441cb0ef41Sopenharmony_ci<li><a href="#ostype"><code>os.type()</code></a></li> 1451cb0ef41Sopenharmony_ci<li><a href="#osuptime"><code>os.uptime()</code></a></li> 1461cb0ef41Sopenharmony_ci<li><a href="#osuserinfooptions"><code>os.userInfo([options])</code></a></li> 1471cb0ef41Sopenharmony_ci<li><a href="#osversion"><code>os.version()</code></a></li> 1481cb0ef41Sopenharmony_ci<li><a href="#os-constants">OS constants</a> 1491cb0ef41Sopenharmony_ci<ul> 1501cb0ef41Sopenharmony_ci<li><a href="#signal-constants">Signal constants</a></li> 1511cb0ef41Sopenharmony_ci<li><a href="#error-constants">Error constants</a> 1521cb0ef41Sopenharmony_ci<ul> 1531cb0ef41Sopenharmony_ci<li><a href="#posix-error-constants">POSIX error constants</a></li> 1541cb0ef41Sopenharmony_ci<li><a href="#windows-specific-error-constants">Windows-specific error constants</a></li> 1551cb0ef41Sopenharmony_ci</ul> 1561cb0ef41Sopenharmony_ci</li> 1571cb0ef41Sopenharmony_ci<li><a href="#dlopen-constants">dlopen constants</a></li> 1581cb0ef41Sopenharmony_ci<li><a href="#priority-constants">Priority constants</a></li> 1591cb0ef41Sopenharmony_ci<li><a href="#libuv-constants">libuv constants</a></li> 1601cb0ef41Sopenharmony_ci</ul> 1611cb0ef41Sopenharmony_ci</li> 1621cb0ef41Sopenharmony_ci</ul> 1631cb0ef41Sopenharmony_ci</li> 1641cb0ef41Sopenharmony_ci</ul></div></div> 1651cb0ef41Sopenharmony_ci </li> 1661cb0ef41Sopenharmony_ci 1671cb0ef41Sopenharmony_ci 1681cb0ef41Sopenharmony_ci <li class="picker-header"> 1691cb0ef41Sopenharmony_ci <a href="#"> 1701cb0ef41Sopenharmony_ci <span class="collapsed-arrow">►</span><span class="expanded-arrow">▼</span> 1711cb0ef41Sopenharmony_ci Index 1721cb0ef41Sopenharmony_ci </a> 1731cb0ef41Sopenharmony_ci 1741cb0ef41Sopenharmony_ci <div class="picker"><ul> 1751cb0ef41Sopenharmony_ci<li><a href="documentation.html" class="nav-documentation">About this documentation</a></li> 1761cb0ef41Sopenharmony_ci<li><a href="synopsis.html" class="nav-synopsis">Usage and example</a></li> 1771cb0ef41Sopenharmony_ci 1781cb0ef41Sopenharmony_ci <li> 1791cb0ef41Sopenharmony_ci <a href="index.html">Index</a> 1801cb0ef41Sopenharmony_ci </li> 1811cb0ef41Sopenharmony_ci </ul> 1821cb0ef41Sopenharmony_ci 1831cb0ef41Sopenharmony_ci<hr class="line"> 1841cb0ef41Sopenharmony_ci<ul> 1851cb0ef41Sopenharmony_ci<li><a href="assert.html" class="nav-assert">Assertion testing</a></li> 1861cb0ef41Sopenharmony_ci<li><a href="async_context.html" class="nav-async_context">Asynchronous context tracking</a></li> 1871cb0ef41Sopenharmony_ci<li><a href="async_hooks.html" class="nav-async_hooks">Async hooks</a></li> 1881cb0ef41Sopenharmony_ci<li><a href="buffer.html" class="nav-buffer">Buffer</a></li> 1891cb0ef41Sopenharmony_ci<li><a href="addons.html" class="nav-addons">C++ addons</a></li> 1901cb0ef41Sopenharmony_ci<li><a href="n-api.html" class="nav-n-api">C/C++ addons with Node-API</a></li> 1911cb0ef41Sopenharmony_ci<li><a href="embedding.html" class="nav-embedding">C++ embedder API</a></li> 1921cb0ef41Sopenharmony_ci<li><a href="child_process.html" class="nav-child_process">Child processes</a></li> 1931cb0ef41Sopenharmony_ci<li><a href="cluster.html" class="nav-cluster">Cluster</a></li> 1941cb0ef41Sopenharmony_ci<li><a href="cli.html" class="nav-cli">Command-line options</a></li> 1951cb0ef41Sopenharmony_ci<li><a href="console.html" class="nav-console">Console</a></li> 1961cb0ef41Sopenharmony_ci<li><a href="corepack.html" class="nav-corepack">Corepack</a></li> 1971cb0ef41Sopenharmony_ci<li><a href="crypto.html" class="nav-crypto">Crypto</a></li> 1981cb0ef41Sopenharmony_ci<li><a href="debugger.html" class="nav-debugger">Debugger</a></li> 1991cb0ef41Sopenharmony_ci<li><a href="deprecations.html" class="nav-deprecations">Deprecated APIs</a></li> 2001cb0ef41Sopenharmony_ci<li><a href="diagnostics_channel.html" class="nav-diagnostics_channel">Diagnostics Channel</a></li> 2011cb0ef41Sopenharmony_ci<li><a href="dns.html" class="nav-dns">DNS</a></li> 2021cb0ef41Sopenharmony_ci<li><a href="domain.html" class="nav-domain">Domain</a></li> 2031cb0ef41Sopenharmony_ci<li><a href="errors.html" class="nav-errors">Errors</a></li> 2041cb0ef41Sopenharmony_ci<li><a href="events.html" class="nav-events">Events</a></li> 2051cb0ef41Sopenharmony_ci<li><a href="fs.html" class="nav-fs">File system</a></li> 2061cb0ef41Sopenharmony_ci<li><a href="globals.html" class="nav-globals">Globals</a></li> 2071cb0ef41Sopenharmony_ci<li><a href="http.html" class="nav-http">HTTP</a></li> 2081cb0ef41Sopenharmony_ci<li><a href="http2.html" class="nav-http2">HTTP/2</a></li> 2091cb0ef41Sopenharmony_ci<li><a href="https.html" class="nav-https">HTTPS</a></li> 2101cb0ef41Sopenharmony_ci<li><a href="inspector.html" class="nav-inspector">Inspector</a></li> 2111cb0ef41Sopenharmony_ci<li><a href="intl.html" class="nav-intl">Internationalization</a></li> 2121cb0ef41Sopenharmony_ci<li><a href="modules.html" class="nav-modules">Modules: CommonJS modules</a></li> 2131cb0ef41Sopenharmony_ci<li><a href="esm.html" class="nav-esm">Modules: ECMAScript modules</a></li> 2141cb0ef41Sopenharmony_ci<li><a href="module.html" class="nav-module">Modules: <code>node:module</code> API</a></li> 2151cb0ef41Sopenharmony_ci<li><a href="packages.html" class="nav-packages">Modules: Packages</a></li> 2161cb0ef41Sopenharmony_ci<li><a href="net.html" class="nav-net">Net</a></li> 2171cb0ef41Sopenharmony_ci<li><a href="os.html" class="nav-os active">OS</a></li> 2181cb0ef41Sopenharmony_ci<li><a href="path.html" class="nav-path">Path</a></li> 2191cb0ef41Sopenharmony_ci<li><a href="perf_hooks.html" class="nav-perf_hooks">Performance hooks</a></li> 2201cb0ef41Sopenharmony_ci<li><a href="permissions.html" class="nav-permissions">Permissions</a></li> 2211cb0ef41Sopenharmony_ci<li><a href="process.html" class="nav-process">Process</a></li> 2221cb0ef41Sopenharmony_ci<li><a href="punycode.html" class="nav-punycode">Punycode</a></li> 2231cb0ef41Sopenharmony_ci<li><a href="querystring.html" class="nav-querystring">Query strings</a></li> 2241cb0ef41Sopenharmony_ci<li><a href="readline.html" class="nav-readline">Readline</a></li> 2251cb0ef41Sopenharmony_ci<li><a href="repl.html" class="nav-repl">REPL</a></li> 2261cb0ef41Sopenharmony_ci<li><a href="report.html" class="nav-report">Report</a></li> 2271cb0ef41Sopenharmony_ci<li><a href="single-executable-applications.html" class="nav-single-executable-applications">Single executable applications</a></li> 2281cb0ef41Sopenharmony_ci<li><a href="stream.html" class="nav-stream">Stream</a></li> 2291cb0ef41Sopenharmony_ci<li><a href="string_decoder.html" class="nav-string_decoder">String decoder</a></li> 2301cb0ef41Sopenharmony_ci<li><a href="test.html" class="nav-test">Test runner</a></li> 2311cb0ef41Sopenharmony_ci<li><a href="timers.html" class="nav-timers">Timers</a></li> 2321cb0ef41Sopenharmony_ci<li><a href="tls.html" class="nav-tls">TLS/SSL</a></li> 2331cb0ef41Sopenharmony_ci<li><a href="tracing.html" class="nav-tracing">Trace events</a></li> 2341cb0ef41Sopenharmony_ci<li><a href="tty.html" class="nav-tty">TTY</a></li> 2351cb0ef41Sopenharmony_ci<li><a href="dgram.html" class="nav-dgram">UDP/datagram</a></li> 2361cb0ef41Sopenharmony_ci<li><a href="url.html" class="nav-url">URL</a></li> 2371cb0ef41Sopenharmony_ci<li><a href="util.html" class="nav-util">Utilities</a></li> 2381cb0ef41Sopenharmony_ci<li><a href="v8.html" class="nav-v8">V8</a></li> 2391cb0ef41Sopenharmony_ci<li><a href="vm.html" class="nav-vm">VM</a></li> 2401cb0ef41Sopenharmony_ci<li><a href="wasi.html" class="nav-wasi">WASI</a></li> 2411cb0ef41Sopenharmony_ci<li><a href="webcrypto.html" class="nav-webcrypto">Web Crypto API</a></li> 2421cb0ef41Sopenharmony_ci<li><a href="webstreams.html" class="nav-webstreams">Web Streams API</a></li> 2431cb0ef41Sopenharmony_ci<li><a href="worker_threads.html" class="nav-worker_threads">Worker threads</a></li> 2441cb0ef41Sopenharmony_ci<li><a href="zlib.html" class="nav-zlib">Zlib</a></li> 2451cb0ef41Sopenharmony_ci</ul> 2461cb0ef41Sopenharmony_ci<hr class="line"> 2471cb0ef41Sopenharmony_ci<ul> 2481cb0ef41Sopenharmony_ci<li><a href="https://github.com/nodejs/node" class="nav-https-github-com-nodejs-node">Code repository and issue tracker</a></li> 2491cb0ef41Sopenharmony_ci</ul></div> 2501cb0ef41Sopenharmony_ci </li> 2511cb0ef41Sopenharmony_ci 2521cb0ef41Sopenharmony_ci 2531cb0ef41Sopenharmony_ci <li class="picker-header"> 2541cb0ef41Sopenharmony_ci <a href="#"> 2551cb0ef41Sopenharmony_ci <span class="collapsed-arrow">►</span><span class="expanded-arrow">▼</span> 2561cb0ef41Sopenharmony_ci Other versions 2571cb0ef41Sopenharmony_ci </a> 2581cb0ef41Sopenharmony_ci <div class="picker"><ol id="alt-docs"><li><a href="https://nodejs.org/docs/latest-v21.x/api/os.html">21.x</a></li> 2591cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v20.x/api/os.html">20.x <b>LTS</b></a></li> 2601cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v19.x/api/os.html">19.x</a></li> 2611cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v18.x/api/os.html">18.x <b>LTS</b></a></li> 2621cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v17.x/api/os.html">17.x</a></li> 2631cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v16.x/api/os.html">16.x</a></li> 2641cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v15.x/api/os.html">15.x</a></li> 2651cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v14.x/api/os.html">14.x</a></li> 2661cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v13.x/api/os.html">13.x</a></li> 2671cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v12.x/api/os.html">12.x</a></li> 2681cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v11.x/api/os.html">11.x</a></li> 2691cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v10.x/api/os.html">10.x</a></li> 2701cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v9.x/api/os.html">9.x</a></li> 2711cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v8.x/api/os.html">8.x</a></li> 2721cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v7.x/api/os.html">7.x</a></li> 2731cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v6.x/api/os.html">6.x</a></li> 2741cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v5.x/api/os.html">5.x</a></li> 2751cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v4.x/api/os.html">4.x</a></li> 2761cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v0.12.x/api/os.html">0.12.x</a></li> 2771cb0ef41Sopenharmony_ci<li><a href="https://nodejs.org/docs/latest-v0.10.x/api/os.html">0.10.x</a></li></ol></div> 2781cb0ef41Sopenharmony_ci </li> 2791cb0ef41Sopenharmony_ci 2801cb0ef41Sopenharmony_ci <li class="picker-header"> 2811cb0ef41Sopenharmony_ci <a href="#"> 2821cb0ef41Sopenharmony_ci <span class="collapsed-arrow">►</span><span class="expanded-arrow">▼</span> 2831cb0ef41Sopenharmony_ci Options 2841cb0ef41Sopenharmony_ci </a> 2851cb0ef41Sopenharmony_ci 2861cb0ef41Sopenharmony_ci <div class="picker"> 2871cb0ef41Sopenharmony_ci <ul> 2881cb0ef41Sopenharmony_ci <li> 2891cb0ef41Sopenharmony_ci <a href="all.html">View on single page</a> 2901cb0ef41Sopenharmony_ci </li> 2911cb0ef41Sopenharmony_ci <li> 2921cb0ef41Sopenharmony_ci <a href="os.json">View as JSON</a> 2931cb0ef41Sopenharmony_ci </li> 2941cb0ef41Sopenharmony_ci <li class="edit_on_github"><a href="https://github.com/nodejs/node/edit/main/doc/api/os.md">Edit on GitHub</a></li> 2951cb0ef41Sopenharmony_ci </ul> 2961cb0ef41Sopenharmony_ci </div> 2971cb0ef41Sopenharmony_ci </li> 2981cb0ef41Sopenharmony_ci </ul> 2991cb0ef41Sopenharmony_ci </div> 3001cb0ef41Sopenharmony_ci <hr> 3011cb0ef41Sopenharmony_ci </header> 3021cb0ef41Sopenharmony_ci 3031cb0ef41Sopenharmony_ci <details id="toc" open><summary>Table of contents</summary><ul> 3041cb0ef41Sopenharmony_ci<li><span class="stability_2"><a href="#os">OS</a></span> 3051cb0ef41Sopenharmony_ci<ul> 3061cb0ef41Sopenharmony_ci<li><a href="#oseol"><code>os.EOL</code></a></li> 3071cb0ef41Sopenharmony_ci<li><a href="#osavailableparallelism"><code>os.availableParallelism()</code></a></li> 3081cb0ef41Sopenharmony_ci<li><a href="#osarch"><code>os.arch()</code></a></li> 3091cb0ef41Sopenharmony_ci<li><a href="#osconstants"><code>os.constants</code></a></li> 3101cb0ef41Sopenharmony_ci<li><a href="#oscpus"><code>os.cpus()</code></a></li> 3111cb0ef41Sopenharmony_ci<li><a href="#osdevnull"><code>os.devNull</code></a></li> 3121cb0ef41Sopenharmony_ci<li><a href="#osendianness"><code>os.endianness()</code></a></li> 3131cb0ef41Sopenharmony_ci<li><a href="#osfreemem"><code>os.freemem()</code></a></li> 3141cb0ef41Sopenharmony_ci<li><a href="#osgetprioritypid"><code>os.getPriority([pid])</code></a></li> 3151cb0ef41Sopenharmony_ci<li><a href="#oshomedir"><code>os.homedir()</code></a></li> 3161cb0ef41Sopenharmony_ci<li><a href="#oshostname"><code>os.hostname()</code></a></li> 3171cb0ef41Sopenharmony_ci<li><a href="#osloadavg"><code>os.loadavg()</code></a></li> 3181cb0ef41Sopenharmony_ci<li><a href="#osmachine"><code>os.machine()</code></a></li> 3191cb0ef41Sopenharmony_ci<li><a href="#osnetworkinterfaces"><code>os.networkInterfaces()</code></a></li> 3201cb0ef41Sopenharmony_ci<li><a href="#osplatform"><code>os.platform()</code></a></li> 3211cb0ef41Sopenharmony_ci<li><a href="#osrelease"><code>os.release()</code></a></li> 3221cb0ef41Sopenharmony_ci<li><a href="#ossetprioritypid-priority"><code>os.setPriority([pid, ]priority)</code></a></li> 3231cb0ef41Sopenharmony_ci<li><a href="#ostmpdir"><code>os.tmpdir()</code></a></li> 3241cb0ef41Sopenharmony_ci<li><a href="#ostotalmem"><code>os.totalmem()</code></a></li> 3251cb0ef41Sopenharmony_ci<li><a href="#ostype"><code>os.type()</code></a></li> 3261cb0ef41Sopenharmony_ci<li><a href="#osuptime"><code>os.uptime()</code></a></li> 3271cb0ef41Sopenharmony_ci<li><a href="#osuserinfooptions"><code>os.userInfo([options])</code></a></li> 3281cb0ef41Sopenharmony_ci<li><a href="#osversion"><code>os.version()</code></a></li> 3291cb0ef41Sopenharmony_ci<li><a href="#os-constants">OS constants</a> 3301cb0ef41Sopenharmony_ci<ul> 3311cb0ef41Sopenharmony_ci<li><a href="#signal-constants">Signal constants</a></li> 3321cb0ef41Sopenharmony_ci<li><a href="#error-constants">Error constants</a> 3331cb0ef41Sopenharmony_ci<ul> 3341cb0ef41Sopenharmony_ci<li><a href="#posix-error-constants">POSIX error constants</a></li> 3351cb0ef41Sopenharmony_ci<li><a href="#windows-specific-error-constants">Windows-specific error constants</a></li> 3361cb0ef41Sopenharmony_ci</ul> 3371cb0ef41Sopenharmony_ci</li> 3381cb0ef41Sopenharmony_ci<li><a href="#dlopen-constants">dlopen constants</a></li> 3391cb0ef41Sopenharmony_ci<li><a href="#priority-constants">Priority constants</a></li> 3401cb0ef41Sopenharmony_ci<li><a href="#libuv-constants">libuv constants</a></li> 3411cb0ef41Sopenharmony_ci</ul> 3421cb0ef41Sopenharmony_ci</li> 3431cb0ef41Sopenharmony_ci</ul> 3441cb0ef41Sopenharmony_ci</li> 3451cb0ef41Sopenharmony_ci</ul></details> 3461cb0ef41Sopenharmony_ci 3471cb0ef41Sopenharmony_ci <div id="apicontent"> 3481cb0ef41Sopenharmony_ci <h2>OS<span><a class="mark" href="#os" id="os">#</a></span><a aria-hidden="true" class="legacy" id="os_os"></a></h2> 3491cb0ef41Sopenharmony_ci 3501cb0ef41Sopenharmony_ci<p></p><div class="api_stability api_stability_2"><a href="documentation.html#stability-index">Stability: 2</a> - Stable</div><p></p> 3511cb0ef41Sopenharmony_ci<p><strong>Source Code:</strong> <a href="https://github.com/nodejs/node/blob/v18.20.1/lib/os.js">lib/os.js</a></p> 3521cb0ef41Sopenharmony_ci<p>The <code>node:os</code> module provides operating system-related utility methods and 3531cb0ef41Sopenharmony_ciproperties. It can be accessed using:</p> 3541cb0ef41Sopenharmony_ci<pre><code class="language-js"><span class="hljs-keyword">const</span> os = <span class="hljs-built_in">require</span>(<span class="hljs-string">'node:os'</span>);</code> <button class="copy-button">copy</button></pre> 3551cb0ef41Sopenharmony_ci<section><h3><code>os.EOL</code><span><a class="mark" href="#oseol" id="oseol">#</a></span><a aria-hidden="true" class="legacy" id="os_os_eol"></a></h3> 3561cb0ef41Sopenharmony_ci<div class="api_metadata"> 3571cb0ef41Sopenharmony_ci<span>Added in: v0.7.8</span> 3581cb0ef41Sopenharmony_ci</div> 3591cb0ef41Sopenharmony_ci<ul> 3601cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 3611cb0ef41Sopenharmony_ci</ul> 3621cb0ef41Sopenharmony_ci<p>The operating system-specific end-of-line marker.</p> 3631cb0ef41Sopenharmony_ci<ul> 3641cb0ef41Sopenharmony_ci<li><code>\n</code> on POSIX</li> 3651cb0ef41Sopenharmony_ci<li><code>\r\n</code> on Windows</li> 3661cb0ef41Sopenharmony_ci</ul> 3671cb0ef41Sopenharmony_ci</section><section><h3><code>os.availableParallelism()</code><span><a class="mark" href="#osavailableparallelism" id="osavailableparallelism">#</a></span><a aria-hidden="true" class="legacy" id="os_os_availableparallelism"></a></h3> 3681cb0ef41Sopenharmony_ci<div class="api_metadata"> 3691cb0ef41Sopenharmony_ci<span>Added in: v18.14.0</span> 3701cb0ef41Sopenharmony_ci</div> 3711cb0ef41Sopenharmony_ci<ul> 3721cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><integer></a></li> 3731cb0ef41Sopenharmony_ci</ul> 3741cb0ef41Sopenharmony_ci<p>Returns an estimate of the default amount of parallelism a program should use. 3751cb0ef41Sopenharmony_ciAlways returns a value greater than zero.</p> 3761cb0ef41Sopenharmony_ci<p>This function is a small wrapper about libuv's <a href="https://docs.libuv.org/en/v1.x/misc.html#c.uv_available_parallelism"><code>uv_available_parallelism()</code></a>.</p> 3771cb0ef41Sopenharmony_ci</section><section><h3><code>os.arch()</code><span><a class="mark" href="#osarch" id="osarch">#</a></span><a aria-hidden="true" class="legacy" id="os_os_arch"></a></h3> 3781cb0ef41Sopenharmony_ci<div class="api_metadata"> 3791cb0ef41Sopenharmony_ci<span>Added in: v0.5.0</span> 3801cb0ef41Sopenharmony_ci</div> 3811cb0ef41Sopenharmony_ci<ul> 3821cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 3831cb0ef41Sopenharmony_ci</ul> 3841cb0ef41Sopenharmony_ci<p>Returns the operating system CPU architecture for which the Node.js binary was 3851cb0ef41Sopenharmony_cicompiled. Possible values are <code>'arm'</code>, <code>'arm64'</code>, <code>'ia32'</code>, <code>'mips'</code>, 3861cb0ef41Sopenharmony_ci<code>'mipsel'</code>, <code>'ppc'</code>, <code>'ppc64'</code>, <code>'s390'</code>, <code>'s390x'</code>, and <code>'x64'</code>.</p> 3871cb0ef41Sopenharmony_ci<p>The return value is equivalent to <a href="process.html#processarch"><code>process.arch</code></a>.</p> 3881cb0ef41Sopenharmony_ci</section><section><h3><code>os.constants</code><span><a class="mark" href="#osconstants" id="osconstants">#</a></span><a aria-hidden="true" class="legacy" id="os_os_constants"></a></h3> 3891cb0ef41Sopenharmony_ci<div class="api_metadata"> 3901cb0ef41Sopenharmony_ci<span>Added in: v6.3.0</span> 3911cb0ef41Sopenharmony_ci</div> 3921cb0ef41Sopenharmony_ci<ul> 3931cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type"><Object></a></li> 3941cb0ef41Sopenharmony_ci</ul> 3951cb0ef41Sopenharmony_ci<p>Contains commonly used operating system-specific constants for error codes, 3961cb0ef41Sopenharmony_ciprocess signals, and so on. The specific constants defined are described in 3971cb0ef41Sopenharmony_ci<a href="#os-constants">OS constants</a>.</p> 3981cb0ef41Sopenharmony_ci</section><section><h3><code>os.cpus()</code><span><a class="mark" href="#oscpus" id="oscpus">#</a></span><a aria-hidden="true" class="legacy" id="os_os_cpus"></a></h3> 3991cb0ef41Sopenharmony_ci<div class="api_metadata"> 4001cb0ef41Sopenharmony_ci<span>Added in: v0.3.3</span> 4011cb0ef41Sopenharmony_ci</div> 4021cb0ef41Sopenharmony_ci<ul> 4031cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type"><Object[]></a></li> 4041cb0ef41Sopenharmony_ci</ul> 4051cb0ef41Sopenharmony_ci<p>Returns an array of objects containing information about each logical CPU core. 4061cb0ef41Sopenharmony_ciThe array will be empty if no CPU information is available, such as if the 4071cb0ef41Sopenharmony_ci<code>/proc</code> file system is unavailable.</p> 4081cb0ef41Sopenharmony_ci<p>The properties included on each object include:</p> 4091cb0ef41Sopenharmony_ci<ul> 4101cb0ef41Sopenharmony_ci<li><code>model</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 4111cb0ef41Sopenharmony_ci<li><code>speed</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><number></a> (in MHz)</li> 4121cb0ef41Sopenharmony_ci<li><code>times</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type"><Object></a> 4131cb0ef41Sopenharmony_ci<ul> 4141cb0ef41Sopenharmony_ci<li><code>user</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><number></a> The number of milliseconds the CPU has spent in user mode.</li> 4151cb0ef41Sopenharmony_ci<li><code>nice</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><number></a> The number of milliseconds the CPU has spent in nice mode.</li> 4161cb0ef41Sopenharmony_ci<li><code>sys</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><number></a> The number of milliseconds the CPU has spent in sys mode.</li> 4171cb0ef41Sopenharmony_ci<li><code>idle</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><number></a> The number of milliseconds the CPU has spent in idle mode.</li> 4181cb0ef41Sopenharmony_ci<li><code>irq</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><number></a> The number of milliseconds the CPU has spent in irq mode.</li> 4191cb0ef41Sopenharmony_ci</ul> 4201cb0ef41Sopenharmony_ci</li> 4211cb0ef41Sopenharmony_ci</ul> 4221cb0ef41Sopenharmony_ci<!-- eslint-disable semi --> 4231cb0ef41Sopenharmony_ci<pre><code class="language-js">[ 4241cb0ef41Sopenharmony_ci { 4251cb0ef41Sopenharmony_ci <span class="hljs-attr">model</span>: <span class="hljs-string">'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz'</span>, 4261cb0ef41Sopenharmony_ci <span class="hljs-attr">speed</span>: <span class="hljs-number">2926</span>, 4271cb0ef41Sopenharmony_ci <span class="hljs-attr">times</span>: { 4281cb0ef41Sopenharmony_ci <span class="hljs-attr">user</span>: <span class="hljs-number">252020</span>, 4291cb0ef41Sopenharmony_ci <span class="hljs-attr">nice</span>: <span class="hljs-number">0</span>, 4301cb0ef41Sopenharmony_ci <span class="hljs-attr">sys</span>: <span class="hljs-number">30340</span>, 4311cb0ef41Sopenharmony_ci <span class="hljs-attr">idle</span>: <span class="hljs-number">1070356870</span>, 4321cb0ef41Sopenharmony_ci <span class="hljs-attr">irq</span>: <span class="hljs-number">0</span>, 4331cb0ef41Sopenharmony_ci }, 4341cb0ef41Sopenharmony_ci }, 4351cb0ef41Sopenharmony_ci { 4361cb0ef41Sopenharmony_ci <span class="hljs-attr">model</span>: <span class="hljs-string">'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz'</span>, 4371cb0ef41Sopenharmony_ci <span class="hljs-attr">speed</span>: <span class="hljs-number">2926</span>, 4381cb0ef41Sopenharmony_ci <span class="hljs-attr">times</span>: { 4391cb0ef41Sopenharmony_ci <span class="hljs-attr">user</span>: <span class="hljs-number">306960</span>, 4401cb0ef41Sopenharmony_ci <span class="hljs-attr">nice</span>: <span class="hljs-number">0</span>, 4411cb0ef41Sopenharmony_ci <span class="hljs-attr">sys</span>: <span class="hljs-number">26980</span>, 4421cb0ef41Sopenharmony_ci <span class="hljs-attr">idle</span>: <span class="hljs-number">1071569080</span>, 4431cb0ef41Sopenharmony_ci <span class="hljs-attr">irq</span>: <span class="hljs-number">0</span>, 4441cb0ef41Sopenharmony_ci }, 4451cb0ef41Sopenharmony_ci }, 4461cb0ef41Sopenharmony_ci { 4471cb0ef41Sopenharmony_ci <span class="hljs-attr">model</span>: <span class="hljs-string">'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz'</span>, 4481cb0ef41Sopenharmony_ci <span class="hljs-attr">speed</span>: <span class="hljs-number">2926</span>, 4491cb0ef41Sopenharmony_ci <span class="hljs-attr">times</span>: { 4501cb0ef41Sopenharmony_ci <span class="hljs-attr">user</span>: <span class="hljs-number">248450</span>, 4511cb0ef41Sopenharmony_ci <span class="hljs-attr">nice</span>: <span class="hljs-number">0</span>, 4521cb0ef41Sopenharmony_ci <span class="hljs-attr">sys</span>: <span class="hljs-number">21750</span>, 4531cb0ef41Sopenharmony_ci <span class="hljs-attr">idle</span>: <span class="hljs-number">1070919370</span>, 4541cb0ef41Sopenharmony_ci <span class="hljs-attr">irq</span>: <span class="hljs-number">0</span>, 4551cb0ef41Sopenharmony_ci }, 4561cb0ef41Sopenharmony_ci }, 4571cb0ef41Sopenharmony_ci { 4581cb0ef41Sopenharmony_ci <span class="hljs-attr">model</span>: <span class="hljs-string">'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz'</span>, 4591cb0ef41Sopenharmony_ci <span class="hljs-attr">speed</span>: <span class="hljs-number">2926</span>, 4601cb0ef41Sopenharmony_ci <span class="hljs-attr">times</span>: { 4611cb0ef41Sopenharmony_ci <span class="hljs-attr">user</span>: <span class="hljs-number">256880</span>, 4621cb0ef41Sopenharmony_ci <span class="hljs-attr">nice</span>: <span class="hljs-number">0</span>, 4631cb0ef41Sopenharmony_ci <span class="hljs-attr">sys</span>: <span class="hljs-number">19430</span>, 4641cb0ef41Sopenharmony_ci <span class="hljs-attr">idle</span>: <span class="hljs-number">1070905480</span>, 4651cb0ef41Sopenharmony_ci <span class="hljs-attr">irq</span>: <span class="hljs-number">20</span>, 4661cb0ef41Sopenharmony_ci }, 4671cb0ef41Sopenharmony_ci }, 4681cb0ef41Sopenharmony_ci]</code> <button class="copy-button">copy</button></pre> 4691cb0ef41Sopenharmony_ci<p><code>nice</code> values are POSIX-only. On Windows, the <code>nice</code> values of all processors 4701cb0ef41Sopenharmony_ciare always 0.</p> 4711cb0ef41Sopenharmony_ci<p><code>os.cpus().length</code> should not be used to calculate the amount of parallelism 4721cb0ef41Sopenharmony_ciavailable to an application. Use 4731cb0ef41Sopenharmony_ci<a href="#osavailableparallelism"><code>os.availableParallelism()</code></a> for this purpose.</p> 4741cb0ef41Sopenharmony_ci</section><section><h3><code>os.devNull</code><span><a class="mark" href="#osdevnull" id="osdevnull">#</a></span><a aria-hidden="true" class="legacy" id="os_os_devnull"></a></h3> 4751cb0ef41Sopenharmony_ci<div class="api_metadata"> 4761cb0ef41Sopenharmony_ci<span>Added in: v16.3.0, v14.18.0</span> 4771cb0ef41Sopenharmony_ci</div> 4781cb0ef41Sopenharmony_ci<ul> 4791cb0ef41Sopenharmony_ci<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 4801cb0ef41Sopenharmony_ci</ul> 4811cb0ef41Sopenharmony_ci<p>The platform-specific file path of the null device.</p> 4821cb0ef41Sopenharmony_ci<ul> 4831cb0ef41Sopenharmony_ci<li><code>\\.\nul</code> on Windows</li> 4841cb0ef41Sopenharmony_ci<li><code>/dev/null</code> on POSIX</li> 4851cb0ef41Sopenharmony_ci</ul> 4861cb0ef41Sopenharmony_ci</section><section><h3><code>os.endianness()</code><span><a class="mark" href="#osendianness" id="osendianness">#</a></span><a aria-hidden="true" class="legacy" id="os_os_endianness"></a></h3> 4871cb0ef41Sopenharmony_ci<div class="api_metadata"> 4881cb0ef41Sopenharmony_ci<span>Added in: v0.9.4</span> 4891cb0ef41Sopenharmony_ci</div> 4901cb0ef41Sopenharmony_ci<ul> 4911cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 4921cb0ef41Sopenharmony_ci</ul> 4931cb0ef41Sopenharmony_ci<p>Returns a string identifying the endianness of the CPU for which the Node.js 4941cb0ef41Sopenharmony_cibinary was compiled.</p> 4951cb0ef41Sopenharmony_ci<p>Possible values are <code>'BE'</code> for big endian and <code>'LE'</code> for little endian.</p> 4961cb0ef41Sopenharmony_ci</section><section><h3><code>os.freemem()</code><span><a class="mark" href="#osfreemem" id="osfreemem">#</a></span><a aria-hidden="true" class="legacy" id="os_os_freemem"></a></h3> 4971cb0ef41Sopenharmony_ci<div class="api_metadata"> 4981cb0ef41Sopenharmony_ci<span>Added in: v0.3.3</span> 4991cb0ef41Sopenharmony_ci</div> 5001cb0ef41Sopenharmony_ci<ul> 5011cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><integer></a></li> 5021cb0ef41Sopenharmony_ci</ul> 5031cb0ef41Sopenharmony_ci<p>Returns the amount of free system memory in bytes as an integer.</p> 5041cb0ef41Sopenharmony_ci</section><section><h3><code>os.getPriority([pid])</code><span><a class="mark" href="#osgetprioritypid" id="osgetprioritypid">#</a></span><a aria-hidden="true" class="legacy" id="os_os_getpriority_pid"></a></h3> 5051cb0ef41Sopenharmony_ci<div class="api_metadata"> 5061cb0ef41Sopenharmony_ci<span>Added in: v10.10.0</span> 5071cb0ef41Sopenharmony_ci</div> 5081cb0ef41Sopenharmony_ci<ul> 5091cb0ef41Sopenharmony_ci<li><code>pid</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><integer></a> The process ID to retrieve scheduling priority for. 5101cb0ef41Sopenharmony_ci<strong>Default:</strong> <code>0</code>.</li> 5111cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><integer></a></li> 5121cb0ef41Sopenharmony_ci</ul> 5131cb0ef41Sopenharmony_ci<p>Returns the scheduling priority for the process specified by <code>pid</code>. If <code>pid</code> is 5141cb0ef41Sopenharmony_cinot provided or is <code>0</code>, the priority of the current process is returned.</p> 5151cb0ef41Sopenharmony_ci</section><section><h3><code>os.homedir()</code><span><a class="mark" href="#oshomedir" id="oshomedir">#</a></span><a aria-hidden="true" class="legacy" id="os_os_homedir"></a></h3> 5161cb0ef41Sopenharmony_ci<div class="api_metadata"> 5171cb0ef41Sopenharmony_ci<span>Added in: v2.3.0</span> 5181cb0ef41Sopenharmony_ci</div> 5191cb0ef41Sopenharmony_ci<ul> 5201cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 5211cb0ef41Sopenharmony_ci</ul> 5221cb0ef41Sopenharmony_ci<p>Returns the string path of the current user's home directory.</p> 5231cb0ef41Sopenharmony_ci<p>On POSIX, it uses the <code>$HOME</code> environment variable if defined. Otherwise it 5241cb0ef41Sopenharmony_ciuses the <a href="https://en.wikipedia.org/wiki/User_identifier#Effective_user_ID">effective UID</a> to look up the user's home directory.</p> 5251cb0ef41Sopenharmony_ci<p>On Windows, it uses the <code>USERPROFILE</code> environment variable if defined. 5261cb0ef41Sopenharmony_ciOtherwise it uses the path to the profile directory of the current user.</p> 5271cb0ef41Sopenharmony_ci</section><section><h3><code>os.hostname()</code><span><a class="mark" href="#oshostname" id="oshostname">#</a></span><a aria-hidden="true" class="legacy" id="os_os_hostname"></a></h3> 5281cb0ef41Sopenharmony_ci<div class="api_metadata"> 5291cb0ef41Sopenharmony_ci<span>Added in: v0.3.3</span> 5301cb0ef41Sopenharmony_ci</div> 5311cb0ef41Sopenharmony_ci<ul> 5321cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 5331cb0ef41Sopenharmony_ci</ul> 5341cb0ef41Sopenharmony_ci<p>Returns the host name of the operating system as a string.</p> 5351cb0ef41Sopenharmony_ci</section><section><h3><code>os.loadavg()</code><span><a class="mark" href="#osloadavg" id="osloadavg">#</a></span><a aria-hidden="true" class="legacy" id="os_os_loadavg"></a></h3> 5361cb0ef41Sopenharmony_ci<div class="api_metadata"> 5371cb0ef41Sopenharmony_ci<span>Added in: v0.3.3</span> 5381cb0ef41Sopenharmony_ci</div> 5391cb0ef41Sopenharmony_ci<ul> 5401cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><number[]></a></li> 5411cb0ef41Sopenharmony_ci</ul> 5421cb0ef41Sopenharmony_ci<p>Returns an array containing the 1, 5, and 15 minute load averages.</p> 5431cb0ef41Sopenharmony_ci<p>The load average is a measure of system activity calculated by the operating 5441cb0ef41Sopenharmony_cisystem and expressed as a fractional number.</p> 5451cb0ef41Sopenharmony_ci<p>The load average is a Unix-specific concept. On Windows, the return value is 5461cb0ef41Sopenharmony_cialways <code>[0, 0, 0]</code>.</p> 5471cb0ef41Sopenharmony_ci</section><section><h3><code>os.machine()</code><span><a class="mark" href="#osmachine" id="osmachine">#</a></span><a aria-hidden="true" class="legacy" id="os_os_machine"></a></h3> 5481cb0ef41Sopenharmony_ci<div class="api_metadata"> 5491cb0ef41Sopenharmony_ci<span>Added in: v18.9.0</span> 5501cb0ef41Sopenharmony_ci</div> 5511cb0ef41Sopenharmony_ci<ul> 5521cb0ef41Sopenharmony_ci<li>Returns <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 5531cb0ef41Sopenharmony_ci</ul> 5541cb0ef41Sopenharmony_ci<p>Returns the machine type as a string, such as <code>arm</code>, <code>arm64</code>, <code>aarch64</code>, 5551cb0ef41Sopenharmony_ci<code>mips</code>, <code>mips64</code>, <code>ppc64</code>, <code>ppc64le</code>, <code>s390</code>, <code>s390x</code>, <code>i386</code>, <code>i686</code>, <code>x86_64</code>.</p> 5561cb0ef41Sopenharmony_ci<p>On POSIX systems, the machine type is determined by calling 5571cb0ef41Sopenharmony_ci<a href="https://linux.die.net/man/3/uname"><code>uname(3)</code></a>. On Windows, <code>RtlGetVersion()</code> is used, and if it is not 5581cb0ef41Sopenharmony_ciavailable, <code>GetVersionExW()</code> will be used. See 5591cb0ef41Sopenharmony_ci<a href="https://en.wikipedia.org/wiki/Uname#Examples">https://en.wikipedia.org/wiki/Uname#Examples</a> for more information.</p> 5601cb0ef41Sopenharmony_ci</section><section><h3><code>os.networkInterfaces()</code><span><a class="mark" href="#osnetworkinterfaces" id="osnetworkinterfaces">#</a></span><a aria-hidden="true" class="legacy" id="os_os_networkinterfaces"></a></h3> 5611cb0ef41Sopenharmony_ci<div class="api_metadata"> 5621cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary> 5631cb0ef41Sopenharmony_ci<table> 5641cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr> 5651cb0ef41Sopenharmony_ci<tr><td>v18.4.0</td> 5661cb0ef41Sopenharmony_ci<td><p>The <code>family</code> property now returns a string instead of a number.</p></td></tr> 5671cb0ef41Sopenharmony_ci<tr><td>v18.0.0</td> 5681cb0ef41Sopenharmony_ci<td><p>The <code>family</code> property now returns a number instead of a string.</p></td></tr> 5691cb0ef41Sopenharmony_ci<tr><td>v0.6.0</td> 5701cb0ef41Sopenharmony_ci<td><p><span>Added in: v0.6.0</span></p></td></tr> 5711cb0ef41Sopenharmony_ci</tbody></table> 5721cb0ef41Sopenharmony_ci</details> 5731cb0ef41Sopenharmony_ci</div> 5741cb0ef41Sopenharmony_ci<ul> 5751cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type"><Object></a></li> 5761cb0ef41Sopenharmony_ci</ul> 5771cb0ef41Sopenharmony_ci<p>Returns an object containing network interfaces that have been assigned a 5781cb0ef41Sopenharmony_cinetwork address.</p> 5791cb0ef41Sopenharmony_ci<p>Each key on the returned object identifies a network interface. The associated 5801cb0ef41Sopenharmony_civalue is an array of objects that each describe an assigned network address.</p> 5811cb0ef41Sopenharmony_ci<p>The properties available on the assigned network address object include:</p> 5821cb0ef41Sopenharmony_ci<ul> 5831cb0ef41Sopenharmony_ci<li><code>address</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a> The assigned IPv4 or IPv6 address</li> 5841cb0ef41Sopenharmony_ci<li><code>netmask</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a> The IPv4 or IPv6 network mask</li> 5851cb0ef41Sopenharmony_ci<li><code>family</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a> Either <code>IPv4</code> or <code>IPv6</code></li> 5861cb0ef41Sopenharmony_ci<li><code>mac</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a> The MAC address of the network interface</li> 5871cb0ef41Sopenharmony_ci<li><code>internal</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type" class="type"><boolean></a> <code>true</code> if the network interface is a loopback or 5881cb0ef41Sopenharmony_cisimilar interface that is not remotely accessible; otherwise <code>false</code></li> 5891cb0ef41Sopenharmony_ci<li><code>scopeid</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><number></a> The numeric IPv6 scope ID (only specified when <code>family</code> 5901cb0ef41Sopenharmony_ciis <code>IPv6</code>)</li> 5911cb0ef41Sopenharmony_ci<li><code>cidr</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a> The assigned IPv4 or IPv6 address with the routing prefix 5921cb0ef41Sopenharmony_ciin CIDR notation. If the <code>netmask</code> is invalid, this property is set 5931cb0ef41Sopenharmony_cito <code>null</code>.</li> 5941cb0ef41Sopenharmony_ci</ul> 5951cb0ef41Sopenharmony_ci<!-- eslint-skip --> 5961cb0ef41Sopenharmony_ci<pre><code class="language-js">{ 5971cb0ef41Sopenharmony_ci <span class="hljs-attr">lo</span>: [ 5981cb0ef41Sopenharmony_ci { 5991cb0ef41Sopenharmony_ci <span class="hljs-attr">address</span>: <span class="hljs-string">'127.0.0.1'</span>, 6001cb0ef41Sopenharmony_ci <span class="hljs-attr">netmask</span>: <span class="hljs-string">'255.0.0.0'</span>, 6011cb0ef41Sopenharmony_ci <span class="hljs-attr">family</span>: <span class="hljs-string">'IPv4'</span>, 6021cb0ef41Sopenharmony_ci <span class="hljs-attr">mac</span>: <span class="hljs-string">'00:00:00:00:00:00'</span>, 6031cb0ef41Sopenharmony_ci <span class="hljs-attr">internal</span>: <span class="hljs-literal">true</span>, 6041cb0ef41Sopenharmony_ci <span class="hljs-attr">cidr</span>: <span class="hljs-string">'127.0.0.1/8'</span> 6051cb0ef41Sopenharmony_ci }, 6061cb0ef41Sopenharmony_ci { 6071cb0ef41Sopenharmony_ci <span class="hljs-attr">address</span>: <span class="hljs-string">'::1'</span>, 6081cb0ef41Sopenharmony_ci <span class="hljs-attr">netmask</span>: <span class="hljs-string">'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff'</span>, 6091cb0ef41Sopenharmony_ci <span class="hljs-attr">family</span>: <span class="hljs-string">'IPv6'</span>, 6101cb0ef41Sopenharmony_ci <span class="hljs-attr">mac</span>: <span class="hljs-string">'00:00:00:00:00:00'</span>, 6111cb0ef41Sopenharmony_ci <span class="hljs-attr">scopeid</span>: <span class="hljs-number">0</span>, 6121cb0ef41Sopenharmony_ci <span class="hljs-attr">internal</span>: <span class="hljs-literal">true</span>, 6131cb0ef41Sopenharmony_ci <span class="hljs-attr">cidr</span>: <span class="hljs-string">'::1/128'</span> 6141cb0ef41Sopenharmony_ci } 6151cb0ef41Sopenharmony_ci ], 6161cb0ef41Sopenharmony_ci <span class="hljs-attr">eth0</span>: [ 6171cb0ef41Sopenharmony_ci { 6181cb0ef41Sopenharmony_ci <span class="hljs-attr">address</span>: <span class="hljs-string">'192.168.1.108'</span>, 6191cb0ef41Sopenharmony_ci <span class="hljs-attr">netmask</span>: <span class="hljs-string">'255.255.255.0'</span>, 6201cb0ef41Sopenharmony_ci <span class="hljs-attr">family</span>: <span class="hljs-string">'IPv4'</span>, 6211cb0ef41Sopenharmony_ci <span class="hljs-attr">mac</span>: <span class="hljs-string">'01:02:03:0a:0b:0c'</span>, 6221cb0ef41Sopenharmony_ci <span class="hljs-attr">internal</span>: <span class="hljs-literal">false</span>, 6231cb0ef41Sopenharmony_ci <span class="hljs-attr">cidr</span>: <span class="hljs-string">'192.168.1.108/24'</span> 6241cb0ef41Sopenharmony_ci }, 6251cb0ef41Sopenharmony_ci { 6261cb0ef41Sopenharmony_ci <span class="hljs-attr">address</span>: <span class="hljs-string">'fe80::a00:27ff:fe4e:66a1'</span>, 6271cb0ef41Sopenharmony_ci <span class="hljs-attr">netmask</span>: <span class="hljs-string">'ffff:ffff:ffff:ffff::'</span>, 6281cb0ef41Sopenharmony_ci <span class="hljs-attr">family</span>: <span class="hljs-string">'IPv6'</span>, 6291cb0ef41Sopenharmony_ci <span class="hljs-attr">mac</span>: <span class="hljs-string">'01:02:03:0a:0b:0c'</span>, 6301cb0ef41Sopenharmony_ci <span class="hljs-attr">scopeid</span>: <span class="hljs-number">1</span>, 6311cb0ef41Sopenharmony_ci <span class="hljs-attr">internal</span>: <span class="hljs-literal">false</span>, 6321cb0ef41Sopenharmony_ci <span class="hljs-attr">cidr</span>: <span class="hljs-string">'fe80::a00:27ff:fe4e:66a1/64'</span> 6331cb0ef41Sopenharmony_ci } 6341cb0ef41Sopenharmony_ci ] 6351cb0ef41Sopenharmony_ci}</code> <button class="copy-button">copy</button></pre> 6361cb0ef41Sopenharmony_ci</section><section><h3><code>os.platform()</code><span><a class="mark" href="#osplatform" id="osplatform">#</a></span><a aria-hidden="true" class="legacy" id="os_os_platform"></a></h3> 6371cb0ef41Sopenharmony_ci<div class="api_metadata"> 6381cb0ef41Sopenharmony_ci<span>Added in: v0.5.0</span> 6391cb0ef41Sopenharmony_ci</div> 6401cb0ef41Sopenharmony_ci<ul> 6411cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 6421cb0ef41Sopenharmony_ci</ul> 6431cb0ef41Sopenharmony_ci<p>Returns a string identifying the operating system platform for which 6441cb0ef41Sopenharmony_cithe Node.js binary was compiled. The value is set at compile time. 6451cb0ef41Sopenharmony_ciPossible values are <code>'aix'</code>, <code>'darwin'</code>, <code>'freebsd'</code>,<code>'linux'</code>, 6461cb0ef41Sopenharmony_ci<code>'openbsd'</code>, <code>'sunos'</code>, and <code>'win32'</code>.</p> 6471cb0ef41Sopenharmony_ci<p>The return value is equivalent to <a href="process.html#processplatform"><code>process.platform</code></a>.</p> 6481cb0ef41Sopenharmony_ci<p>The value <code>'android'</code> may also be returned if Node.js is built on the Android 6491cb0ef41Sopenharmony_cioperating system. <a href="https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os">Android support is experimental</a>.</p> 6501cb0ef41Sopenharmony_ci</section><section><h3><code>os.release()</code><span><a class="mark" href="#osrelease" id="osrelease">#</a></span><a aria-hidden="true" class="legacy" id="os_os_release"></a></h3> 6511cb0ef41Sopenharmony_ci<div class="api_metadata"> 6521cb0ef41Sopenharmony_ci<span>Added in: v0.3.3</span> 6531cb0ef41Sopenharmony_ci</div> 6541cb0ef41Sopenharmony_ci<ul> 6551cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 6561cb0ef41Sopenharmony_ci</ul> 6571cb0ef41Sopenharmony_ci<p>Returns the operating system as a string.</p> 6581cb0ef41Sopenharmony_ci<p>On POSIX systems, the operating system release is determined by calling 6591cb0ef41Sopenharmony_ci<a href="https://linux.die.net/man/3/uname"><code>uname(3)</code></a>. On Windows, <code>GetVersionExW()</code> is used. See 6601cb0ef41Sopenharmony_ci<a href="https://en.wikipedia.org/wiki/Uname#Examples">https://en.wikipedia.org/wiki/Uname#Examples</a> for more information.</p> 6611cb0ef41Sopenharmony_ci</section><section><h3><code>os.setPriority([pid, ]priority)</code><span><a class="mark" href="#ossetprioritypid-priority" id="ossetprioritypid-priority">#</a></span><a aria-hidden="true" class="legacy" id="os_os_setpriority_pid_priority"></a></h3> 6621cb0ef41Sopenharmony_ci<div class="api_metadata"> 6631cb0ef41Sopenharmony_ci<span>Added in: v10.10.0</span> 6641cb0ef41Sopenharmony_ci</div> 6651cb0ef41Sopenharmony_ci<ul> 6661cb0ef41Sopenharmony_ci<li><code>pid</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><integer></a> The process ID to set scheduling priority for. 6671cb0ef41Sopenharmony_ci<strong>Default:</strong> <code>0</code>.</li> 6681cb0ef41Sopenharmony_ci<li><code>priority</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><integer></a> The scheduling priority to assign to the process.</li> 6691cb0ef41Sopenharmony_ci</ul> 6701cb0ef41Sopenharmony_ci<p>Attempts to set the scheduling priority for the process specified by <code>pid</code>. If 6711cb0ef41Sopenharmony_ci<code>pid</code> is not provided or is <code>0</code>, the process ID of the current process is used.</p> 6721cb0ef41Sopenharmony_ci<p>The <code>priority</code> input must be an integer between <code>-20</code> (high priority) and <code>19</code> 6731cb0ef41Sopenharmony_ci(low priority). Due to differences between Unix priority levels and Windows 6741cb0ef41Sopenharmony_cipriority classes, <code>priority</code> is mapped to one of six priority constants in 6751cb0ef41Sopenharmony_ci<code>os.constants.priority</code>. When retrieving a process priority level, this range 6761cb0ef41Sopenharmony_cimapping may cause the return value to be slightly different on Windows. To avoid 6771cb0ef41Sopenharmony_ciconfusion, set <code>priority</code> to one of the priority constants.</p> 6781cb0ef41Sopenharmony_ci<p>On Windows, setting priority to <code>PRIORITY_HIGHEST</code> requires elevated user 6791cb0ef41Sopenharmony_ciprivileges. Otherwise the set priority will be silently reduced to 6801cb0ef41Sopenharmony_ci<code>PRIORITY_HIGH</code>.</p> 6811cb0ef41Sopenharmony_ci</section><section><h3><code>os.tmpdir()</code><span><a class="mark" href="#ostmpdir" id="ostmpdir">#</a></span><a aria-hidden="true" class="legacy" id="os_os_tmpdir"></a></h3> 6821cb0ef41Sopenharmony_ci<div class="api_metadata"> 6831cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary> 6841cb0ef41Sopenharmony_ci<table> 6851cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr> 6861cb0ef41Sopenharmony_ci<tr><td>v2.0.0</td> 6871cb0ef41Sopenharmony_ci<td><p>This function is now cross-platform consistent and no longer returns a path with a trailing slash on any platform.</p></td></tr> 6881cb0ef41Sopenharmony_ci<tr><td>v0.9.9</td> 6891cb0ef41Sopenharmony_ci<td><p><span>Added in: v0.9.9</span></p></td></tr> 6901cb0ef41Sopenharmony_ci</tbody></table> 6911cb0ef41Sopenharmony_ci</details> 6921cb0ef41Sopenharmony_ci</div> 6931cb0ef41Sopenharmony_ci<ul> 6941cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 6951cb0ef41Sopenharmony_ci</ul> 6961cb0ef41Sopenharmony_ci<p>Returns the operating system's default directory for temporary files as a 6971cb0ef41Sopenharmony_cistring.</p> 6981cb0ef41Sopenharmony_ci</section><section><h3><code>os.totalmem()</code><span><a class="mark" href="#ostotalmem" id="ostotalmem">#</a></span><a aria-hidden="true" class="legacy" id="os_os_totalmem"></a></h3> 6991cb0ef41Sopenharmony_ci<div class="api_metadata"> 7001cb0ef41Sopenharmony_ci<span>Added in: v0.3.3</span> 7011cb0ef41Sopenharmony_ci</div> 7021cb0ef41Sopenharmony_ci<ul> 7031cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><integer></a></li> 7041cb0ef41Sopenharmony_ci</ul> 7051cb0ef41Sopenharmony_ci<p>Returns the total amount of system memory in bytes as an integer.</p> 7061cb0ef41Sopenharmony_ci</section><section><h3><code>os.type()</code><span><a class="mark" href="#ostype" id="ostype">#</a></span><a aria-hidden="true" class="legacy" id="os_os_type"></a></h3> 7071cb0ef41Sopenharmony_ci<div class="api_metadata"> 7081cb0ef41Sopenharmony_ci<span>Added in: v0.3.3</span> 7091cb0ef41Sopenharmony_ci</div> 7101cb0ef41Sopenharmony_ci<ul> 7111cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 7121cb0ef41Sopenharmony_ci</ul> 7131cb0ef41Sopenharmony_ci<p>Returns the operating system name as returned by <a href="https://linux.die.net/man/3/uname"><code>uname(3)</code></a>. For example, it 7141cb0ef41Sopenharmony_cireturns <code>'Linux'</code> on Linux, <code>'Darwin'</code> on macOS, and <code>'Windows_NT'</code> on Windows.</p> 7151cb0ef41Sopenharmony_ci<p>See <a href="https://en.wikipedia.org/wiki/Uname#Examples">https://en.wikipedia.org/wiki/Uname#Examples</a> for additional information 7161cb0ef41Sopenharmony_ciabout the output of running <a href="https://linux.die.net/man/3/uname"><code>uname(3)</code></a> on various operating systems.</p> 7171cb0ef41Sopenharmony_ci</section><section><h3><code>os.uptime()</code><span><a class="mark" href="#osuptime" id="osuptime">#</a></span><a aria-hidden="true" class="legacy" id="os_os_uptime"></a></h3> 7181cb0ef41Sopenharmony_ci<div class="api_metadata"> 7191cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary> 7201cb0ef41Sopenharmony_ci<table> 7211cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr> 7221cb0ef41Sopenharmony_ci<tr><td>v10.0.0</td> 7231cb0ef41Sopenharmony_ci<td><p>The result of this function no longer contains a fraction component on Windows.</p></td></tr> 7241cb0ef41Sopenharmony_ci<tr><td>v0.3.3</td> 7251cb0ef41Sopenharmony_ci<td><p><span>Added in: v0.3.3</span></p></td></tr> 7261cb0ef41Sopenharmony_ci</tbody></table> 7271cb0ef41Sopenharmony_ci</details> 7281cb0ef41Sopenharmony_ci</div> 7291cb0ef41Sopenharmony_ci<ul> 7301cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type" class="type"><integer></a></li> 7311cb0ef41Sopenharmony_ci</ul> 7321cb0ef41Sopenharmony_ci<p>Returns the system uptime in number of seconds.</p> 7331cb0ef41Sopenharmony_ci</section><section><h3><code>os.userInfo([options])</code><span><a class="mark" href="#osuserinfooptions" id="osuserinfooptions">#</a></span><a aria-hidden="true" class="legacy" id="os_os_userinfo_options"></a></h3> 7341cb0ef41Sopenharmony_ci<div class="api_metadata"> 7351cb0ef41Sopenharmony_ci<span>Added in: v6.0.0</span> 7361cb0ef41Sopenharmony_ci</div> 7371cb0ef41Sopenharmony_ci<ul> 7381cb0ef41Sopenharmony_ci<li><code>options</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type"><Object></a> 7391cb0ef41Sopenharmony_ci<ul> 7401cb0ef41Sopenharmony_ci<li><code>encoding</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a> Character encoding used to interpret resulting strings. 7411cb0ef41Sopenharmony_ciIf <code>encoding</code> is set to <code>'buffer'</code>, the <code>username</code>, <code>shell</code>, and <code>homedir</code> 7421cb0ef41Sopenharmony_civalues will be <code>Buffer</code> instances. <strong>Default:</strong> <code>'utf8'</code>.</li> 7431cb0ef41Sopenharmony_ci</ul> 7441cb0ef41Sopenharmony_ci</li> 7451cb0ef41Sopenharmony_ci<li>Returns: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" class="type"><Object></a></li> 7461cb0ef41Sopenharmony_ci</ul> 7471cb0ef41Sopenharmony_ci<p>Returns information about the currently effective user. On POSIX platforms, 7481cb0ef41Sopenharmony_cithis is typically a subset of the password file. The returned object includes 7491cb0ef41Sopenharmony_cithe <code>username</code>, <code>uid</code>, <code>gid</code>, <code>shell</code>, and <code>homedir</code>. On Windows, the <code>uid</code> and 7501cb0ef41Sopenharmony_ci<code>gid</code> fields are <code>-1</code>, and <code>shell</code> is <code>null</code>.</p> 7511cb0ef41Sopenharmony_ci<p>The value of <code>homedir</code> returned by <code>os.userInfo()</code> is provided by the operating 7521cb0ef41Sopenharmony_cisystem. This differs from the result of <code>os.homedir()</code>, which queries 7531cb0ef41Sopenharmony_cienvironment variables for the home directory before falling back to the 7541cb0ef41Sopenharmony_cioperating system response.</p> 7551cb0ef41Sopenharmony_ci<p>Throws a <a href="errors.html#class-systemerror"><code>SystemError</code></a> if a user has no <code>username</code> or <code>homedir</code>.</p> 7561cb0ef41Sopenharmony_ci</section><section><h3><code>os.version()</code><span><a class="mark" href="#osversion" id="osversion">#</a></span><a aria-hidden="true" class="legacy" id="os_os_version"></a></h3> 7571cb0ef41Sopenharmony_ci<div class="api_metadata"> 7581cb0ef41Sopenharmony_ci<span>Added in: v13.11.0, v12.17.0</span> 7591cb0ef41Sopenharmony_ci</div> 7601cb0ef41Sopenharmony_ci<ul> 7611cb0ef41Sopenharmony_ci<li>Returns <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type" class="type"><string></a></li> 7621cb0ef41Sopenharmony_ci</ul> 7631cb0ef41Sopenharmony_ci<p>Returns a string identifying the kernel version.</p> 7641cb0ef41Sopenharmony_ci<p>On POSIX systems, the operating system release is determined by calling 7651cb0ef41Sopenharmony_ci<a href="https://linux.die.net/man/3/uname"><code>uname(3)</code></a>. On Windows, <code>RtlGetVersion()</code> is used, and if it is not 7661cb0ef41Sopenharmony_ciavailable, <code>GetVersionExW()</code> will be used. See 7671cb0ef41Sopenharmony_ci<a href="https://en.wikipedia.org/wiki/Uname#Examples">https://en.wikipedia.org/wiki/Uname#Examples</a> for more information.</p> 7681cb0ef41Sopenharmony_ci</section><section><h3>OS constants<span><a class="mark" href="#os-constants" id="os-constants">#</a></span><a aria-hidden="true" class="legacy" id="os_os_constants_1"></a></h3> 7691cb0ef41Sopenharmony_ci<p>The following constants are exported by <code>os.constants</code>.</p> 7701cb0ef41Sopenharmony_ci<p>Not all constants will be available on every operating system.</p> 7711cb0ef41Sopenharmony_ci<h4>Signal constants<span><a class="mark" href="#signal-constants" id="signal-constants">#</a></span><a aria-hidden="true" class="legacy" id="os_signal_constants"></a></h4> 7721cb0ef41Sopenharmony_ci<div class="api_metadata"> 7731cb0ef41Sopenharmony_ci<details class="changelog"><summary>History</summary> 7741cb0ef41Sopenharmony_ci<table> 7751cb0ef41Sopenharmony_ci<tbody><tr><th>Version</th><th>Changes</th></tr> 7761cb0ef41Sopenharmony_ci<tr><td>v5.11.0</td> 7771cb0ef41Sopenharmony_ci<td><p>Added support for <code>SIGINFO</code>.</p></td></tr> 7781cb0ef41Sopenharmony_ci</tbody></table> 7791cb0ef41Sopenharmony_ci</details> 7801cb0ef41Sopenharmony_ci</div> 7811cb0ef41Sopenharmony_ci<p>The following signal constants are exported by <code>os.constants.signals</code>.</p> 7821cb0ef41Sopenharmony_ci<table> 7831cb0ef41Sopenharmony_ci <tbody><tr> 7841cb0ef41Sopenharmony_ci <th>Constant</th> 7851cb0ef41Sopenharmony_ci <th>Description</th> 7861cb0ef41Sopenharmony_ci </tr> 7871cb0ef41Sopenharmony_ci <tr> 7881cb0ef41Sopenharmony_ci <td><code>SIGHUP</code></td> 7891cb0ef41Sopenharmony_ci <td>Sent to indicate when a controlling terminal is closed or a parent 7901cb0ef41Sopenharmony_ci process exits.</td> 7911cb0ef41Sopenharmony_ci </tr> 7921cb0ef41Sopenharmony_ci <tr> 7931cb0ef41Sopenharmony_ci <td><code>SIGINT</code></td> 7941cb0ef41Sopenharmony_ci <td>Sent to indicate when a user wishes to interrupt a process 7951cb0ef41Sopenharmony_ci (<kbd>Ctrl</kbd>+<kbd>C</kbd>).</td> 7961cb0ef41Sopenharmony_ci </tr> 7971cb0ef41Sopenharmony_ci <tr> 7981cb0ef41Sopenharmony_ci <td><code>SIGQUIT</code></td> 7991cb0ef41Sopenharmony_ci <td>Sent to indicate when a user wishes to terminate a process and perform a 8001cb0ef41Sopenharmony_ci core dump.</td> 8011cb0ef41Sopenharmony_ci </tr> 8021cb0ef41Sopenharmony_ci <tr> 8031cb0ef41Sopenharmony_ci <td><code>SIGILL</code></td> 8041cb0ef41Sopenharmony_ci <td>Sent to a process to notify that it has attempted to perform an illegal, 8051cb0ef41Sopenharmony_ci malformed, unknown, or privileged instruction.</td> 8061cb0ef41Sopenharmony_ci </tr> 8071cb0ef41Sopenharmony_ci <tr> 8081cb0ef41Sopenharmony_ci <td><code>SIGTRAP</code></td> 8091cb0ef41Sopenharmony_ci <td>Sent to a process when an exception has occurred.</td> 8101cb0ef41Sopenharmony_ci </tr> 8111cb0ef41Sopenharmony_ci <tr> 8121cb0ef41Sopenharmony_ci <td><code>SIGABRT</code></td> 8131cb0ef41Sopenharmony_ci <td>Sent to a process to request that it abort.</td> 8141cb0ef41Sopenharmony_ci </tr> 8151cb0ef41Sopenharmony_ci <tr> 8161cb0ef41Sopenharmony_ci <td><code>SIGIOT</code></td> 8171cb0ef41Sopenharmony_ci <td>Synonym for <code>SIGABRT</code></td> 8181cb0ef41Sopenharmony_ci </tr> 8191cb0ef41Sopenharmony_ci <tr> 8201cb0ef41Sopenharmony_ci <td><code>SIGBUS</code></td> 8211cb0ef41Sopenharmony_ci <td>Sent to a process to notify that it has caused a bus error.</td> 8221cb0ef41Sopenharmony_ci </tr> 8231cb0ef41Sopenharmony_ci <tr> 8241cb0ef41Sopenharmony_ci <td><code>SIGFPE</code></td> 8251cb0ef41Sopenharmony_ci <td>Sent to a process to notify that it has performed an illegal arithmetic 8261cb0ef41Sopenharmony_ci operation.</td> 8271cb0ef41Sopenharmony_ci </tr> 8281cb0ef41Sopenharmony_ci <tr> 8291cb0ef41Sopenharmony_ci <td><code>SIGKILL</code></td> 8301cb0ef41Sopenharmony_ci <td>Sent to a process to terminate it immediately.</td> 8311cb0ef41Sopenharmony_ci </tr> 8321cb0ef41Sopenharmony_ci <tr> 8331cb0ef41Sopenharmony_ci <td><code>SIGUSR1</code> <code>SIGUSR2</code></td> 8341cb0ef41Sopenharmony_ci <td>Sent to a process to identify user-defined conditions.</td> 8351cb0ef41Sopenharmony_ci </tr> 8361cb0ef41Sopenharmony_ci <tr> 8371cb0ef41Sopenharmony_ci <td><code>SIGSEGV</code></td> 8381cb0ef41Sopenharmony_ci <td>Sent to a process to notify of a segmentation fault.</td> 8391cb0ef41Sopenharmony_ci </tr> 8401cb0ef41Sopenharmony_ci <tr> 8411cb0ef41Sopenharmony_ci <td><code>SIGPIPE</code></td> 8421cb0ef41Sopenharmony_ci <td>Sent to a process when it has attempted to write to a disconnected 8431cb0ef41Sopenharmony_ci pipe.</td> 8441cb0ef41Sopenharmony_ci </tr> 8451cb0ef41Sopenharmony_ci <tr> 8461cb0ef41Sopenharmony_ci <td><code>SIGALRM</code></td> 8471cb0ef41Sopenharmony_ci <td>Sent to a process when a system timer elapses.</td> 8481cb0ef41Sopenharmony_ci </tr> 8491cb0ef41Sopenharmony_ci <tr> 8501cb0ef41Sopenharmony_ci <td><code>SIGTERM</code></td> 8511cb0ef41Sopenharmony_ci <td>Sent to a process to request termination.</td> 8521cb0ef41Sopenharmony_ci </tr> 8531cb0ef41Sopenharmony_ci <tr> 8541cb0ef41Sopenharmony_ci <td><code>SIGCHLD</code></td> 8551cb0ef41Sopenharmony_ci <td>Sent to a process when a child process terminates.</td> 8561cb0ef41Sopenharmony_ci </tr> 8571cb0ef41Sopenharmony_ci <tr> 8581cb0ef41Sopenharmony_ci <td><code>SIGSTKFLT</code></td> 8591cb0ef41Sopenharmony_ci <td>Sent to a process to indicate a stack fault on a coprocessor.</td> 8601cb0ef41Sopenharmony_ci </tr> 8611cb0ef41Sopenharmony_ci <tr> 8621cb0ef41Sopenharmony_ci <td><code>SIGCONT</code></td> 8631cb0ef41Sopenharmony_ci <td>Sent to instruct the operating system to continue a paused process.</td> 8641cb0ef41Sopenharmony_ci </tr> 8651cb0ef41Sopenharmony_ci <tr> 8661cb0ef41Sopenharmony_ci <td><code>SIGSTOP</code></td> 8671cb0ef41Sopenharmony_ci <td>Sent to instruct the operating system to halt a process.</td> 8681cb0ef41Sopenharmony_ci </tr> 8691cb0ef41Sopenharmony_ci <tr> 8701cb0ef41Sopenharmony_ci <td><code>SIGTSTP</code></td> 8711cb0ef41Sopenharmony_ci <td>Sent to a process to request it to stop.</td> 8721cb0ef41Sopenharmony_ci </tr> 8731cb0ef41Sopenharmony_ci <tr> 8741cb0ef41Sopenharmony_ci <td><code>SIGBREAK</code></td> 8751cb0ef41Sopenharmony_ci <td>Sent to indicate when a user wishes to interrupt a process.</td> 8761cb0ef41Sopenharmony_ci </tr> 8771cb0ef41Sopenharmony_ci <tr> 8781cb0ef41Sopenharmony_ci <td><code>SIGTTIN</code></td> 8791cb0ef41Sopenharmony_ci <td>Sent to a process when it reads from the TTY while in the 8801cb0ef41Sopenharmony_ci background.</td> 8811cb0ef41Sopenharmony_ci </tr> 8821cb0ef41Sopenharmony_ci <tr> 8831cb0ef41Sopenharmony_ci <td><code>SIGTTOU</code></td> 8841cb0ef41Sopenharmony_ci <td>Sent to a process when it writes to the TTY while in the 8851cb0ef41Sopenharmony_ci background.</td> 8861cb0ef41Sopenharmony_ci </tr> 8871cb0ef41Sopenharmony_ci <tr> 8881cb0ef41Sopenharmony_ci <td><code>SIGURG</code></td> 8891cb0ef41Sopenharmony_ci <td>Sent to a process when a socket has urgent data to read.</td> 8901cb0ef41Sopenharmony_ci </tr> 8911cb0ef41Sopenharmony_ci <tr> 8921cb0ef41Sopenharmony_ci <td><code>SIGXCPU</code></td> 8931cb0ef41Sopenharmony_ci <td>Sent to a process when it has exceeded its limit on CPU usage.</td> 8941cb0ef41Sopenharmony_ci </tr> 8951cb0ef41Sopenharmony_ci <tr> 8961cb0ef41Sopenharmony_ci <td><code>SIGXFSZ</code></td> 8971cb0ef41Sopenharmony_ci <td>Sent to a process when it grows a file larger than the maximum 8981cb0ef41Sopenharmony_ci allowed.</td> 8991cb0ef41Sopenharmony_ci </tr> 9001cb0ef41Sopenharmony_ci <tr> 9011cb0ef41Sopenharmony_ci <td><code>SIGVTALRM</code></td> 9021cb0ef41Sopenharmony_ci <td>Sent to a process when a virtual timer has elapsed.</td> 9031cb0ef41Sopenharmony_ci </tr> 9041cb0ef41Sopenharmony_ci <tr> 9051cb0ef41Sopenharmony_ci <td><code>SIGPROF</code></td> 9061cb0ef41Sopenharmony_ci <td>Sent to a process when a system timer has elapsed.</td> 9071cb0ef41Sopenharmony_ci </tr> 9081cb0ef41Sopenharmony_ci <tr> 9091cb0ef41Sopenharmony_ci <td><code>SIGWINCH</code></td> 9101cb0ef41Sopenharmony_ci <td>Sent to a process when the controlling terminal has changed its 9111cb0ef41Sopenharmony_ci size.</td> 9121cb0ef41Sopenharmony_ci </tr> 9131cb0ef41Sopenharmony_ci <tr> 9141cb0ef41Sopenharmony_ci <td><code>SIGIO</code></td> 9151cb0ef41Sopenharmony_ci <td>Sent to a process when I/O is available.</td> 9161cb0ef41Sopenharmony_ci </tr> 9171cb0ef41Sopenharmony_ci <tr> 9181cb0ef41Sopenharmony_ci <td><code>SIGPOLL</code></td> 9191cb0ef41Sopenharmony_ci <td>Synonym for <code>SIGIO</code></td> 9201cb0ef41Sopenharmony_ci </tr> 9211cb0ef41Sopenharmony_ci <tr> 9221cb0ef41Sopenharmony_ci <td><code>SIGLOST</code></td> 9231cb0ef41Sopenharmony_ci <td>Sent to a process when a file lock has been lost.</td> 9241cb0ef41Sopenharmony_ci </tr> 9251cb0ef41Sopenharmony_ci <tr> 9261cb0ef41Sopenharmony_ci <td><code>SIGPWR</code></td> 9271cb0ef41Sopenharmony_ci <td>Sent to a process to notify of a power failure.</td> 9281cb0ef41Sopenharmony_ci </tr> 9291cb0ef41Sopenharmony_ci <tr> 9301cb0ef41Sopenharmony_ci <td><code>SIGINFO</code></td> 9311cb0ef41Sopenharmony_ci <td>Synonym for <code>SIGPWR</code></td> 9321cb0ef41Sopenharmony_ci </tr> 9331cb0ef41Sopenharmony_ci <tr> 9341cb0ef41Sopenharmony_ci <td><code>SIGSYS</code></td> 9351cb0ef41Sopenharmony_ci <td>Sent to a process to notify of a bad argument.</td> 9361cb0ef41Sopenharmony_ci </tr> 9371cb0ef41Sopenharmony_ci <tr> 9381cb0ef41Sopenharmony_ci <td><code>SIGUNUSED</code></td> 9391cb0ef41Sopenharmony_ci <td>Synonym for <code>SIGSYS</code></td> 9401cb0ef41Sopenharmony_ci </tr> 9411cb0ef41Sopenharmony_ci</tbody></table> 9421cb0ef41Sopenharmony_ci<h4>Error constants<span><a class="mark" href="#error-constants" id="error-constants">#</a></span><a aria-hidden="true" class="legacy" id="os_error_constants"></a></h4> 9431cb0ef41Sopenharmony_ci<p>The following error constants are exported by <code>os.constants.errno</code>.</p> 9441cb0ef41Sopenharmony_ci<h5>POSIX error constants<span><a class="mark" href="#posix-error-constants" id="posix-error-constants">#</a></span><a aria-hidden="true" class="legacy" id="os_posix_error_constants"></a></h5> 9451cb0ef41Sopenharmony_ci<table> 9461cb0ef41Sopenharmony_ci <tbody><tr> 9471cb0ef41Sopenharmony_ci <th>Constant</th> 9481cb0ef41Sopenharmony_ci <th>Description</th> 9491cb0ef41Sopenharmony_ci </tr> 9501cb0ef41Sopenharmony_ci <tr> 9511cb0ef41Sopenharmony_ci <td><code>E2BIG</code></td> 9521cb0ef41Sopenharmony_ci <td>Indicates that the list of arguments is longer than expected.</td> 9531cb0ef41Sopenharmony_ci </tr> 9541cb0ef41Sopenharmony_ci <tr> 9551cb0ef41Sopenharmony_ci <td><code>EACCES</code></td> 9561cb0ef41Sopenharmony_ci <td>Indicates that the operation did not have sufficient permissions.</td> 9571cb0ef41Sopenharmony_ci </tr> 9581cb0ef41Sopenharmony_ci <tr> 9591cb0ef41Sopenharmony_ci <td><code>EADDRINUSE</code></td> 9601cb0ef41Sopenharmony_ci <td>Indicates that the network address is already in use.</td> 9611cb0ef41Sopenharmony_ci </tr> 9621cb0ef41Sopenharmony_ci <tr> 9631cb0ef41Sopenharmony_ci <td><code>EADDRNOTAVAIL</code></td> 9641cb0ef41Sopenharmony_ci <td>Indicates that the network address is currently unavailable for 9651cb0ef41Sopenharmony_ci use.</td> 9661cb0ef41Sopenharmony_ci </tr> 9671cb0ef41Sopenharmony_ci <tr> 9681cb0ef41Sopenharmony_ci <td><code>EAFNOSUPPORT</code></td> 9691cb0ef41Sopenharmony_ci <td>Indicates that the network address family is not supported.</td> 9701cb0ef41Sopenharmony_ci </tr> 9711cb0ef41Sopenharmony_ci <tr> 9721cb0ef41Sopenharmony_ci <td><code>EAGAIN</code></td> 9731cb0ef41Sopenharmony_ci <td>Indicates that there is no data available and to try the 9741cb0ef41Sopenharmony_ci operation again later.</td> 9751cb0ef41Sopenharmony_ci </tr> 9761cb0ef41Sopenharmony_ci <tr> 9771cb0ef41Sopenharmony_ci <td><code>EALREADY</code></td> 9781cb0ef41Sopenharmony_ci <td>Indicates that the socket already has a pending connection in 9791cb0ef41Sopenharmony_ci progress.</td> 9801cb0ef41Sopenharmony_ci </tr> 9811cb0ef41Sopenharmony_ci <tr> 9821cb0ef41Sopenharmony_ci <td><code>EBADF</code></td> 9831cb0ef41Sopenharmony_ci <td>Indicates that a file descriptor is not valid.</td> 9841cb0ef41Sopenharmony_ci </tr> 9851cb0ef41Sopenharmony_ci <tr> 9861cb0ef41Sopenharmony_ci <td><code>EBADMSG</code></td> 9871cb0ef41Sopenharmony_ci <td>Indicates an invalid data message.</td> 9881cb0ef41Sopenharmony_ci </tr> 9891cb0ef41Sopenharmony_ci <tr> 9901cb0ef41Sopenharmony_ci <td><code>EBUSY</code></td> 9911cb0ef41Sopenharmony_ci <td>Indicates that a device or resource is busy.</td> 9921cb0ef41Sopenharmony_ci </tr> 9931cb0ef41Sopenharmony_ci <tr> 9941cb0ef41Sopenharmony_ci <td><code>ECANCELED</code></td> 9951cb0ef41Sopenharmony_ci <td>Indicates that an operation was canceled.</td> 9961cb0ef41Sopenharmony_ci </tr> 9971cb0ef41Sopenharmony_ci <tr> 9981cb0ef41Sopenharmony_ci <td><code>ECHILD</code></td> 9991cb0ef41Sopenharmony_ci <td>Indicates that there are no child processes.</td> 10001cb0ef41Sopenharmony_ci </tr> 10011cb0ef41Sopenharmony_ci <tr> 10021cb0ef41Sopenharmony_ci <td><code>ECONNABORTED</code></td> 10031cb0ef41Sopenharmony_ci <td>Indicates that the network connection has been aborted.</td> 10041cb0ef41Sopenharmony_ci </tr> 10051cb0ef41Sopenharmony_ci <tr> 10061cb0ef41Sopenharmony_ci <td><code>ECONNREFUSED</code></td> 10071cb0ef41Sopenharmony_ci <td>Indicates that the network connection has been refused.</td> 10081cb0ef41Sopenharmony_ci </tr> 10091cb0ef41Sopenharmony_ci <tr> 10101cb0ef41Sopenharmony_ci <td><code>ECONNRESET</code></td> 10111cb0ef41Sopenharmony_ci <td>Indicates that the network connection has been reset.</td> 10121cb0ef41Sopenharmony_ci </tr> 10131cb0ef41Sopenharmony_ci <tr> 10141cb0ef41Sopenharmony_ci <td><code>EDEADLK</code></td> 10151cb0ef41Sopenharmony_ci <td>Indicates that a resource deadlock has been avoided.</td> 10161cb0ef41Sopenharmony_ci </tr> 10171cb0ef41Sopenharmony_ci <tr> 10181cb0ef41Sopenharmony_ci <td><code>EDESTADDRREQ</code></td> 10191cb0ef41Sopenharmony_ci <td>Indicates that a destination address is required.</td> 10201cb0ef41Sopenharmony_ci </tr> 10211cb0ef41Sopenharmony_ci <tr> 10221cb0ef41Sopenharmony_ci <td><code>EDOM</code></td> 10231cb0ef41Sopenharmony_ci <td>Indicates that an argument is out of the domain of the function.</td> 10241cb0ef41Sopenharmony_ci </tr> 10251cb0ef41Sopenharmony_ci <tr> 10261cb0ef41Sopenharmony_ci <td><code>EDQUOT</code></td> 10271cb0ef41Sopenharmony_ci <td>Indicates that the disk quota has been exceeded.</td> 10281cb0ef41Sopenharmony_ci </tr> 10291cb0ef41Sopenharmony_ci <tr> 10301cb0ef41Sopenharmony_ci <td><code>EEXIST</code></td> 10311cb0ef41Sopenharmony_ci <td>Indicates that the file already exists.</td> 10321cb0ef41Sopenharmony_ci </tr> 10331cb0ef41Sopenharmony_ci <tr> 10341cb0ef41Sopenharmony_ci <td><code>EFAULT</code></td> 10351cb0ef41Sopenharmony_ci <td>Indicates an invalid pointer address.</td> 10361cb0ef41Sopenharmony_ci </tr> 10371cb0ef41Sopenharmony_ci <tr> 10381cb0ef41Sopenharmony_ci <td><code>EFBIG</code></td> 10391cb0ef41Sopenharmony_ci <td>Indicates that the file is too large.</td> 10401cb0ef41Sopenharmony_ci </tr> 10411cb0ef41Sopenharmony_ci <tr> 10421cb0ef41Sopenharmony_ci <td><code>EHOSTUNREACH</code></td> 10431cb0ef41Sopenharmony_ci <td>Indicates that the host is unreachable.</td> 10441cb0ef41Sopenharmony_ci </tr> 10451cb0ef41Sopenharmony_ci <tr> 10461cb0ef41Sopenharmony_ci <td><code>EIDRM</code></td> 10471cb0ef41Sopenharmony_ci <td>Indicates that the identifier has been removed.</td> 10481cb0ef41Sopenharmony_ci </tr> 10491cb0ef41Sopenharmony_ci <tr> 10501cb0ef41Sopenharmony_ci <td><code>EILSEQ</code></td> 10511cb0ef41Sopenharmony_ci <td>Indicates an illegal byte sequence.</td> 10521cb0ef41Sopenharmony_ci </tr> 10531cb0ef41Sopenharmony_ci <tr> 10541cb0ef41Sopenharmony_ci <td><code>EINPROGRESS</code></td> 10551cb0ef41Sopenharmony_ci <td>Indicates that an operation is already in progress.</td> 10561cb0ef41Sopenharmony_ci </tr> 10571cb0ef41Sopenharmony_ci <tr> 10581cb0ef41Sopenharmony_ci <td><code>EINTR</code></td> 10591cb0ef41Sopenharmony_ci <td>Indicates that a function call was interrupted.</td> 10601cb0ef41Sopenharmony_ci </tr> 10611cb0ef41Sopenharmony_ci <tr> 10621cb0ef41Sopenharmony_ci <td><code>EINVAL</code></td> 10631cb0ef41Sopenharmony_ci <td>Indicates that an invalid argument was provided.</td> 10641cb0ef41Sopenharmony_ci </tr> 10651cb0ef41Sopenharmony_ci <tr> 10661cb0ef41Sopenharmony_ci <td><code>EIO</code></td> 10671cb0ef41Sopenharmony_ci <td>Indicates an otherwise unspecified I/O error.</td> 10681cb0ef41Sopenharmony_ci </tr> 10691cb0ef41Sopenharmony_ci <tr> 10701cb0ef41Sopenharmony_ci <td><code>EISCONN</code></td> 10711cb0ef41Sopenharmony_ci <td>Indicates that the socket is connected.</td> 10721cb0ef41Sopenharmony_ci </tr> 10731cb0ef41Sopenharmony_ci <tr> 10741cb0ef41Sopenharmony_ci <td><code>EISDIR</code></td> 10751cb0ef41Sopenharmony_ci <td>Indicates that the path is a directory.</td> 10761cb0ef41Sopenharmony_ci </tr> 10771cb0ef41Sopenharmony_ci <tr> 10781cb0ef41Sopenharmony_ci <td><code>ELOOP</code></td> 10791cb0ef41Sopenharmony_ci <td>Indicates too many levels of symbolic links in a path.</td> 10801cb0ef41Sopenharmony_ci </tr> 10811cb0ef41Sopenharmony_ci <tr> 10821cb0ef41Sopenharmony_ci <td><code>EMFILE</code></td> 10831cb0ef41Sopenharmony_ci <td>Indicates that there are too many open files.</td> 10841cb0ef41Sopenharmony_ci </tr> 10851cb0ef41Sopenharmony_ci <tr> 10861cb0ef41Sopenharmony_ci <td><code>EMLINK</code></td> 10871cb0ef41Sopenharmony_ci <td>Indicates that there are too many hard links to a file.</td> 10881cb0ef41Sopenharmony_ci </tr> 10891cb0ef41Sopenharmony_ci <tr> 10901cb0ef41Sopenharmony_ci <td><code>EMSGSIZE</code></td> 10911cb0ef41Sopenharmony_ci <td>Indicates that the provided message is too long.</td> 10921cb0ef41Sopenharmony_ci </tr> 10931cb0ef41Sopenharmony_ci <tr> 10941cb0ef41Sopenharmony_ci <td><code>EMULTIHOP</code></td> 10951cb0ef41Sopenharmony_ci <td>Indicates that a multihop was attempted.</td> 10961cb0ef41Sopenharmony_ci </tr> 10971cb0ef41Sopenharmony_ci <tr> 10981cb0ef41Sopenharmony_ci <td><code>ENAMETOOLONG</code></td> 10991cb0ef41Sopenharmony_ci <td>Indicates that the filename is too long.</td> 11001cb0ef41Sopenharmony_ci </tr> 11011cb0ef41Sopenharmony_ci <tr> 11021cb0ef41Sopenharmony_ci <td><code>ENETDOWN</code></td> 11031cb0ef41Sopenharmony_ci <td>Indicates that the network is down.</td> 11041cb0ef41Sopenharmony_ci </tr> 11051cb0ef41Sopenharmony_ci <tr> 11061cb0ef41Sopenharmony_ci <td><code>ENETRESET</code></td> 11071cb0ef41Sopenharmony_ci <td>Indicates that the connection has been aborted by the network.</td> 11081cb0ef41Sopenharmony_ci </tr> 11091cb0ef41Sopenharmony_ci <tr> 11101cb0ef41Sopenharmony_ci <td><code>ENETUNREACH</code></td> 11111cb0ef41Sopenharmony_ci <td>Indicates that the network is unreachable.</td> 11121cb0ef41Sopenharmony_ci </tr> 11131cb0ef41Sopenharmony_ci <tr> 11141cb0ef41Sopenharmony_ci <td><code>ENFILE</code></td> 11151cb0ef41Sopenharmony_ci <td>Indicates too many open files in the system.</td> 11161cb0ef41Sopenharmony_ci </tr> 11171cb0ef41Sopenharmony_ci <tr> 11181cb0ef41Sopenharmony_ci <td><code>ENOBUFS</code></td> 11191cb0ef41Sopenharmony_ci <td>Indicates that no buffer space is available.</td> 11201cb0ef41Sopenharmony_ci </tr> 11211cb0ef41Sopenharmony_ci <tr> 11221cb0ef41Sopenharmony_ci <td><code>ENODATA</code></td> 11231cb0ef41Sopenharmony_ci <td>Indicates that no message is available on the stream head read 11241cb0ef41Sopenharmony_ci queue.</td> 11251cb0ef41Sopenharmony_ci </tr> 11261cb0ef41Sopenharmony_ci <tr> 11271cb0ef41Sopenharmony_ci <td><code>ENODEV</code></td> 11281cb0ef41Sopenharmony_ci <td>Indicates that there is no such device.</td> 11291cb0ef41Sopenharmony_ci </tr> 11301cb0ef41Sopenharmony_ci <tr> 11311cb0ef41Sopenharmony_ci <td><code>ENOENT</code></td> 11321cb0ef41Sopenharmony_ci <td>Indicates that there is no such file or directory.</td> 11331cb0ef41Sopenharmony_ci </tr> 11341cb0ef41Sopenharmony_ci <tr> 11351cb0ef41Sopenharmony_ci <td><code>ENOEXEC</code></td> 11361cb0ef41Sopenharmony_ci <td>Indicates an exec format error.</td> 11371cb0ef41Sopenharmony_ci </tr> 11381cb0ef41Sopenharmony_ci <tr> 11391cb0ef41Sopenharmony_ci <td><code>ENOLCK</code></td> 11401cb0ef41Sopenharmony_ci <td>Indicates that there are no locks available.</td> 11411cb0ef41Sopenharmony_ci </tr> 11421cb0ef41Sopenharmony_ci <tr> 11431cb0ef41Sopenharmony_ci <td><code>ENOLINK</code></td> 11441cb0ef41Sopenharmony_ci <td>Indications that a link has been severed.</td> 11451cb0ef41Sopenharmony_ci </tr> 11461cb0ef41Sopenharmony_ci <tr> 11471cb0ef41Sopenharmony_ci <td><code>ENOMEM</code></td> 11481cb0ef41Sopenharmony_ci <td>Indicates that there is not enough space.</td> 11491cb0ef41Sopenharmony_ci </tr> 11501cb0ef41Sopenharmony_ci <tr> 11511cb0ef41Sopenharmony_ci <td><code>ENOMSG</code></td> 11521cb0ef41Sopenharmony_ci <td>Indicates that there is no message of the desired type.</td> 11531cb0ef41Sopenharmony_ci </tr> 11541cb0ef41Sopenharmony_ci <tr> 11551cb0ef41Sopenharmony_ci <td><code>ENOPROTOOPT</code></td> 11561cb0ef41Sopenharmony_ci <td>Indicates that a given protocol is not available.</td> 11571cb0ef41Sopenharmony_ci </tr> 11581cb0ef41Sopenharmony_ci <tr> 11591cb0ef41Sopenharmony_ci <td><code>ENOSPC</code></td> 11601cb0ef41Sopenharmony_ci <td>Indicates that there is no space available on the device.</td> 11611cb0ef41Sopenharmony_ci </tr> 11621cb0ef41Sopenharmony_ci <tr> 11631cb0ef41Sopenharmony_ci <td><code>ENOSR</code></td> 11641cb0ef41Sopenharmony_ci <td>Indicates that there are no stream resources available.</td> 11651cb0ef41Sopenharmony_ci </tr> 11661cb0ef41Sopenharmony_ci <tr> 11671cb0ef41Sopenharmony_ci <td><code>ENOSTR</code></td> 11681cb0ef41Sopenharmony_ci <td>Indicates that a given resource is not a stream.</td> 11691cb0ef41Sopenharmony_ci </tr> 11701cb0ef41Sopenharmony_ci <tr> 11711cb0ef41Sopenharmony_ci <td><code>ENOSYS</code></td> 11721cb0ef41Sopenharmony_ci <td>Indicates that a function has not been implemented.</td> 11731cb0ef41Sopenharmony_ci </tr> 11741cb0ef41Sopenharmony_ci <tr> 11751cb0ef41Sopenharmony_ci <td><code>ENOTCONN</code></td> 11761cb0ef41Sopenharmony_ci <td>Indicates that the socket is not connected.</td> 11771cb0ef41Sopenharmony_ci </tr> 11781cb0ef41Sopenharmony_ci <tr> 11791cb0ef41Sopenharmony_ci <td><code>ENOTDIR</code></td> 11801cb0ef41Sopenharmony_ci <td>Indicates that the path is not a directory.</td> 11811cb0ef41Sopenharmony_ci </tr> 11821cb0ef41Sopenharmony_ci <tr> 11831cb0ef41Sopenharmony_ci <td><code>ENOTEMPTY</code></td> 11841cb0ef41Sopenharmony_ci <td>Indicates that the directory is not empty.</td> 11851cb0ef41Sopenharmony_ci </tr> 11861cb0ef41Sopenharmony_ci <tr> 11871cb0ef41Sopenharmony_ci <td><code>ENOTSOCK</code></td> 11881cb0ef41Sopenharmony_ci <td>Indicates that the given item is not a socket.</td> 11891cb0ef41Sopenharmony_ci </tr> 11901cb0ef41Sopenharmony_ci <tr> 11911cb0ef41Sopenharmony_ci <td><code>ENOTSUP</code></td> 11921cb0ef41Sopenharmony_ci <td>Indicates that a given operation is not supported.</td> 11931cb0ef41Sopenharmony_ci </tr> 11941cb0ef41Sopenharmony_ci <tr> 11951cb0ef41Sopenharmony_ci <td><code>ENOTTY</code></td> 11961cb0ef41Sopenharmony_ci <td>Indicates an inappropriate I/O control operation.</td> 11971cb0ef41Sopenharmony_ci </tr> 11981cb0ef41Sopenharmony_ci <tr> 11991cb0ef41Sopenharmony_ci <td><code>ENXIO</code></td> 12001cb0ef41Sopenharmony_ci <td>Indicates no such device or address.</td> 12011cb0ef41Sopenharmony_ci </tr> 12021cb0ef41Sopenharmony_ci <tr> 12031cb0ef41Sopenharmony_ci <td><code>EOPNOTSUPP</code></td> 12041cb0ef41Sopenharmony_ci <td>Indicates that an operation is not supported on the socket. Although 12051cb0ef41Sopenharmony_ci <code>ENOTSUP</code> and <code>EOPNOTSUPP</code> have the same value 12061cb0ef41Sopenharmony_ci on Linux, according to POSIX.1 these error values should be distinct.)</td> 12071cb0ef41Sopenharmony_ci </tr> 12081cb0ef41Sopenharmony_ci <tr> 12091cb0ef41Sopenharmony_ci <td><code>EOVERFLOW</code></td> 12101cb0ef41Sopenharmony_ci <td>Indicates that a value is too large to be stored in a given data 12111cb0ef41Sopenharmony_ci type.</td> 12121cb0ef41Sopenharmony_ci </tr> 12131cb0ef41Sopenharmony_ci <tr> 12141cb0ef41Sopenharmony_ci <td><code>EPERM</code></td> 12151cb0ef41Sopenharmony_ci <td>Indicates that the operation is not permitted.</td> 12161cb0ef41Sopenharmony_ci </tr> 12171cb0ef41Sopenharmony_ci <tr> 12181cb0ef41Sopenharmony_ci <td><code>EPIPE</code></td> 12191cb0ef41Sopenharmony_ci <td>Indicates a broken pipe.</td> 12201cb0ef41Sopenharmony_ci </tr> 12211cb0ef41Sopenharmony_ci <tr> 12221cb0ef41Sopenharmony_ci <td><code>EPROTO</code></td> 12231cb0ef41Sopenharmony_ci <td>Indicates a protocol error.</td> 12241cb0ef41Sopenharmony_ci </tr> 12251cb0ef41Sopenharmony_ci <tr> 12261cb0ef41Sopenharmony_ci <td><code>EPROTONOSUPPORT</code></td> 12271cb0ef41Sopenharmony_ci <td>Indicates that a protocol is not supported.</td> 12281cb0ef41Sopenharmony_ci </tr> 12291cb0ef41Sopenharmony_ci <tr> 12301cb0ef41Sopenharmony_ci <td><code>EPROTOTYPE</code></td> 12311cb0ef41Sopenharmony_ci <td>Indicates the wrong type of protocol for a socket.</td> 12321cb0ef41Sopenharmony_ci </tr> 12331cb0ef41Sopenharmony_ci <tr> 12341cb0ef41Sopenharmony_ci <td><code>ERANGE</code></td> 12351cb0ef41Sopenharmony_ci <td>Indicates that the results are too large.</td> 12361cb0ef41Sopenharmony_ci </tr> 12371cb0ef41Sopenharmony_ci <tr> 12381cb0ef41Sopenharmony_ci <td><code>EROFS</code></td> 12391cb0ef41Sopenharmony_ci <td>Indicates that the file system is read only.</td> 12401cb0ef41Sopenharmony_ci </tr> 12411cb0ef41Sopenharmony_ci <tr> 12421cb0ef41Sopenharmony_ci <td><code>ESPIPE</code></td> 12431cb0ef41Sopenharmony_ci <td>Indicates an invalid seek operation.</td> 12441cb0ef41Sopenharmony_ci </tr> 12451cb0ef41Sopenharmony_ci <tr> 12461cb0ef41Sopenharmony_ci <td><code>ESRCH</code></td> 12471cb0ef41Sopenharmony_ci <td>Indicates that there is no such process.</td> 12481cb0ef41Sopenharmony_ci </tr> 12491cb0ef41Sopenharmony_ci <tr> 12501cb0ef41Sopenharmony_ci <td><code>ESTALE</code></td> 12511cb0ef41Sopenharmony_ci <td>Indicates that the file handle is stale.</td> 12521cb0ef41Sopenharmony_ci </tr> 12531cb0ef41Sopenharmony_ci <tr> 12541cb0ef41Sopenharmony_ci <td><code>ETIME</code></td> 12551cb0ef41Sopenharmony_ci <td>Indicates an expired timer.</td> 12561cb0ef41Sopenharmony_ci </tr> 12571cb0ef41Sopenharmony_ci <tr> 12581cb0ef41Sopenharmony_ci <td><code>ETIMEDOUT</code></td> 12591cb0ef41Sopenharmony_ci <td>Indicates that the connection timed out.</td> 12601cb0ef41Sopenharmony_ci </tr> 12611cb0ef41Sopenharmony_ci <tr> 12621cb0ef41Sopenharmony_ci <td><code>ETXTBSY</code></td> 12631cb0ef41Sopenharmony_ci <td>Indicates that a text file is busy.</td> 12641cb0ef41Sopenharmony_ci </tr> 12651cb0ef41Sopenharmony_ci <tr> 12661cb0ef41Sopenharmony_ci <td><code>EWOULDBLOCK</code></td> 12671cb0ef41Sopenharmony_ci <td>Indicates that the operation would block.</td> 12681cb0ef41Sopenharmony_ci </tr> 12691cb0ef41Sopenharmony_ci <tr> 12701cb0ef41Sopenharmony_ci <td><code>EXDEV</code></td> 12711cb0ef41Sopenharmony_ci <td>Indicates an improper link.</td> 12721cb0ef41Sopenharmony_ci </tr> 12731cb0ef41Sopenharmony_ci</tbody></table> 12741cb0ef41Sopenharmony_ci<h5>Windows-specific error constants<span><a class="mark" href="#windows-specific-error-constants" id="windows-specific-error-constants">#</a></span><a aria-hidden="true" class="legacy" id="os_windows_specific_error_constants"></a></h5> 12751cb0ef41Sopenharmony_ci<p>The following error codes are specific to the Windows operating system.</p> 12761cb0ef41Sopenharmony_ci<table> 12771cb0ef41Sopenharmony_ci <tbody><tr> 12781cb0ef41Sopenharmony_ci <th>Constant</th> 12791cb0ef41Sopenharmony_ci <th>Description</th> 12801cb0ef41Sopenharmony_ci </tr> 12811cb0ef41Sopenharmony_ci <tr> 12821cb0ef41Sopenharmony_ci <td><code>WSAEINTR</code></td> 12831cb0ef41Sopenharmony_ci <td>Indicates an interrupted function call.</td> 12841cb0ef41Sopenharmony_ci </tr> 12851cb0ef41Sopenharmony_ci <tr> 12861cb0ef41Sopenharmony_ci <td><code>WSAEBADF</code></td> 12871cb0ef41Sopenharmony_ci <td>Indicates an invalid file handle.</td> 12881cb0ef41Sopenharmony_ci </tr> 12891cb0ef41Sopenharmony_ci <tr> 12901cb0ef41Sopenharmony_ci <td><code>WSAEACCES</code></td> 12911cb0ef41Sopenharmony_ci <td>Indicates insufficient permissions to complete the operation.</td> 12921cb0ef41Sopenharmony_ci </tr> 12931cb0ef41Sopenharmony_ci <tr> 12941cb0ef41Sopenharmony_ci <td><code>WSAEFAULT</code></td> 12951cb0ef41Sopenharmony_ci <td>Indicates an invalid pointer address.</td> 12961cb0ef41Sopenharmony_ci </tr> 12971cb0ef41Sopenharmony_ci <tr> 12981cb0ef41Sopenharmony_ci <td><code>WSAEINVAL</code></td> 12991cb0ef41Sopenharmony_ci <td>Indicates that an invalid argument was passed.</td> 13001cb0ef41Sopenharmony_ci </tr> 13011cb0ef41Sopenharmony_ci <tr> 13021cb0ef41Sopenharmony_ci <td><code>WSAEMFILE</code></td> 13031cb0ef41Sopenharmony_ci <td>Indicates that there are too many open files.</td> 13041cb0ef41Sopenharmony_ci </tr> 13051cb0ef41Sopenharmony_ci <tr> 13061cb0ef41Sopenharmony_ci <td><code>WSAEWOULDBLOCK</code></td> 13071cb0ef41Sopenharmony_ci <td>Indicates that a resource is temporarily unavailable.</td> 13081cb0ef41Sopenharmony_ci </tr> 13091cb0ef41Sopenharmony_ci <tr> 13101cb0ef41Sopenharmony_ci <td><code>WSAEINPROGRESS</code></td> 13111cb0ef41Sopenharmony_ci <td>Indicates that an operation is currently in progress.</td> 13121cb0ef41Sopenharmony_ci </tr> 13131cb0ef41Sopenharmony_ci <tr> 13141cb0ef41Sopenharmony_ci <td><code>WSAEALREADY</code></td> 13151cb0ef41Sopenharmony_ci <td>Indicates that an operation is already in progress.</td> 13161cb0ef41Sopenharmony_ci </tr> 13171cb0ef41Sopenharmony_ci <tr> 13181cb0ef41Sopenharmony_ci <td><code>WSAENOTSOCK</code></td> 13191cb0ef41Sopenharmony_ci <td>Indicates that the resource is not a socket.</td> 13201cb0ef41Sopenharmony_ci </tr> 13211cb0ef41Sopenharmony_ci <tr> 13221cb0ef41Sopenharmony_ci <td><code>WSAEDESTADDRREQ</code></td> 13231cb0ef41Sopenharmony_ci <td>Indicates that a destination address is required.</td> 13241cb0ef41Sopenharmony_ci </tr> 13251cb0ef41Sopenharmony_ci <tr> 13261cb0ef41Sopenharmony_ci <td><code>WSAEMSGSIZE</code></td> 13271cb0ef41Sopenharmony_ci <td>Indicates that the message size is too long.</td> 13281cb0ef41Sopenharmony_ci </tr> 13291cb0ef41Sopenharmony_ci <tr> 13301cb0ef41Sopenharmony_ci <td><code>WSAEPROTOTYPE</code></td> 13311cb0ef41Sopenharmony_ci <td>Indicates the wrong protocol type for the socket.</td> 13321cb0ef41Sopenharmony_ci </tr> 13331cb0ef41Sopenharmony_ci <tr> 13341cb0ef41Sopenharmony_ci <td><code>WSAENOPROTOOPT</code></td> 13351cb0ef41Sopenharmony_ci <td>Indicates a bad protocol option.</td> 13361cb0ef41Sopenharmony_ci </tr> 13371cb0ef41Sopenharmony_ci <tr> 13381cb0ef41Sopenharmony_ci <td><code>WSAEPROTONOSUPPORT</code></td> 13391cb0ef41Sopenharmony_ci <td>Indicates that the protocol is not supported.</td> 13401cb0ef41Sopenharmony_ci </tr> 13411cb0ef41Sopenharmony_ci <tr> 13421cb0ef41Sopenharmony_ci <td><code>WSAESOCKTNOSUPPORT</code></td> 13431cb0ef41Sopenharmony_ci <td>Indicates that the socket type is not supported.</td> 13441cb0ef41Sopenharmony_ci </tr> 13451cb0ef41Sopenharmony_ci <tr> 13461cb0ef41Sopenharmony_ci <td><code>WSAEOPNOTSUPP</code></td> 13471cb0ef41Sopenharmony_ci <td>Indicates that the operation is not supported.</td> 13481cb0ef41Sopenharmony_ci </tr> 13491cb0ef41Sopenharmony_ci <tr> 13501cb0ef41Sopenharmony_ci <td><code>WSAEPFNOSUPPORT</code></td> 13511cb0ef41Sopenharmony_ci <td>Indicates that the protocol family is not supported.</td> 13521cb0ef41Sopenharmony_ci </tr> 13531cb0ef41Sopenharmony_ci <tr> 13541cb0ef41Sopenharmony_ci <td><code>WSAEAFNOSUPPORT</code></td> 13551cb0ef41Sopenharmony_ci <td>Indicates that the address family is not supported.</td> 13561cb0ef41Sopenharmony_ci </tr> 13571cb0ef41Sopenharmony_ci <tr> 13581cb0ef41Sopenharmony_ci <td><code>WSAEADDRINUSE</code></td> 13591cb0ef41Sopenharmony_ci <td>Indicates that the network address is already in use.</td> 13601cb0ef41Sopenharmony_ci </tr> 13611cb0ef41Sopenharmony_ci <tr> 13621cb0ef41Sopenharmony_ci <td><code>WSAEADDRNOTAVAIL</code></td> 13631cb0ef41Sopenharmony_ci <td>Indicates that the network address is not available.</td> 13641cb0ef41Sopenharmony_ci </tr> 13651cb0ef41Sopenharmony_ci <tr> 13661cb0ef41Sopenharmony_ci <td><code>WSAENETDOWN</code></td> 13671cb0ef41Sopenharmony_ci <td>Indicates that the network is down.</td> 13681cb0ef41Sopenharmony_ci </tr> 13691cb0ef41Sopenharmony_ci <tr> 13701cb0ef41Sopenharmony_ci <td><code>WSAENETUNREACH</code></td> 13711cb0ef41Sopenharmony_ci <td>Indicates that the network is unreachable.</td> 13721cb0ef41Sopenharmony_ci </tr> 13731cb0ef41Sopenharmony_ci <tr> 13741cb0ef41Sopenharmony_ci <td><code>WSAENETRESET</code></td> 13751cb0ef41Sopenharmony_ci <td>Indicates that the network connection has been reset.</td> 13761cb0ef41Sopenharmony_ci </tr> 13771cb0ef41Sopenharmony_ci <tr> 13781cb0ef41Sopenharmony_ci <td><code>WSAECONNABORTED</code></td> 13791cb0ef41Sopenharmony_ci <td>Indicates that the connection has been aborted.</td> 13801cb0ef41Sopenharmony_ci </tr> 13811cb0ef41Sopenharmony_ci <tr> 13821cb0ef41Sopenharmony_ci <td><code>WSAECONNRESET</code></td> 13831cb0ef41Sopenharmony_ci <td>Indicates that the connection has been reset by the peer.</td> 13841cb0ef41Sopenharmony_ci </tr> 13851cb0ef41Sopenharmony_ci <tr> 13861cb0ef41Sopenharmony_ci <td><code>WSAENOBUFS</code></td> 13871cb0ef41Sopenharmony_ci <td>Indicates that there is no buffer space available.</td> 13881cb0ef41Sopenharmony_ci </tr> 13891cb0ef41Sopenharmony_ci <tr> 13901cb0ef41Sopenharmony_ci <td><code>WSAEISCONN</code></td> 13911cb0ef41Sopenharmony_ci <td>Indicates that the socket is already connected.</td> 13921cb0ef41Sopenharmony_ci </tr> 13931cb0ef41Sopenharmony_ci <tr> 13941cb0ef41Sopenharmony_ci <td><code>WSAENOTCONN</code></td> 13951cb0ef41Sopenharmony_ci <td>Indicates that the socket is not connected.</td> 13961cb0ef41Sopenharmony_ci </tr> 13971cb0ef41Sopenharmony_ci <tr> 13981cb0ef41Sopenharmony_ci <td><code>WSAESHUTDOWN</code></td> 13991cb0ef41Sopenharmony_ci <td>Indicates that data cannot be sent after the socket has been 14001cb0ef41Sopenharmony_ci shutdown.</td> 14011cb0ef41Sopenharmony_ci </tr> 14021cb0ef41Sopenharmony_ci <tr> 14031cb0ef41Sopenharmony_ci <td><code>WSAETOOMANYREFS</code></td> 14041cb0ef41Sopenharmony_ci <td>Indicates that there are too many references.</td> 14051cb0ef41Sopenharmony_ci </tr> 14061cb0ef41Sopenharmony_ci <tr> 14071cb0ef41Sopenharmony_ci <td><code>WSAETIMEDOUT</code></td> 14081cb0ef41Sopenharmony_ci <td>Indicates that the connection has timed out.</td> 14091cb0ef41Sopenharmony_ci </tr> 14101cb0ef41Sopenharmony_ci <tr> 14111cb0ef41Sopenharmony_ci <td><code>WSAECONNREFUSED</code></td> 14121cb0ef41Sopenharmony_ci <td>Indicates that the connection has been refused.</td> 14131cb0ef41Sopenharmony_ci </tr> 14141cb0ef41Sopenharmony_ci <tr> 14151cb0ef41Sopenharmony_ci <td><code>WSAELOOP</code></td> 14161cb0ef41Sopenharmony_ci <td>Indicates that a name cannot be translated.</td> 14171cb0ef41Sopenharmony_ci </tr> 14181cb0ef41Sopenharmony_ci <tr> 14191cb0ef41Sopenharmony_ci <td><code>WSAENAMETOOLONG</code></td> 14201cb0ef41Sopenharmony_ci <td>Indicates that a name was too long.</td> 14211cb0ef41Sopenharmony_ci </tr> 14221cb0ef41Sopenharmony_ci <tr> 14231cb0ef41Sopenharmony_ci <td><code>WSAEHOSTDOWN</code></td> 14241cb0ef41Sopenharmony_ci <td>Indicates that a network host is down.</td> 14251cb0ef41Sopenharmony_ci </tr> 14261cb0ef41Sopenharmony_ci <tr> 14271cb0ef41Sopenharmony_ci <td><code>WSAEHOSTUNREACH</code></td> 14281cb0ef41Sopenharmony_ci <td>Indicates that there is no route to a network host.</td> 14291cb0ef41Sopenharmony_ci </tr> 14301cb0ef41Sopenharmony_ci <tr> 14311cb0ef41Sopenharmony_ci <td><code>WSAENOTEMPTY</code></td> 14321cb0ef41Sopenharmony_ci <td>Indicates that the directory is not empty.</td> 14331cb0ef41Sopenharmony_ci </tr> 14341cb0ef41Sopenharmony_ci <tr> 14351cb0ef41Sopenharmony_ci <td><code>WSAEPROCLIM</code></td> 14361cb0ef41Sopenharmony_ci <td>Indicates that there are too many processes.</td> 14371cb0ef41Sopenharmony_ci </tr> 14381cb0ef41Sopenharmony_ci <tr> 14391cb0ef41Sopenharmony_ci <td><code>WSAEUSERS</code></td> 14401cb0ef41Sopenharmony_ci <td>Indicates that the user quota has been exceeded.</td> 14411cb0ef41Sopenharmony_ci </tr> 14421cb0ef41Sopenharmony_ci <tr> 14431cb0ef41Sopenharmony_ci <td><code>WSAEDQUOT</code></td> 14441cb0ef41Sopenharmony_ci <td>Indicates that the disk quota has been exceeded.</td> 14451cb0ef41Sopenharmony_ci </tr> 14461cb0ef41Sopenharmony_ci <tr> 14471cb0ef41Sopenharmony_ci <td><code>WSAESTALE</code></td> 14481cb0ef41Sopenharmony_ci <td>Indicates a stale file handle reference.</td> 14491cb0ef41Sopenharmony_ci </tr> 14501cb0ef41Sopenharmony_ci <tr> 14511cb0ef41Sopenharmony_ci <td><code>WSAEREMOTE</code></td> 14521cb0ef41Sopenharmony_ci <td>Indicates that the item is remote.</td> 14531cb0ef41Sopenharmony_ci </tr> 14541cb0ef41Sopenharmony_ci <tr> 14551cb0ef41Sopenharmony_ci <td><code>WSASYSNOTREADY</code></td> 14561cb0ef41Sopenharmony_ci <td>Indicates that the network subsystem is not ready.</td> 14571cb0ef41Sopenharmony_ci </tr> 14581cb0ef41Sopenharmony_ci <tr> 14591cb0ef41Sopenharmony_ci <td><code>WSAVERNOTSUPPORTED</code></td> 14601cb0ef41Sopenharmony_ci <td>Indicates that the <code>winsock.dll</code> version is out of 14611cb0ef41Sopenharmony_ci range.</td> 14621cb0ef41Sopenharmony_ci </tr> 14631cb0ef41Sopenharmony_ci <tr> 14641cb0ef41Sopenharmony_ci <td><code>WSANOTINITIALISED</code></td> 14651cb0ef41Sopenharmony_ci <td>Indicates that successful WSAStartup has not yet been performed.</td> 14661cb0ef41Sopenharmony_ci </tr> 14671cb0ef41Sopenharmony_ci <tr> 14681cb0ef41Sopenharmony_ci <td><code>WSAEDISCON</code></td> 14691cb0ef41Sopenharmony_ci <td>Indicates that a graceful shutdown is in progress.</td> 14701cb0ef41Sopenharmony_ci </tr> 14711cb0ef41Sopenharmony_ci <tr> 14721cb0ef41Sopenharmony_ci <td><code>WSAENOMORE</code></td> 14731cb0ef41Sopenharmony_ci <td>Indicates that there are no more results.</td> 14741cb0ef41Sopenharmony_ci </tr> 14751cb0ef41Sopenharmony_ci <tr> 14761cb0ef41Sopenharmony_ci <td><code>WSAECANCELLED</code></td> 14771cb0ef41Sopenharmony_ci <td>Indicates that an operation has been canceled.</td> 14781cb0ef41Sopenharmony_ci </tr> 14791cb0ef41Sopenharmony_ci <tr> 14801cb0ef41Sopenharmony_ci <td><code>WSAEINVALIDPROCTABLE</code></td> 14811cb0ef41Sopenharmony_ci <td>Indicates that the procedure call table is invalid.</td> 14821cb0ef41Sopenharmony_ci </tr> 14831cb0ef41Sopenharmony_ci <tr> 14841cb0ef41Sopenharmony_ci <td><code>WSAEINVALIDPROVIDER</code></td> 14851cb0ef41Sopenharmony_ci <td>Indicates an invalid service provider.</td> 14861cb0ef41Sopenharmony_ci </tr> 14871cb0ef41Sopenharmony_ci <tr> 14881cb0ef41Sopenharmony_ci <td><code>WSAEPROVIDERFAILEDINIT</code></td> 14891cb0ef41Sopenharmony_ci <td>Indicates that the service provider failed to initialized.</td> 14901cb0ef41Sopenharmony_ci </tr> 14911cb0ef41Sopenharmony_ci <tr> 14921cb0ef41Sopenharmony_ci <td><code>WSASYSCALLFAILURE</code></td> 14931cb0ef41Sopenharmony_ci <td>Indicates a system call failure.</td> 14941cb0ef41Sopenharmony_ci </tr> 14951cb0ef41Sopenharmony_ci <tr> 14961cb0ef41Sopenharmony_ci <td><code>WSASERVICE_NOT_FOUND</code></td> 14971cb0ef41Sopenharmony_ci <td>Indicates that a service was not found.</td> 14981cb0ef41Sopenharmony_ci </tr> 14991cb0ef41Sopenharmony_ci <tr> 15001cb0ef41Sopenharmony_ci <td><code>WSATYPE_NOT_FOUND</code></td> 15011cb0ef41Sopenharmony_ci <td>Indicates that a class type was not found.</td> 15021cb0ef41Sopenharmony_ci </tr> 15031cb0ef41Sopenharmony_ci <tr> 15041cb0ef41Sopenharmony_ci <td><code>WSA_E_NO_MORE</code></td> 15051cb0ef41Sopenharmony_ci <td>Indicates that there are no more results.</td> 15061cb0ef41Sopenharmony_ci </tr> 15071cb0ef41Sopenharmony_ci <tr> 15081cb0ef41Sopenharmony_ci <td><code>WSA_E_CANCELLED</code></td> 15091cb0ef41Sopenharmony_ci <td>Indicates that the call was canceled.</td> 15101cb0ef41Sopenharmony_ci </tr> 15111cb0ef41Sopenharmony_ci <tr> 15121cb0ef41Sopenharmony_ci <td><code>WSAEREFUSED</code></td> 15131cb0ef41Sopenharmony_ci <td>Indicates that a database query was refused.</td> 15141cb0ef41Sopenharmony_ci </tr> 15151cb0ef41Sopenharmony_ci</tbody></table> 15161cb0ef41Sopenharmony_ci<h4>dlopen constants<span><a class="mark" href="#dlopen-constants" id="dlopen-constants">#</a></span><a aria-hidden="true" class="legacy" id="os_dlopen_constants"></a></h4> 15171cb0ef41Sopenharmony_ci<p>If available on the operating system, the following constants 15181cb0ef41Sopenharmony_ciare exported in <code>os.constants.dlopen</code>. See <a href="http://man7.org/linux/man-pages/man3/dlopen.3.html"><code>dlopen(3)</code></a> for detailed 15191cb0ef41Sopenharmony_ciinformation.</p> 15201cb0ef41Sopenharmony_ci<table> 15211cb0ef41Sopenharmony_ci <tbody><tr> 15221cb0ef41Sopenharmony_ci <th>Constant</th> 15231cb0ef41Sopenharmony_ci <th>Description</th> 15241cb0ef41Sopenharmony_ci </tr> 15251cb0ef41Sopenharmony_ci <tr> 15261cb0ef41Sopenharmony_ci <td><code>RTLD_LAZY</code></td> 15271cb0ef41Sopenharmony_ci <td>Perform lazy binding. Node.js sets this flag by default.</td> 15281cb0ef41Sopenharmony_ci </tr> 15291cb0ef41Sopenharmony_ci <tr> 15301cb0ef41Sopenharmony_ci <td><code>RTLD_NOW</code></td> 15311cb0ef41Sopenharmony_ci <td>Resolve all undefined symbols in the library before dlopen(3) 15321cb0ef41Sopenharmony_ci returns.</td> 15331cb0ef41Sopenharmony_ci </tr> 15341cb0ef41Sopenharmony_ci <tr> 15351cb0ef41Sopenharmony_ci <td><code>RTLD_GLOBAL</code></td> 15361cb0ef41Sopenharmony_ci <td>Symbols defined by the library will be made available for symbol 15371cb0ef41Sopenharmony_ci resolution of subsequently loaded libraries.</td> 15381cb0ef41Sopenharmony_ci </tr> 15391cb0ef41Sopenharmony_ci <tr> 15401cb0ef41Sopenharmony_ci <td><code>RTLD_LOCAL</code></td> 15411cb0ef41Sopenharmony_ci <td>The converse of <code>RTLD_GLOBAL</code>. This is the default behavior 15421cb0ef41Sopenharmony_ci if neither flag is specified.</td> 15431cb0ef41Sopenharmony_ci </tr> 15441cb0ef41Sopenharmony_ci <tr> 15451cb0ef41Sopenharmony_ci <td><code>RTLD_DEEPBIND</code></td> 15461cb0ef41Sopenharmony_ci <td>Make a self-contained library use its own symbols in preference to 15471cb0ef41Sopenharmony_ci symbols from previously loaded libraries.</td> 15481cb0ef41Sopenharmony_ci </tr> 15491cb0ef41Sopenharmony_ci</tbody></table> 15501cb0ef41Sopenharmony_ci<h4>Priority constants<span><a class="mark" href="#priority-constants" id="priority-constants">#</a></span><a aria-hidden="true" class="legacy" id="os_priority_constants"></a></h4> 15511cb0ef41Sopenharmony_ci<div class="api_metadata"> 15521cb0ef41Sopenharmony_ci<span>Added in: v10.10.0</span> 15531cb0ef41Sopenharmony_ci</div> 15541cb0ef41Sopenharmony_ci<p>The following process scheduling constants are exported by 15551cb0ef41Sopenharmony_ci<code>os.constants.priority</code>.</p> 15561cb0ef41Sopenharmony_ci<table> 15571cb0ef41Sopenharmony_ci <tbody><tr> 15581cb0ef41Sopenharmony_ci <th>Constant</th> 15591cb0ef41Sopenharmony_ci <th>Description</th> 15601cb0ef41Sopenharmony_ci </tr> 15611cb0ef41Sopenharmony_ci <tr> 15621cb0ef41Sopenharmony_ci <td><code>PRIORITY_LOW</code></td> 15631cb0ef41Sopenharmony_ci <td>The lowest process scheduling priority. This corresponds to 15641cb0ef41Sopenharmony_ci <code>IDLE_PRIORITY_CLASS</code> on Windows, and a nice value of 15651cb0ef41Sopenharmony_ci <code>19</code> on all other platforms.</td> 15661cb0ef41Sopenharmony_ci </tr> 15671cb0ef41Sopenharmony_ci <tr> 15681cb0ef41Sopenharmony_ci <td><code>PRIORITY_BELOW_NORMAL</code></td> 15691cb0ef41Sopenharmony_ci <td>The process scheduling priority above <code>PRIORITY_LOW</code> and 15701cb0ef41Sopenharmony_ci below <code>PRIORITY_NORMAL</code>. This corresponds to 15711cb0ef41Sopenharmony_ci <code>BELOW_NORMAL_PRIORITY_CLASS</code> on Windows, and a nice value of 15721cb0ef41Sopenharmony_ci <code>10</code> on all other platforms.</td> 15731cb0ef41Sopenharmony_ci </tr> 15741cb0ef41Sopenharmony_ci <tr> 15751cb0ef41Sopenharmony_ci <td><code>PRIORITY_NORMAL</code></td> 15761cb0ef41Sopenharmony_ci <td>The default process scheduling priority. This corresponds to 15771cb0ef41Sopenharmony_ci <code>NORMAL_PRIORITY_CLASS</code> on Windows, and a nice value of 15781cb0ef41Sopenharmony_ci <code>0</code> on all other platforms.</td> 15791cb0ef41Sopenharmony_ci </tr> 15801cb0ef41Sopenharmony_ci <tr> 15811cb0ef41Sopenharmony_ci <td><code>PRIORITY_ABOVE_NORMAL</code></td> 15821cb0ef41Sopenharmony_ci <td>The process scheduling priority above <code>PRIORITY_NORMAL</code> and 15831cb0ef41Sopenharmony_ci below <code>PRIORITY_HIGH</code>. This corresponds to 15841cb0ef41Sopenharmony_ci <code>ABOVE_NORMAL_PRIORITY_CLASS</code> on Windows, and a nice value of 15851cb0ef41Sopenharmony_ci <code>-7</code> on all other platforms.</td> 15861cb0ef41Sopenharmony_ci </tr> 15871cb0ef41Sopenharmony_ci <tr> 15881cb0ef41Sopenharmony_ci <td><code>PRIORITY_HIGH</code></td> 15891cb0ef41Sopenharmony_ci <td>The process scheduling priority above <code>PRIORITY_ABOVE_NORMAL</code> 15901cb0ef41Sopenharmony_ci and below <code>PRIORITY_HIGHEST</code>. This corresponds to 15911cb0ef41Sopenharmony_ci <code>HIGH_PRIORITY_CLASS</code> on Windows, and a nice value of 15921cb0ef41Sopenharmony_ci <code>-14</code> on all other platforms.</td> 15931cb0ef41Sopenharmony_ci </tr> 15941cb0ef41Sopenharmony_ci <tr> 15951cb0ef41Sopenharmony_ci <td><code>PRIORITY_HIGHEST</code></td> 15961cb0ef41Sopenharmony_ci <td>The highest process scheduling priority. This corresponds to 15971cb0ef41Sopenharmony_ci <code>REALTIME_PRIORITY_CLASS</code> on Windows, and a nice value of 15981cb0ef41Sopenharmony_ci <code>-20</code> on all other platforms.</td> 15991cb0ef41Sopenharmony_ci </tr> 16001cb0ef41Sopenharmony_ci</tbody></table> 16011cb0ef41Sopenharmony_ci<h4>libuv constants<span><a class="mark" href="#libuv-constants" id="libuv-constants">#</a></span><a aria-hidden="true" class="legacy" id="os_libuv_constants"></a></h4> 16021cb0ef41Sopenharmony_ci<table> 16031cb0ef41Sopenharmony_ci <tbody><tr> 16041cb0ef41Sopenharmony_ci <th>Constant</th> 16051cb0ef41Sopenharmony_ci <th>Description</th> 16061cb0ef41Sopenharmony_ci </tr> 16071cb0ef41Sopenharmony_ci <tr> 16081cb0ef41Sopenharmony_ci <td><code>UV_UDP_REUSEADDR</code></td> 16091cb0ef41Sopenharmony_ci <td></td> 16101cb0ef41Sopenharmony_ci </tr> 16111cb0ef41Sopenharmony_ci</tbody></table></section> 16121cb0ef41Sopenharmony_ci <!-- API END --> 16131cb0ef41Sopenharmony_ci </div> 16141cb0ef41Sopenharmony_ci </div> 16151cb0ef41Sopenharmony_ci </div> 16161cb0ef41Sopenharmony_ci</body> 16171cb0ef41Sopenharmony_ci</html> 1618