1{ 2 "type": "module", 3 "source": "doc/api/os.md", 4 "modules": [ 5 { 6 "textRaw": "OS", 7 "name": "os", 8 "introduced_in": "v0.10.0", 9 "stability": 2, 10 "stabilityText": "Stable", 11 "desc": "<p><strong>Source Code:</strong> <a href=\"https://github.com/nodejs/node/blob/v14.20.1/lib/os.js\">lib/os.js</a></p>\n<p>The <code>os</code> module provides operating system-related utility methods and\nproperties. It can be accessed using:</p>\n<pre><code class=\"language-js\">const os = require('os');\n</code></pre>", 12 "properties": [ 13 { 14 "textRaw": "`EOL` {string}", 15 "type": "string", 16 "name": "EOL", 17 "meta": { 18 "added": [ 19 "v0.7.8" 20 ], 21 "changes": [] 22 }, 23 "desc": "<p>The operating system-specific end-of-line marker.</p>\n<ul>\n<li><code>\\n</code> on POSIX</li>\n<li><code>\\r\\n</code> on Windows</li>\n</ul>" 24 }, 25 { 26 "textRaw": "`constants` {Object}", 27 "type": "Object", 28 "name": "constants", 29 "meta": { 30 "added": [ 31 "v6.3.0" 32 ], 33 "changes": [] 34 }, 35 "desc": "<p>Contains commonly used operating system-specific constants for error codes,\nprocess signals, and so on. The specific constants defined are described in\n<a href=\"#os_os_constants_1\">OS constants</a>.</p>" 36 }, 37 { 38 "textRaw": "`devNull` {string}", 39 "type": "string", 40 "name": "devNull", 41 "meta": { 42 "added": [ 43 "v14.18.0" 44 ], 45 "changes": [] 46 }, 47 "desc": "<p>The platform-specific file path of the null device.</p>\n<ul>\n<li><code>\\\\.\\nul</code> on Windows</li>\n<li><code>/dev/null</code> on POSIX</li>\n</ul>" 48 } 49 ], 50 "methods": [ 51 { 52 "textRaw": "`os.arch()`", 53 "type": "method", 54 "name": "arch", 55 "meta": { 56 "added": [ 57 "v0.5.0" 58 ], 59 "changes": [] 60 }, 61 "signatures": [ 62 { 63 "return": { 64 "textRaw": "Returns: {string}", 65 "name": "return", 66 "type": "string" 67 }, 68 "params": [] 69 } 70 ], 71 "desc": "<p>Returns the operating system CPU architecture for which the Node.js binary was\ncompiled. Possible values are <code>'arm'</code>, <code>'arm64'</code>, <code>'ia32'</code>, <code>'mips'</code>,\n<code>'mipsel'</code>, <code>'ppc'</code>, <code>'ppc64'</code>, <code>'s390'</code>, <code>'s390x'</code>, <code>'x32'</code>, and <code>'x64'</code>.</p>\n<p>The return value is equivalent to <a href=\"process.html#process_process_arch\"><code>process.arch</code></a>.</p>" 72 }, 73 { 74 "textRaw": "`os.cpus()`", 75 "type": "method", 76 "name": "cpus", 77 "meta": { 78 "added": [ 79 "v0.3.3" 80 ], 81 "changes": [] 82 }, 83 "signatures": [ 84 { 85 "return": { 86 "textRaw": "Returns: {Object[]}", 87 "name": "return", 88 "type": "Object[]" 89 }, 90 "params": [] 91 } 92 ], 93 "desc": "<p>Returns an array of objects containing information about each logical CPU core.</p>\n<p>The properties included on each object include:</p>\n<ul>\n<li><code>model</code> <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type\" class=\"type\"><string></a></li>\n<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>\n<li><code>times</code> <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\" class=\"type\"><Object></a>\n<ul>\n<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>\n<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>\n<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>\n<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>\n<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>\n</ul>\n</li>\n</ul>\n<!-- eslint-disable semi -->\n<pre><code class=\"language-js\">[\n {\n model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz',\n speed: 2926,\n times: {\n user: 252020,\n nice: 0,\n sys: 30340,\n idle: 1070356870,\n irq: 0\n }\n },\n {\n model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz',\n speed: 2926,\n times: {\n user: 306960,\n nice: 0,\n sys: 26980,\n idle: 1071569080,\n irq: 0\n }\n },\n {\n model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz',\n speed: 2926,\n times: {\n user: 248450,\n nice: 0,\n sys: 21750,\n idle: 1070919370,\n irq: 0\n }\n },\n {\n model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz',\n speed: 2926,\n times: {\n user: 256880,\n nice: 0,\n sys: 19430,\n idle: 1070905480,\n irq: 20\n }\n },\n]\n</code></pre>\n<p><code>nice</code> values are POSIX-only. On Windows, the <code>nice</code> values of all processors\nare always 0.</p>" 94 }, 95 { 96 "textRaw": "`os.endianness()`", 97 "type": "method", 98 "name": "endianness", 99 "meta": { 100 "added": [ 101 "v0.9.4" 102 ], 103 "changes": [] 104 }, 105 "signatures": [ 106 { 107 "return": { 108 "textRaw": "Returns: {string}", 109 "name": "return", 110 "type": "string" 111 }, 112 "params": [] 113 } 114 ], 115 "desc": "<p>Returns a string identifying the endianness of the CPU for which the Node.js\nbinary was compiled.</p>\n<p>Possible values are <code>'BE'</code> for big endian and <code>'LE'</code> for little endian.</p>" 116 }, 117 { 118 "textRaw": "`os.freemem()`", 119 "type": "method", 120 "name": "freemem", 121 "meta": { 122 "added": [ 123 "v0.3.3" 124 ], 125 "changes": [] 126 }, 127 "signatures": [ 128 { 129 "return": { 130 "textRaw": "Returns: {integer}", 131 "name": "return", 132 "type": "integer" 133 }, 134 "params": [] 135 } 136 ], 137 "desc": "<p>Returns the amount of free system memory in bytes as an integer.</p>" 138 }, 139 { 140 "textRaw": "`os.getPriority([pid])`", 141 "type": "method", 142 "name": "getPriority", 143 "meta": { 144 "added": [ 145 "v10.10.0" 146 ], 147 "changes": [] 148 }, 149 "signatures": [ 150 { 151 "return": { 152 "textRaw": "Returns: {integer}", 153 "name": "return", 154 "type": "integer" 155 }, 156 "params": [ 157 { 158 "textRaw": "`pid` {integer} The process ID to retrieve scheduling priority for. **Default** `0`.", 159 "name": "pid", 160 "type": "integer", 161 "desc": "The process ID to retrieve scheduling priority for. **Default** `0`." 162 } 163 ] 164 } 165 ], 166 "desc": "<p>Returns the scheduling priority for the process specified by <code>pid</code>. If <code>pid</code> is\nnot provided or is <code>0</code>, the priority of the current process is returned.</p>" 167 }, 168 { 169 "textRaw": "`os.homedir()`", 170 "type": "method", 171 "name": "homedir", 172 "meta": { 173 "added": [ 174 "v2.3.0" 175 ], 176 "changes": [] 177 }, 178 "signatures": [ 179 { 180 "return": { 181 "textRaw": "Returns: {string}", 182 "name": "return", 183 "type": "string" 184 }, 185 "params": [] 186 } 187 ], 188 "desc": "<p>Returns the string path of the current user's home directory.</p>\n<p>On POSIX, it uses the <code>$HOME</code> environment variable if defined. Otherwise it\nuses 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>\n<p>On Windows, it uses the <code>USERPROFILE</code> environment variable if defined.\nOtherwise it uses the path to the profile directory of the current user.</p>" 189 }, 190 { 191 "textRaw": "`os.hostname()`", 192 "type": "method", 193 "name": "hostname", 194 "meta": { 195 "added": [ 196 "v0.3.3" 197 ], 198 "changes": [] 199 }, 200 "signatures": [ 201 { 202 "return": { 203 "textRaw": "Returns: {string}", 204 "name": "return", 205 "type": "string" 206 }, 207 "params": [] 208 } 209 ], 210 "desc": "<p>Returns the host name of the operating system as a string.</p>" 211 }, 212 { 213 "textRaw": "`os.loadavg()`", 214 "type": "method", 215 "name": "loadavg", 216 "meta": { 217 "added": [ 218 "v0.3.3" 219 ], 220 "changes": [] 221 }, 222 "signatures": [ 223 { 224 "return": { 225 "textRaw": "Returns: {number[]}", 226 "name": "return", 227 "type": "number[]" 228 }, 229 "params": [] 230 } 231 ], 232 "desc": "<p>Returns an array containing the 1, 5, and 15 minute load averages.</p>\n<p>The load average is a measure of system activity calculated by the operating\nsystem and expressed as a fractional number.</p>\n<p>The load average is a Unix-specific concept. On Windows, the return value is\nalways <code>[0, 0, 0]</code>.</p>" 233 }, 234 { 235 "textRaw": "`os.networkInterfaces()`", 236 "type": "method", 237 "name": "networkInterfaces", 238 "meta": { 239 "added": [ 240 "v0.6.0" 241 ], 242 "changes": [] 243 }, 244 "signatures": [ 245 { 246 "return": { 247 "textRaw": "Returns: {Object}", 248 "name": "return", 249 "type": "Object" 250 }, 251 "params": [] 252 } 253 ], 254 "desc": "<p>Returns an object containing network interfaces that have been assigned a\nnetwork address.</p>\n<p>Each key on the returned object identifies a network interface. The associated\nvalue is an array of objects that each describe an assigned network address.</p>\n<p>The properties available on the assigned network address object include:</p>\n<ul>\n<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>\n<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>\n<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>\n<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>\n<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\nsimilar interface that is not remotely accessible; otherwise <code>false</code></li>\n<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>\nis <code>IPv6</code>)</li>\n<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\nin CIDR notation. If the <code>netmask</code> is invalid, this property is set\nto <code>null</code>.</li>\n</ul>\n<!-- eslint-skip -->\n<pre><code class=\"language-js\">{\n lo: [\n {\n address: '127.0.0.1',\n netmask: '255.0.0.0',\n family: 'IPv4',\n mac: '00:00:00:00:00:00',\n internal: true,\n cidr: '127.0.0.1/8'\n },\n {\n address: '::1',\n netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',\n family: 'IPv6',\n mac: '00:00:00:00:00:00',\n scopeid: 0,\n internal: true,\n cidr: '::1/128'\n }\n ],\n eth0: [\n {\n address: '192.168.1.108',\n netmask: '255.255.255.0',\n family: 'IPv4',\n mac: '01:02:03:0a:0b:0c',\n internal: false,\n cidr: '192.168.1.108/24'\n },\n {\n address: 'fe80::a00:27ff:fe4e:66a1',\n netmask: 'ffff:ffff:ffff:ffff::',\n family: 'IPv6',\n mac: '01:02:03:0a:0b:0c',\n scopeid: 1,\n internal: false,\n cidr: 'fe80::a00:27ff:fe4e:66a1/64'\n }\n ]\n}\n</code></pre>" 255 }, 256 { 257 "textRaw": "`os.platform()`", 258 "type": "method", 259 "name": "platform", 260 "meta": { 261 "added": [ 262 "v0.5.0" 263 ], 264 "changes": [] 265 }, 266 "signatures": [ 267 { 268 "return": { 269 "textRaw": "Returns: {string}", 270 "name": "return", 271 "type": "string" 272 }, 273 "params": [] 274 } 275 ], 276 "desc": "<p>Returns a string identifying the operating system platform. The value is set\nat compile time. Possible values are <code>'aix'</code>, <code>'darwin'</code>, <code>'freebsd'</code>,\n<code>'linux'</code>, <code>'openbsd'</code>, <code>'sunos'</code>, and <code>'win32'</code>.</p>\n<p>The return value is equivalent to <a href=\"process.html#process_process_platform\"><code>process.platform</code></a>.</p>\n<p>The value <code>'android'</code> may also be returned if Node.js is built on the Android\noperating system. <a href=\"https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os\">Android support is experimental</a>.</p>" 277 }, 278 { 279 "textRaw": "`os.release()`", 280 "type": "method", 281 "name": "release", 282 "meta": { 283 "added": [ 284 "v0.3.3" 285 ], 286 "changes": [] 287 }, 288 "signatures": [ 289 { 290 "return": { 291 "textRaw": "Returns: {string}", 292 "name": "return", 293 "type": "string" 294 }, 295 "params": [] 296 } 297 ], 298 "desc": "<p>Returns the operating system as a string.</p>\n<p>On POSIX systems, the operating system release is determined by calling\n<a href=\"https://linux.die.net/man/3/uname\"><code>uname(3)</code></a>. On Windows, <code>GetVersionExW()</code> is used. See\n<a href=\"https://en.wikipedia.org/wiki/Uname#Examples\">https://en.wikipedia.org/wiki/Uname#Examples</a> for more information.</p>" 299 }, 300 { 301 "textRaw": "`os.setPriority([pid, ]priority)`", 302 "type": "method", 303 "name": "setPriority", 304 "meta": { 305 "added": [ 306 "v10.10.0" 307 ], 308 "changes": [] 309 }, 310 "signatures": [ 311 { 312 "params": [ 313 { 314 "textRaw": "`pid` {integer} The process ID to set scheduling priority for. **Default** `0`.", 315 "name": "pid", 316 "type": "integer", 317 "desc": "The process ID to set scheduling priority for. **Default** `0`." 318 }, 319 { 320 "textRaw": "`priority` {integer} The scheduling priority to assign to the process.", 321 "name": "priority", 322 "type": "integer", 323 "desc": "The scheduling priority to assign to the process." 324 } 325 ] 326 } 327 ], 328 "desc": "<p>Attempts to set the scheduling priority for the process specified by <code>pid</code>. If\n<code>pid</code> is not provided or is <code>0</code>, the process ID of the current process is used.</p>\n<p>The <code>priority</code> input must be an integer between <code>-20</code> (high priority) and <code>19</code>\n(low priority). Due to differences between Unix priority levels and Windows\npriority classes, <code>priority</code> is mapped to one of six priority constants in\n<code>os.constants.priority</code>. When retrieving a process priority level, this range\nmapping may cause the return value to be slightly different on Windows. To avoid\nconfusion, set <code>priority</code> to one of the priority constants.</p>\n<p>On Windows, setting priority to <code>PRIORITY_HIGHEST</code> requires elevated user\nprivileges. Otherwise the set priority will be silently reduced to\n<code>PRIORITY_HIGH</code>.</p>" 329 }, 330 { 331 "textRaw": "`os.tmpdir()`", 332 "type": "method", 333 "name": "tmpdir", 334 "meta": { 335 "added": [ 336 "v0.9.9" 337 ], 338 "changes": [ 339 { 340 "version": "v2.0.0", 341 "pr-url": "https://github.com/nodejs/node/pull/747", 342 "description": "This function is now cross-platform consistent and no longer returns a path with a trailing slash on any platform." 343 } 344 ] 345 }, 346 "signatures": [ 347 { 348 "return": { 349 "textRaw": "Returns: {string}", 350 "name": "return", 351 "type": "string" 352 }, 353 "params": [] 354 } 355 ], 356 "desc": "<p>Returns the operating system's default directory for temporary files as a\nstring.</p>" 357 }, 358 { 359 "textRaw": "`os.totalmem()`", 360 "type": "method", 361 "name": "totalmem", 362 "meta": { 363 "added": [ 364 "v0.3.3" 365 ], 366 "changes": [] 367 }, 368 "signatures": [ 369 { 370 "return": { 371 "textRaw": "Returns: {integer}", 372 "name": "return", 373 "type": "integer" 374 }, 375 "params": [] 376 } 377 ], 378 "desc": "<p>Returns the total amount of system memory in bytes as an integer.</p>" 379 }, 380 { 381 "textRaw": "`os.type()`", 382 "type": "method", 383 "name": "type", 384 "meta": { 385 "added": [ 386 "v0.3.3" 387 ], 388 "changes": [] 389 }, 390 "signatures": [ 391 { 392 "return": { 393 "textRaw": "Returns: {string}", 394 "name": "return", 395 "type": "string" 396 }, 397 "params": [] 398 } 399 ], 400 "desc": "<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\nreturns <code>'Linux'</code> on Linux, <code>'Darwin'</code> on macOS, and <code>'Windows_NT'</code> on Windows.</p>\n<p>See <a href=\"https://en.wikipedia.org/wiki/Uname#Examples\">https://en.wikipedia.org/wiki/Uname#Examples</a> for additional information\nabout the output of running <a href=\"https://linux.die.net/man/3/uname\"><code>uname(3)</code></a> on various operating systems.</p>" 401 }, 402 { 403 "textRaw": "`os.uptime()`", 404 "type": "method", 405 "name": "uptime", 406 "meta": { 407 "added": [ 408 "v0.3.3" 409 ], 410 "changes": [ 411 { 412 "version": "v10.0.0", 413 "pr-url": "https://github.com/nodejs/node/pull/20129", 414 "description": "The result of this function no longer contains a fraction component on Windows." 415 } 416 ] 417 }, 418 "signatures": [ 419 { 420 "return": { 421 "textRaw": "Returns: {integer}", 422 "name": "return", 423 "type": "integer" 424 }, 425 "params": [] 426 } 427 ], 428 "desc": "<p>Returns the system uptime in number of seconds.</p>" 429 }, 430 { 431 "textRaw": "`os.userInfo([options])`", 432 "type": "method", 433 "name": "userInfo", 434 "meta": { 435 "added": [ 436 "v6.0.0" 437 ], 438 "changes": [] 439 }, 440 "signatures": [ 441 { 442 "return": { 443 "textRaw": "Returns: {Object}", 444 "name": "return", 445 "type": "Object" 446 }, 447 "params": [ 448 { 449 "textRaw": "`options` {Object}", 450 "name": "options", 451 "type": "Object", 452 "options": [ 453 { 454 "textRaw": "`encoding` {string} Character encoding used to interpret resulting strings. If `encoding` is set to `'buffer'`, the `username`, `shell`, and `homedir` values will be `Buffer` instances. **Default:** `'utf8'`.", 455 "name": "encoding", 456 "type": "string", 457 "default": "`'utf8'`", 458 "desc": "Character encoding used to interpret resulting strings. If `encoding` is set to `'buffer'`, the `username`, `shell`, and `homedir` values will be `Buffer` instances." 459 } 460 ] 461 } 462 ] 463 } 464 ], 465 "desc": "<p>Returns information about the currently effective user. On POSIX platforms,\nthis is typically a subset of the password file. The returned object includes\nthe <code>username</code>, <code>uid</code>, <code>gid</code>, <code>shell</code>, and <code>homedir</code>. On Windows, the <code>uid</code> and\n<code>gid</code> fields are <code>-1</code>, and <code>shell</code> is <code>null</code>.</p>\n<p>The value of <code>homedir</code> returned by <code>os.userInfo()</code> is provided by the operating\nsystem. This differs from the result of <code>os.homedir()</code>, which queries\nenvironment variables for the home directory before falling back to the\noperating system response.</p>\n<p>Throws a <a href=\"errors.html#errors_class_systemerror\"><code>SystemError</code></a> if a user has no <code>username</code> or <code>homedir</code>.</p>" 466 }, 467 { 468 "textRaw": "`os.version()`", 469 "type": "method", 470 "name": "version", 471 "meta": { 472 "added": [ 473 "v13.11.0" 474 ], 475 "changes": [] 476 }, 477 "signatures": [ 478 { 479 "return": { 480 "textRaw": "Returns {string}", 481 "name": "return", 482 "type": "string" 483 }, 484 "params": [] 485 } 486 ], 487 "desc": "<p>Returns a string identifying the kernel version.</p>\n<p>On POSIX systems, the operating system release is determined by calling\n<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\navailable, <code>GetVersionExW()</code> will be used. See\n<a href=\"https://en.wikipedia.org/wiki/Uname#Examples\">https://en.wikipedia.org/wiki/Uname#Examples</a> for more information.</p>" 488 } 489 ], 490 "modules": [ 491 { 492 "textRaw": "OS constants", 493 "name": "os_constants", 494 "desc": "<p>The following constants are exported by <code>os.constants</code>.</p>\n<p>Not all constants will be available on every operating system.</p>", 495 "modules": [ 496 { 497 "textRaw": "Signal constants", 498 "name": "signal_constants", 499 "meta": { 500 "changes": [ 501 { 502 "version": "v5.11.0", 503 "pr-url": "https://github.com/nodejs/node/pull/6093", 504 "description": "Added support for `SIGINFO`." 505 } 506 ] 507 }, 508 "desc": "<p>The following signal constants are exported by <code>os.constants.signals</code>.</p>\n<table>\n <tr>\n <th>Constant</th>\n <th>Description</th>\n </tr>\n <tr>\n <td><code>SIGHUP</code></td>\n <td>Sent to indicate when a controlling terminal is closed or a parent\n process exits.</td>\n </tr>\n <tr>\n <td><code>SIGINT</code></td>\n <td>Sent to indicate when a user wishes to interrupt a process\n (<kbd>Ctrl</kbd>+<kbd>C</kbd>).</td>\n </tr>\n <tr>\n <td><code>SIGQUIT</code></td>\n <td>Sent to indicate when a user wishes to terminate a process and perform a\n core dump.</td>\n </tr>\n <tr>\n <td><code>SIGILL</code></td>\n <td>Sent to a process to notify that it has attempted to perform an illegal,\n malformed, unknown, or privileged instruction.</td>\n </tr>\n <tr>\n <td><code>SIGTRAP</code></td>\n <td>Sent to a process when an exception has occurred.</td>\n </tr>\n <tr>\n <td><code>SIGABRT</code></td>\n <td>Sent to a process to request that it abort.</td>\n </tr>\n <tr>\n <td><code>SIGIOT</code></td>\n <td>Synonym for <code>SIGABRT</code></td>\n </tr>\n <tr>\n <td><code>SIGBUS</code></td>\n <td>Sent to a process to notify that it has caused a bus error.</td>\n </tr>\n <tr>\n <td><code>SIGFPE</code></td>\n <td>Sent to a process to notify that it has performed an illegal arithmetic\n operation.</td>\n </tr>\n <tr>\n <td><code>SIGKILL</code></td>\n <td>Sent to a process to terminate it immediately.</td>\n </tr>\n <tr>\n <td><code>SIGUSR1</code> <code>SIGUSR2</code></td>\n <td>Sent to a process to identify user-defined conditions.</td>\n </tr>\n <tr>\n <td><code>SIGSEGV</code></td>\n <td>Sent to a process to notify of a segmentation fault.</td>\n </tr>\n <tr>\n <td><code>SIGPIPE</code></td>\n <td>Sent to a process when it has attempted to write to a disconnected\n pipe.</td>\n </tr>\n <tr>\n <td><code>SIGALRM</code></td>\n <td>Sent to a process when a system timer elapses.</td>\n </tr>\n <tr>\n <td><code>SIGTERM</code></td>\n <td>Sent to a process to request termination.</td>\n </tr>\n <tr>\n <td><code>SIGCHLD</code></td>\n <td>Sent to a process when a child process terminates.</td>\n </tr>\n <tr>\n <td><code>SIGSTKFLT</code></td>\n <td>Sent to a process to indicate a stack fault on a coprocessor.</td>\n </tr>\n <tr>\n <td><code>SIGCONT</code></td>\n <td>Sent to instruct the operating system to continue a paused process.</td>\n </tr>\n <tr>\n <td><code>SIGSTOP</code></td>\n <td>Sent to instruct the operating system to halt a process.</td>\n </tr>\n <tr>\n <td><code>SIGTSTP</code></td>\n <td>Sent to a process to request it to stop.</td>\n </tr>\n <tr>\n <td><code>SIGBREAK</code></td>\n <td>Sent to indicate when a user wishes to interrupt a process.</td>\n </tr>\n <tr>\n <td><code>SIGTTIN</code></td>\n <td>Sent to a process when it reads from the TTY while in the\n background.</td>\n </tr>\n <tr>\n <td><code>SIGTTOU</code></td>\n <td>Sent to a process when it writes to the TTY while in the\n background.</td>\n </tr>\n <tr>\n <td><code>SIGURG</code></td>\n <td>Sent to a process when a socket has urgent data to read.</td>\n </tr>\n <tr>\n <td><code>SIGXCPU</code></td>\n <td>Sent to a process when it has exceeded its limit on CPU usage.</td>\n </tr>\n <tr>\n <td><code>SIGXFSZ</code></td>\n <td>Sent to a process when it grows a file larger than the maximum\n allowed.</td>\n </tr>\n <tr>\n <td><code>SIGVTALRM</code></td>\n <td>Sent to a process when a virtual timer has elapsed.</td>\n </tr>\n <tr>\n <td><code>SIGPROF</code></td>\n <td>Sent to a process when a system timer has elapsed.</td>\n </tr>\n <tr>\n <td><code>SIGWINCH</code></td>\n <td>Sent to a process when the controlling terminal has changed its\n size.</td>\n </tr>\n <tr>\n <td><code>SIGIO</code></td>\n <td>Sent to a process when I/O is available.</td>\n </tr>\n <tr>\n <td><code>SIGPOLL</code></td>\n <td>Synonym for <code>SIGIO</code></td>\n </tr>\n <tr>\n <td><code>SIGLOST</code></td>\n <td>Sent to a process when a file lock has been lost.</td>\n </tr>\n <tr>\n <td><code>SIGPWR</code></td>\n <td>Sent to a process to notify of a power failure.</td>\n </tr>\n <tr>\n <td><code>SIGINFO</code></td>\n <td>Synonym for <code>SIGPWR</code></td>\n </tr>\n <tr>\n <td><code>SIGSYS</code></td>\n <td>Sent to a process to notify of a bad argument.</td>\n </tr>\n <tr>\n <td><code>SIGUNUSED</code></td>\n <td>Synonym for <code>SIGSYS</code></td>\n </tr>\n</table>", 509 "type": "module", 510 "displayName": "Signal constants" 511 }, 512 { 513 "textRaw": "Error constants", 514 "name": "error_constants", 515 "desc": "<p>The following error constants are exported by <code>os.constants.errno</code>.</p>", 516 "modules": [ 517 { 518 "textRaw": "POSIX error constants", 519 "name": "posix_error_constants", 520 "desc": "<table>\n <tr>\n <th>Constant</th>\n <th>Description</th>\n </tr>\n <tr>\n <td><code>E2BIG</code></td>\n <td>Indicates that the list of arguments is longer than expected.</td>\n </tr>\n <tr>\n <td><code>EACCES</code></td>\n <td>Indicates that the operation did not have sufficient permissions.</td>\n </tr>\n <tr>\n <td><code>EADDRINUSE</code></td>\n <td>Indicates that the network address is already in use.</td>\n </tr>\n <tr>\n <td><code>EADDRNOTAVAIL</code></td>\n <td>Indicates that the network address is currently unavailable for\n use.</td>\n </tr>\n <tr>\n <td><code>EAFNOSUPPORT</code></td>\n <td>Indicates that the network address family is not supported.</td>\n </tr>\n <tr>\n <td><code>EAGAIN</code></td>\n <td>Indicates that there is no data available and to try the\n operation again later.</td>\n </tr>\n <tr>\n <td><code>EALREADY</code></td>\n <td>Indicates that the socket already has a pending connection in\n progress.</td>\n </tr>\n <tr>\n <td><code>EBADF</code></td>\n <td>Indicates that a file descriptor is not valid.</td>\n </tr>\n <tr>\n <td><code>EBADMSG</code></td>\n <td>Indicates an invalid data message.</td>\n </tr>\n <tr>\n <td><code>EBUSY</code></td>\n <td>Indicates that a device or resource is busy.</td>\n </tr>\n <tr>\n <td><code>ECANCELED</code></td>\n <td>Indicates that an operation was canceled.</td>\n </tr>\n <tr>\n <td><code>ECHILD</code></td>\n <td>Indicates that there are no child processes.</td>\n </tr>\n <tr>\n <td><code>ECONNABORTED</code></td>\n <td>Indicates that the network connection has been aborted.</td>\n </tr>\n <tr>\n <td><code>ECONNREFUSED</code></td>\n <td>Indicates that the network connection has been refused.</td>\n </tr>\n <tr>\n <td><code>ECONNRESET</code></td>\n <td>Indicates that the network connection has been reset.</td>\n </tr>\n <tr>\n <td><code>EDEADLK</code></td>\n <td>Indicates that a resource deadlock has been avoided.</td>\n </tr>\n <tr>\n <td><code>EDESTADDRREQ</code></td>\n <td>Indicates that a destination address is required.</td>\n </tr>\n <tr>\n <td><code>EDOM</code></td>\n <td>Indicates that an argument is out of the domain of the function.</td>\n </tr>\n <tr>\n <td><code>EDQUOT</code></td>\n <td>Indicates that the disk quota has been exceeded.</td>\n </tr>\n <tr>\n <td><code>EEXIST</code></td>\n <td>Indicates that the file already exists.</td>\n </tr>\n <tr>\n <td><code>EFAULT</code></td>\n <td>Indicates an invalid pointer address.</td>\n </tr>\n <tr>\n <td><code>EFBIG</code></td>\n <td>Indicates that the file is too large.</td>\n </tr>\n <tr>\n <td><code>EHOSTUNREACH</code></td>\n <td>Indicates that the host is unreachable.</td>\n </tr>\n <tr>\n <td><code>EIDRM</code></td>\n <td>Indicates that the identifier has been removed.</td>\n </tr>\n <tr>\n <td><code>EILSEQ</code></td>\n <td>Indicates an illegal byte sequence.</td>\n </tr>\n <tr>\n <td><code>EINPROGRESS</code></td>\n <td>Indicates that an operation is already in progress.</td>\n </tr>\n <tr>\n <td><code>EINTR</code></td>\n <td>Indicates that a function call was interrupted.</td>\n </tr>\n <tr>\n <td><code>EINVAL</code></td>\n <td>Indicates that an invalid argument was provided.</td>\n </tr>\n <tr>\n <td><code>EIO</code></td>\n <td>Indicates an otherwise unspecified I/O error.</td>\n </tr>\n <tr>\n <td><code>EISCONN</code></td>\n <td>Indicates that the socket is connected.</td>\n </tr>\n <tr>\n <td><code>EISDIR</code></td>\n <td>Indicates that the path is a directory.</td>\n </tr>\n <tr>\n <td><code>ELOOP</code></td>\n <td>Indicates too many levels of symbolic links in a path.</td>\n </tr>\n <tr>\n <td><code>EMFILE</code></td>\n <td>Indicates that there are too many open files.</td>\n </tr>\n <tr>\n <td><code>EMLINK</code></td>\n <td>Indicates that there are too many hard links to a file.</td>\n </tr>\n <tr>\n <td><code>EMSGSIZE</code></td>\n <td>Indicates that the provided message is too long.</td>\n </tr>\n <tr>\n <td><code>EMULTIHOP</code></td>\n <td>Indicates that a multihop was attempted.</td>\n </tr>\n <tr>\n <td><code>ENAMETOOLONG</code></td>\n <td>Indicates that the filename is too long.</td>\n </tr>\n <tr>\n <td><code>ENETDOWN</code></td>\n <td>Indicates that the network is down.</td>\n </tr>\n <tr>\n <td><code>ENETRESET</code></td>\n <td>Indicates that the connection has been aborted by the network.</td>\n </tr>\n <tr>\n <td><code>ENETUNREACH</code></td>\n <td>Indicates that the network is unreachable.</td>\n </tr>\n <tr>\n <td><code>ENFILE</code></td>\n <td>Indicates too many open files in the system.</td>\n </tr>\n <tr>\n <td><code>ENOBUFS</code></td>\n <td>Indicates that no buffer space is available.</td>\n </tr>\n <tr>\n <td><code>ENODATA</code></td>\n <td>Indicates that no message is available on the stream head read\n queue.</td>\n </tr>\n <tr>\n <td><code>ENODEV</code></td>\n <td>Indicates that there is no such device.</td>\n </tr>\n <tr>\n <td><code>ENOENT</code></td>\n <td>Indicates that there is no such file or directory.</td>\n </tr>\n <tr>\n <td><code>ENOEXEC</code></td>\n <td>Indicates an exec format error.</td>\n </tr>\n <tr>\n <td><code>ENOLCK</code></td>\n <td>Indicates that there are no locks available.</td>\n </tr>\n <tr>\n <td><code>ENOLINK</code></td>\n <td>Indications that a link has been severed.</td>\n </tr>\n <tr>\n <td><code>ENOMEM</code></td>\n <td>Indicates that there is not enough space.</td>\n </tr>\n <tr>\n <td><code>ENOMSG</code></td>\n <td>Indicates that there is no message of the desired type.</td>\n </tr>\n <tr>\n <td><code>ENOPROTOOPT</code></td>\n <td>Indicates that a given protocol is not available.</td>\n </tr>\n <tr>\n <td><code>ENOSPC</code></td>\n <td>Indicates that there is no space available on the device.</td>\n </tr>\n <tr>\n <td><code>ENOSR</code></td>\n <td>Indicates that there are no stream resources available.</td>\n </tr>\n <tr>\n <td><code>ENOSTR</code></td>\n <td>Indicates that a given resource is not a stream.</td>\n </tr>\n <tr>\n <td><code>ENOSYS</code></td>\n <td>Indicates that a function has not been implemented.</td>\n </tr>\n <tr>\n <td><code>ENOTCONN</code></td>\n <td>Indicates that the socket is not connected.</td>\n </tr>\n <tr>\n <td><code>ENOTDIR</code></td>\n <td>Indicates that the path is not a directory.</td>\n </tr>\n <tr>\n <td><code>ENOTEMPTY</code></td>\n <td>Indicates that the directory is not empty.</td>\n </tr>\n <tr>\n <td><code>ENOTSOCK</code></td>\n <td>Indicates that the given item is not a socket.</td>\n </tr>\n <tr>\n <td><code>ENOTSUP</code></td>\n <td>Indicates that a given operation is not supported.</td>\n </tr>\n <tr>\n <td><code>ENOTTY</code></td>\n <td>Indicates an inappropriate I/O control operation.</td>\n </tr>\n <tr>\n <td><code>ENXIO</code></td>\n <td>Indicates no such device or address.</td>\n </tr>\n <tr>\n <td><code>EOPNOTSUPP</code></td>\n <td>Indicates that an operation is not supported on the socket. Although\n <code>ENOTSUP</code> and <code>EOPNOTSUPP</code> have the same value\n on Linux, according to POSIX.1 these error values should be distinct.)</td>\n </tr>\n <tr>\n <td><code>EOVERFLOW</code></td>\n <td>Indicates that a value is too large to be stored in a given data\n type.</td>\n </tr>\n <tr>\n <td><code>EPERM</code></td>\n <td>Indicates that the operation is not permitted.</td>\n </tr>\n <tr>\n <td><code>EPIPE</code></td>\n <td>Indicates a broken pipe.</td>\n </tr>\n <tr>\n <td><code>EPROTO</code></td>\n <td>Indicates a protocol error.</td>\n </tr>\n <tr>\n <td><code>EPROTONOSUPPORT</code></td>\n <td>Indicates that a protocol is not supported.</td>\n </tr>\n <tr>\n <td><code>EPROTOTYPE</code></td>\n <td>Indicates the wrong type of protocol for a socket.</td>\n </tr>\n <tr>\n <td><code>ERANGE</code></td>\n <td>Indicates that the results are too large.</td>\n </tr>\n <tr>\n <td><code>EROFS</code></td>\n <td>Indicates that the file system is read only.</td>\n </tr>\n <tr>\n <td><code>ESPIPE</code></td>\n <td>Indicates an invalid seek operation.</td>\n </tr>\n <tr>\n <td><code>ESRCH</code></td>\n <td>Indicates that there is no such process.</td>\n </tr>\n <tr>\n <td><code>ESTALE</code></td>\n <td>Indicates that the file handle is stale.</td>\n </tr>\n <tr>\n <td><code>ETIME</code></td>\n <td>Indicates an expired timer.</td>\n </tr>\n <tr>\n <td><code>ETIMEDOUT</code></td>\n <td>Indicates that the connection timed out.</td>\n </tr>\n <tr>\n <td><code>ETXTBSY</code></td>\n <td>Indicates that a text file is busy.</td>\n </tr>\n <tr>\n <td><code>EWOULDBLOCK</code></td>\n <td>Indicates that the operation would block.</td>\n </tr>\n <tr>\n <td><code>EXDEV</code></td>\n <td>Indicates an improper link.\n </tr>\n</table>", 521 "type": "module", 522 "displayName": "POSIX error constants" 523 }, 524 { 525 "textRaw": "Windows-specific error constants", 526 "name": "windows-specific_error_constants", 527 "desc": "<p>The following error codes are specific to the Windows operating system.</p>\n<table>\n <tr>\n <th>Constant</th>\n <th>Description</th>\n </tr>\n <tr>\n <td><code>WSAEINTR</code></td>\n <td>Indicates an interrupted function call.</td>\n </tr>\n <tr>\n <td><code>WSAEBADF</code></td>\n <td>Indicates an invalid file handle.</td>\n </tr>\n <tr>\n <td><code>WSAEACCES</code></td>\n <td>Indicates insufficient permissions to complete the operation.</td>\n </tr>\n <tr>\n <td><code>WSAEFAULT</code></td>\n <td>Indicates an invalid pointer address.</td>\n </tr>\n <tr>\n <td><code>WSAEINVAL</code></td>\n <td>Indicates that an invalid argument was passed.</td>\n </tr>\n <tr>\n <td><code>WSAEMFILE</code></td>\n <td>Indicates that there are too many open files.</td>\n </tr>\n <tr>\n <td><code>WSAEWOULDBLOCK</code></td>\n <td>Indicates that a resource is temporarily unavailable.</td>\n </tr>\n <tr>\n <td><code>WSAEINPROGRESS</code></td>\n <td>Indicates that an operation is currently in progress.</td>\n </tr>\n <tr>\n <td><code>WSAEALREADY</code></td>\n <td>Indicates that an operation is already in progress.</td>\n </tr>\n <tr>\n <td><code>WSAENOTSOCK</code></td>\n <td>Indicates that the resource is not a socket.</td>\n </tr>\n <tr>\n <td><code>WSAEDESTADDRREQ</code></td>\n <td>Indicates that a destination address is required.</td>\n </tr>\n <tr>\n <td><code>WSAEMSGSIZE</code></td>\n <td>Indicates that the message size is too long.</td>\n </tr>\n <tr>\n <td><code>WSAEPROTOTYPE</code></td>\n <td>Indicates the wrong protocol type for the socket.</td>\n </tr>\n <tr>\n <td><code>WSAENOPROTOOPT</code></td>\n <td>Indicates a bad protocol option.</td>\n </tr>\n <tr>\n <td><code>WSAEPROTONOSUPPORT</code></td>\n <td>Indicates that the protocol is not supported.</td>\n </tr>\n <tr>\n <td><code>WSAESOCKTNOSUPPORT</code></td>\n <td>Indicates that the socket type is not supported.</td>\n </tr>\n <tr>\n <td><code>WSAEOPNOTSUPP</code></td>\n <td>Indicates that the operation is not supported.</td>\n </tr>\n <tr>\n <td><code>WSAEPFNOSUPPORT</code></td>\n <td>Indicates that the protocol family is not supported.</td>\n </tr>\n <tr>\n <td><code>WSAEAFNOSUPPORT</code></td>\n <td>Indicates that the address family is not supported.</td>\n </tr>\n <tr>\n <td><code>WSAEADDRINUSE</code></td>\n <td>Indicates that the network address is already in use.</td>\n </tr>\n <tr>\n <td><code>WSAEADDRNOTAVAIL</code></td>\n <td>Indicates that the network address is not available.</td>\n </tr>\n <tr>\n <td><code>WSAENETDOWN</code></td>\n <td>Indicates that the network is down.</td>\n </tr>\n <tr>\n <td><code>WSAENETUNREACH</code></td>\n <td>Indicates that the network is unreachable.</td>\n </tr>\n <tr>\n <td><code>WSAENETRESET</code></td>\n <td>Indicates that the network connection has been reset.</td>\n </tr>\n <tr>\n <td><code>WSAECONNABORTED</code></td>\n <td>Indicates that the connection has been aborted.</td>\n </tr>\n <tr>\n <td><code>WSAECONNRESET</code></td>\n <td>Indicates that the connection has been reset by the peer.</td>\n </tr>\n <tr>\n <td><code>WSAENOBUFS</code></td>\n <td>Indicates that there is no buffer space available.</td>\n </tr>\n <tr>\n <td><code>WSAEISCONN</code></td>\n <td>Indicates that the socket is already connected.</td>\n </tr>\n <tr>\n <td><code>WSAENOTCONN</code></td>\n <td>Indicates that the socket is not connected.</td>\n </tr>\n <tr>\n <td><code>WSAESHUTDOWN</code></td>\n <td>Indicates that data cannot be sent after the socket has been\n shutdown.</td>\n </tr>\n <tr>\n <td><code>WSAETOOMANYREFS</code></td>\n <td>Indicates that there are too many references.</td>\n </tr>\n <tr>\n <td><code>WSAETIMEDOUT</code></td>\n <td>Indicates that the connection has timed out.</td>\n </tr>\n <tr>\n <td><code>WSAECONNREFUSED</code></td>\n <td>Indicates that the connection has been refused.</td>\n </tr>\n <tr>\n <td><code>WSAELOOP</code></td>\n <td>Indicates that a name cannot be translated.</td>\n </tr>\n <tr>\n <td><code>WSAENAMETOOLONG</code></td>\n <td>Indicates that a name was too long.</td>\n </tr>\n <tr>\n <td><code>WSAEHOSTDOWN</code></td>\n <td>Indicates that a network host is down.</td>\n </tr>\n <tr>\n <td><code>WSAEHOSTUNREACH</code></td>\n <td>Indicates that there is no route to a network host.</td>\n </tr>\n <tr>\n <td><code>WSAENOTEMPTY</code></td>\n <td>Indicates that the directory is not empty.</td>\n </tr>\n <tr>\n <td><code>WSAEPROCLIM</code></td>\n <td>Indicates that there are too many processes.</td>\n </tr>\n <tr>\n <td><code>WSAEUSERS</code></td>\n <td>Indicates that the user quota has been exceeded.</td>\n </tr>\n <tr>\n <td><code>WSAEDQUOT</code></td>\n <td>Indicates that the disk quota has been exceeded.</td>\n </tr>\n <tr>\n <td><code>WSAESTALE</code></td>\n <td>Indicates a stale file handle reference.</td>\n </tr>\n <tr>\n <td><code>WSAEREMOTE</code></td>\n <td>Indicates that the item is remote.</td>\n </tr>\n <tr>\n <td><code>WSASYSNOTREADY</code></td>\n <td>Indicates that the network subsystem is not ready.</td>\n </tr>\n <tr>\n <td><code>WSAVERNOTSUPPORTED</code></td>\n <td>Indicates that the <code>winsock.dll</code> version is out of\n range.</td>\n </tr>\n <tr>\n <td><code>WSANOTINITIALISED</code></td>\n <td>Indicates that successful WSAStartup has not yet been performed.</td>\n </tr>\n <tr>\n <td><code>WSAEDISCON</code></td>\n <td>Indicates that a graceful shutdown is in progress.</td>\n </tr>\n <tr>\n <td><code>WSAENOMORE</code></td>\n <td>Indicates that there are no more results.</td>\n </tr>\n <tr>\n <td><code>WSAECANCELLED</code></td>\n <td>Indicates that an operation has been canceled.</td>\n </tr>\n <tr>\n <td><code>WSAEINVALIDPROCTABLE</code></td>\n <td>Indicates that the procedure call table is invalid.</td>\n </tr>\n <tr>\n <td><code>WSAEINVALIDPROVIDER</code></td>\n <td>Indicates an invalid service provider.</td>\n </tr>\n <tr>\n <td><code>WSAEPROVIDERFAILEDINIT</code></td>\n <td>Indicates that the service provider failed to initialized.</td>\n </tr>\n <tr>\n <td><code>WSASYSCALLFAILURE</code></td>\n <td>Indicates a system call failure.</td>\n </tr>\n <tr>\n <td><code>WSASERVICE_NOT_FOUND</code></td>\n <td>Indicates that a service was not found.</td>\n </tr>\n <tr>\n <td><code>WSATYPE_NOT_FOUND</code></td>\n <td>Indicates that a class type was not found.</td>\n </tr>\n <tr>\n <td><code>WSA_E_NO_MORE</code></td>\n <td>Indicates that there are no more results.</td>\n </tr>\n <tr>\n <td><code>WSA_E_CANCELLED</code></td>\n <td>Indicates that the call was canceled.</td>\n </tr>\n <tr>\n <td><code>WSAEREFUSED</code></td>\n <td>Indicates that a database query was refused.</td>\n </tr>\n</table>", 528 "type": "module", 529 "displayName": "Windows-specific error constants" 530 } 531 ], 532 "type": "module", 533 "displayName": "Error constants" 534 }, 535 { 536 "textRaw": "dlopen constants", 537 "name": "dlopen_constants", 538 "desc": "<p>If available on the operating system, the following constants\nare 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\ninformation.</p>\n<table>\n <tr>\n <th>Constant</th>\n <th>Description</th>\n </tr>\n <tr>\n <td><code>RTLD_LAZY</code></td>\n <td>Perform lazy binding. Node.js sets this flag by default.</td>\n </tr>\n <tr>\n <td><code>RTLD_NOW</code></td>\n <td>Resolve all undefined symbols in the library before dlopen(3)\n returns.</td>\n </tr>\n <tr>\n <td><code>RTLD_GLOBAL</code></td>\n <td>Symbols defined by the library will be made available for symbol\n resolution of subsequently loaded libraries.</td>\n </tr>\n <tr>\n <td><code>RTLD_LOCAL</code></td>\n <td>The converse of <code>RTLD_GLOBAL</code>. This is the default behavior\n if neither flag is specified.</td>\n </tr>\n <tr>\n <td><code>RTLD_DEEPBIND</code></td>\n <td>Make a self-contained library use its own symbols in preference to\n symbols from previously loaded libraries.</td>\n </tr>\n</table>", 539 "type": "module", 540 "displayName": "dlopen constants" 541 }, 542 { 543 "textRaw": "Priority constants", 544 "name": "priority_constants", 545 "meta": { 546 "added": [ 547 "v10.10.0" 548 ], 549 "changes": [] 550 }, 551 "desc": "<p>The following process scheduling constants are exported by\n<code>os.constants.priority</code>.</p>\n<table>\n <tr>\n <th>Constant</th>\n <th>Description</th>\n </tr>\n <tr>\n <td><code>PRIORITY_LOW</code></td>\n <td>The lowest process scheduling priority. This corresponds to\n <code>IDLE_PRIORITY_CLASS</code> on Windows, and a nice value of\n <code>19</code> on all other platforms.</td>\n </tr>\n <tr>\n <td><code>PRIORITY_BELOW_NORMAL</code></td>\n <td>The process scheduling priority above <code>PRIORITY_LOW</code> and\n below <code>PRIORITY_NORMAL</code>. This corresponds to\n <code>BELOW_NORMAL_PRIORITY_CLASS</code> on Windows, and a nice value of\n <code>10</code> on all other platforms.</td>\n </tr>\n <tr>\n <td><code>PRIORITY_NORMAL</code></td>\n <td>The default process scheduling priority. This corresponds to\n <code>NORMAL_PRIORITY_CLASS</code> on Windows, and a nice value of\n <code>0</code> on all other platforms.</td>\n </tr>\n <tr>\n <td><code>PRIORITY_ABOVE_NORMAL</code></td>\n <td>The process scheduling priority above <code>PRIORITY_NORMAL</code> and\n below <code>PRIORITY_HIGH</code>. This corresponds to\n <code>ABOVE_NORMAL_PRIORITY_CLASS</code> on Windows, and a nice value of\n <code>-7</code> on all other platforms.</td>\n </tr>\n <tr>\n <td><code>PRIORITY_HIGH</code></td>\n <td>The process scheduling priority above <code>PRIORITY_ABOVE_NORMAL</code>\n and below <code>PRIORITY_HIGHEST</code>. This corresponds to\n <code>HIGH_PRIORITY_CLASS</code> on Windows, and a nice value of\n <code>-14</code> on all other platforms.</td>\n </tr>\n <tr>\n <td><code>PRIORITY_HIGHEST</code></td>\n <td>The highest process scheduling priority. This corresponds to\n <code>REALTIME_PRIORITY_CLASS</code> on Windows, and a nice value of\n <code>-20</code> on all other platforms.</td>\n </tr>\n</table>", 552 "type": "module", 553 "displayName": "Priority constants" 554 }, 555 { 556 "textRaw": "libuv constants", 557 "name": "libuv_constants", 558 "desc": "<table>\n <tr>\n <th>Constant</th>\n <th>Description</th>\n </tr>\n <tr>\n <td><code>UV_UDP_REUSEADDR</code></td>\n <td></td>\n </tr>\n</table>", 559 "type": "module", 560 "displayName": "libuv constants" 561 } 562 ], 563 "type": "module", 564 "displayName": "OS constants" 565 } 566 ], 567 "type": "module", 568 "displayName": "OS" 569 } 570 ] 571}