Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 53e01f6

Browse filesBrowse files
cjihrigdanielleadams
authored andcommitted
doc: move os.machine() docs to sorted position
This commit moves the os.machine() docs so that the API list is sorted. PR-URL: #45647 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 0100fd4 commit 53e01f6
Copy full SHA for 53e01f6

File tree

Expand file treeCollapse file tree

1 file changed

+16
-16
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+16
-16
lines changed
Open diff view settings
Collapse file

‎doc/api/os.md‎

Copy file name to clipboardExpand all lines: doc/api/os.md
+16-16Lines changed: 16 additions & 16 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,22 @@ system and expressed as a fractional number.
220220
The load average is a Unix-specific concept. On Windows, the return value is
221221
always `[0, 0, 0]`.
222222

223+
## `os.machine()`
224+
225+
<!-- YAML
226+
added: v18.9.0
227+
-->
228+
229+
* Returns {string}
230+
231+
Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`,
232+
`mips`, `mips64`, `ppc64`, `ppc64le`, `s390`, `s390x`, `i386`, `i686`, `x86_64`.
233+
234+
On POSIX systems, the machine type is determined by calling
235+
[`uname(3)`][]. On Windows, `RtlGetVersion()` is used, and if it is not
236+
available, `GetVersionExW()` will be used. See
237+
<https://en.wikipedia.org/wiki/Uname#Examples> for more information.
238+
223239
## `os.networkInterfaces()`
224240

225241
<!-- YAML
@@ -452,22 +468,6 @@ On POSIX systems, the operating system release is determined by calling
452468
available, `GetVersionExW()` will be used. See
453469
<https://en.wikipedia.org/wiki/Uname#Examples> for more information.
454470

455-
## `os.machine()`
456-
457-
<!-- YAML
458-
added: v18.9.0
459-
-->
460-
461-
* Returns {string}
462-
463-
Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`,
464-
`mips`, `mips64`, `ppc64`, `ppc64le`, `s390`, `s390x`, `i386`, `i686`, `x86_64`.
465-
466-
On POSIX systems, the machine type is determined by calling
467-
[`uname(3)`][]. On Windows, `RtlGetVersion()` is used, and if it is not
468-
available, `GetVersionExW()` will be used. See
469-
<https://en.wikipedia.org/wiki/Uname#Examples> for more information.
470-
471471
## OS constants
472472

473473
The following constants are exported by `os.constants`.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.