Skip to content

Commit 7a5d07c

Browse files
JR McEnteejasnell
JR McEntee
authored andcommitted
doc: change Mac OS X to macOS
This update changes references to "Mac OS X", "OS X", and "OSX" in markdown files to "macOS". PR-URL: #12106 Fixes: #12086 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 84a2339 commit 7a5d07c

11 files changed

+24
-24
lines changed

BUILDING.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Depending on host platform, the selection of toolchains may vary.
7373

7474
## Building Node.js on supported platforms
7575

76-
### Unix / OS X
76+
### Unix / macOS
7777

7878
Prerequisites:
7979

@@ -82,7 +82,7 @@ Prerequisites:
8282
* Python 2.6 or 2.7
8383
* GNU Make 3.81 or newer
8484

85-
On OS X, you will also need:
85+
On macOS, you will also need:
8686
* [Xcode](https://developer.apple.com/xcode/download/)
8787
- You also need to install the `Command Line Tools` via Xcode. You can find
8888
this under the menu `Xcode -> Preferences -> Downloads`
@@ -236,7 +236,7 @@ With the `--download=all`, this may download ICU if you don't have an
236236
ICU in `deps/icu`. (The embedded `small-icu` included in the default
237237
Node.js source does not include all locales.)
238238

239-
##### Unix / OS X:
239+
##### Unix / macOS:
240240

241241
```console
242242
$ ./configure --with-intl=full-icu --download=all
@@ -253,7 +253,7 @@ $ ./configure --with-intl=full-icu --download=all
253253
The `Intl` object will not be available, nor some other APIs such as
254254
`String.normalize`.
255255

256-
##### Unix / OS X:
256+
##### Unix / macOS:
257257

258258
```console
259259
$ ./configure --without-intl
@@ -265,7 +265,7 @@ $ ./configure --without-intl
265265
> .\vcbuild without-intl
266266
```
267267

268-
#### Use existing installed ICU (Unix / OS X only):
268+
#### Use existing installed ICU (Unix / macOS only):
269269

270270
```console
271271
$ pkg-config --modversion icu-i18n && ./configure --with-intl=system-icu
@@ -281,7 +281,7 @@ You can find other ICU releases at
281281
Download the file named something like `icu4c-**##.#**-src.tgz` (or
282282
`.zip`).
283283

284-
##### Unix / OS X
284+
##### Unix / macOS
285285

286286
From an already-unpacked ICU:
287287
```console

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Bug fixes and features **should come with tests**. Add your tests in the
157157
project, see this [guide](./doc/guides/writing-tests.md). Looking at other tests
158158
to see how they should be structured can also help.
159159

160-
To run the tests on Unix / OS X:
160+
To run the tests on Unix / macOS:
161161

162162
```text
163163
$ ./configure && make -j4 test

doc/STYLE_GUIDE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* When documenting APIs, note the version the API was introduced in at
4040
the end of the section. If an API has been deprecated, also note the first
4141
version that the API appeared deprecated in.
42-
* When using dashes, use emdashes ("—", Ctrl+Alt+"-" on OSX) surrounded by
42+
* When using dashes, use emdashes ("—", Ctrl+Alt+"-" on macOS) surrounded by
4343
spaces, per the New York Times usage.
4444
* Including assets:
4545
* If you wish to add an illustration or full program, add it to the

doc/api/child_process.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ when the child process terminates.
7575

7676
The importance of the distinction between [`child_process.exec()`][] and
7777
[`child_process.execFile()`][] can vary based on platform. On Unix-type operating
78-
systems (Unix, Linux, OSX) [`child_process.execFile()`][] can be more efficient
78+
systems (Unix, Linux, macOS) [`child_process.execFile()`][] can be more efficient
7979
because it does not spawn a shell. On Windows, however, `.bat` and `.cmd`
8080
files are not executable on their own without a terminal, and therefore cannot
8181
be launched using [`child_process.execFile()`][]. When running on Windows, `.bat`
@@ -433,7 +433,7 @@ child.on('error', (err) => {
433433
});
434434
```
435435

436-
*Note: Certain platforms (OS X, Linux) will use the value of `argv[0]` for the
436+
*Note: Certain platforms (macOS, Linux) will use the value of `argv[0]` for the
437437
process title while others (Windows, SunOS) will use `command`.*
438438

439439
*Note: Node.js currently overwrites `argv[0]` with `process.execPath` on

doc/api/documentation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ like `fs.open()`, will document that. The docs link to the corresponding man
7373
pages (short for manual pages) which describe how the syscalls work.
7474

7575
**Caveat:** some syscalls, like lchown(2), are BSD-specific. That means, for
76-
example, that `fs.lchown()` only works on Mac OS X and other BSD-derived systems,
76+
example, that `fs.lchown()` only works on macOS and other BSD-derived systems,
7777
and is not available on Linux.
7878

7979
Most Unix syscalls have Windows equivalents, but behavior may differ on Windows
80-
relative to Linux and OS X. For an example of the subtle ways in which it's
80+
relative to Linux and macOS. For an example of the subtle ways in which it's
8181
sometimes impossible to replace Unix syscall semantics on Windows, see [Node
8282
issue 4760](https://github.com/nodejs/node/issues/4760).
8383

doc/api/errors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ found [here][online].
523523
[file descriptors][] allowable on the system has been reached, and
524524
requests for another descriptor cannot be fulfilled until at least one
525525
has been closed. This is encountered when opening many files at once in
526-
parallel, especially on systems (in particular, OS X) where there is a low
526+
parallel, especially on systems (in particular, macOS) where there is a low
527527
file descriptor limit for processes. To remedy a low limit, run
528528
`ulimit -n 2048` in the same shell that will run the Node.js process.
529529

doc/api/fs.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ changes:
10991099
Asynchronous lchmod(2). No arguments other than a possible exception
11001100
are given to the completion callback.
11011101

1102-
Only available on Mac OS X.
1102+
Only available on macOS.
11031103

11041104
## fs.lchmodSync(path, mode)
11051105
<!-- YAML
@@ -1374,12 +1374,12 @@ The kernel ignores the position argument and always appends the data to
13741374
the end of the file.
13751375

13761376
_Note: The behavior of `fs.open()` is platform specific for some flags. As such,
1377-
opening a directory on OS X and Linux with the `'a+'` flag - see example below -
1377+
opening a directory on macOS and Linux with the `'a+'` flag - see example below -
13781378
will return an error. In contrast, on Windows and FreeBSD, a file descriptor
13791379
will be returned._
13801380

13811381
```js
1382-
// OS X and Linux
1382+
// macOS and Linux
13831383
fs.open('<directory>', 'a+', (err, fd) => {
13841384
// => [Error: EISDIR: illegal operation on a directory, open <directory>]
13851385
});
@@ -1943,7 +1943,7 @@ Also note the listener callback is attached to the `'change'` event fired by
19431943
The `fs.watch` API is not 100% consistent across platforms, and is
19441944
unavailable in some situations.
19451945

1946-
The recursive option is only supported on OS X and Windows.
1946+
The recursive option is only supported on macOS and Windows.
19471947

19481948
#### Availability
19491949

@@ -1954,7 +1954,7 @@ to be notified of filesystem changes.
19541954

19551955
* On Linux systems, this uses [`inotify`]
19561956
* On BSD systems, this uses [`kqueue`]
1957-
* On OS X, this uses [`kqueue`] for files and [`FSEvents`] for directories.
1957+
* On macOS, this uses [`kqueue`] for files and [`FSEvents`] for directories.
19581958
* On SunOS systems (including Solaris and SmartOS), this uses [`event ports`].
19591959
* On Windows systems, this feature depends on [`ReadDirectoryChangesW`].
19601960
* On Aix systems, this feature depends on [`AHAFS`], which must be enabled.
@@ -1972,7 +1972,7 @@ less reliable.
19721972

19731973
<!--type=misc-->
19741974

1975-
On Linux and OS X systems, `fs.watch()` resolves the path to an [inode][] and
1975+
On Linux and macOS systems, `fs.watch()` resolves the path to an [inode][] and
19761976
watches the inode. If the watched path is deleted and recreated, it is assigned
19771977
a new inode. The watch will emit an event for the delete but will continue
19781978
watching the *original* inode. Events for the new inode will not be emitted.
@@ -1982,7 +1982,7 @@ In AIX, save and close of a file being watched causes two notifications -
19821982
one for adding new content, and one for truncation. Moreover, save and
19831983
close operations on some platforms cause inode changes that force watch
19841984
operations to become invalid and ineffective. AIX retains inode for the
1985-
lifetime of a file, that way though this is different from Linux / OS X,
1985+
lifetime of a file, that way though this is different from Linux / macOS,
19861986
this improves the usability of file watching. This is expected behavior.
19871987

19881988
#### Filename Argument

doc/api/net.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ sockets on other operating systems.
2525
On UNIX, the local domain is also known as the UNIX domain. The path is a
2626
filesystem path name. It gets truncated to `sizeof(sockaddr_un.sun_path) - 1`,
2727
which varies on different operating system between 91 and 107 bytes.
28-
The typical values are 107 on Linux and 103 on OS X. The path is
28+
The typical values are 107 on Linux and 103 on macOS. The path is
2929
subject to the same naming conventions and permissions checks as would be done
3030
on file creation. It will be visible in the filesystem, and will *persist until
3131
unlinked*.

doc/api/os.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ added: v0.3.3
363363
* Returns: {string}
364364

365365
The `os.type()` method returns a string identifying the operating system name
366-
as returned by uname(3). For example `'Linux'` on Linux, `'Darwin'` on OS X and
366+
as returned by uname(3). For example `'Linux'` on Linux, `'Darwin'` on macOS and
367367
`'Windows_NT'` on Windows.
368368

369369
Please see https://en.wikipedia.org/wiki/Uname#Examples for additional

doc/api/process.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ the current value of `ps`.
16311631

16321632
*Note*: When a new value is assigned, different platforms will impose different
16331633
maximum length restrictions on the title. Usually such restrictions are quite
1634-
limited. For instance, on Linux and OS X, `process.title` is limited to the size
1634+
limited. For instance, on Linux and macOS, `process.title` is limited to the size
16351635
of the binary name plus the length of the command line arguments because setting
16361636
the `process.title` overwrites the `argv` memory of the process. Node.js v0.8
16371637
allowed for longer process title strings by also overwriting the `environ`

test/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ Platform check for Linux on PowerPC.
292292
### isOSX
293293
* return [&lt;Boolean>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type)
294294

295-
Platform check for OS X.
295+
Platform check for macOS.
296296

297297
### isSunOS
298298
* return [&lt;Boolean>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type)

0 commit comments

Comments
 (0)