Skip to content

Commit 5866940

Browse files
committed
src,test: further cleanup references to osx
1 parent fc23362 commit 5866940

38 files changed

+974
-974
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ else
10031003
BINARYNAME=$(TARNAME)-$(PLATFORM)-$(ARCH)
10041004
endif
10051005
BINARYTAR=$(BINARYNAME).tar
1006-
# OSX doesn't have xz installed by default, http://macpkg.sourceforge.net/
1006+
# macOS doesn't have xz installed by default, http://macpkg.sourceforge.net/
10071007
HAS_XZ ?= $(shell command -v xz > /dev/null 2>&1; [ $$? -eq 0 ] && echo 1 || echo 0)
10081008
# Supply SKIP_XZ=1 to explicitly skip .tar.xz creation
10091009
SKIP_XZ ?= 0

configure.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@
164164
dest="fully_static",
165165
default=None,
166166
help="Generate an executable without external dynamic libraries. This "
167-
"will not work on OSX when using the default compilation environment")
167+
"will not work on macOS when using the default compilation environment")
168168

169169
parser.add_argument("--partly-static",
170170
action="store_true",
171171
dest="partly_static",
172172
default=None,
173173
help="Generate an executable with libgcc and libstdc++ libraries. This "
174-
"will not work on OSX when using the default compilation environment")
174+
"will not work on macOS when using the default compilation environment")
175175

176176
parser.add_argument("--enable-vtune-profiling",
177177
action="store_true",
@@ -1744,7 +1744,7 @@ def without_ssl_error(option):
17441744
def configure_static(o):
17451745
if options.fully_static or options.partly_static:
17461746
if flavor == 'mac':
1747-
warn("Generation of static executable will not work on OSX "
1747+
warn("Generation of static executable will not work on macOS "
17481748
"when using the default compilation environment")
17491749
return
17501750

node.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
}],
226226

227227
[ 'OS=="mac"', {
228-
# linking Corefoundation is needed since certain OSX debugging tools
228+
# linking Corefoundation is needed since certain macOS debugging tools
229229
# like Instruments require it for some features
230230
'libraries': [ '-framework CoreFoundation' ],
231231
'defines!': [

src/large_pages/node_large_page.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
// To move the .text section, perform the following steps:
4949
// * Map a new, temporary area and copy the original code there.
5050
// * Use mmap using the start address with MAP_FIXED so we get exactly the
51-
// same virtual address (except on OSX). On platforms other than Linux,
51+
// same virtual address (except on macOS). On platforms other than Linux,
5252
// use mmap flags to request hugepages.
5353
// * On Linux use madvise with MADV_HUGEPAGE to use anonymous 2MB pages.
5454
// * If successful copy the code to the newly mapped area and protect it to

src/node_internals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ bool HasSignalJSHandler(int signum);
362362

363363
#ifdef _WIN32
364364
typedef SYSTEMTIME TIME_TYPE;
365-
#else // UNIX, OSX
365+
#else // UNIX, macOS
366366
typedef struct tm TIME_TYPE;
367367
#endif
368368

src/node_report.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static void WriteNodeReport(Isolate* isolate,
133133
tm_struct.wMinute,
134134
tm_struct.wSecond);
135135
writer.json_keyvalue("dumpEventTime", timebuf);
136-
#else // UNIX, OSX
136+
#else // UNIX, macOS
137137
snprintf(timebuf,
138138
sizeof(timebuf),
139139
"%4d-%02d-%02dT%02d:%02d:%02dZ",

src/util.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ std::vector<char> ReadFileSync(FILE* fp) {
320320
void DiagnosticFilename::LocalTime(TIME_TYPE* tm_struct) {
321321
#ifdef _WIN32
322322
GetLocalTime(tm_struct);
323-
#else // UNIX, OSX
323+
#else // UNIX, macOS
324324
struct timeval time_val;
325325
gettimeofday(&time_val, nullptr);
326326
localtime_r(&time_val.tv_sec, tm_struct);
@@ -343,7 +343,7 @@ std::string DiagnosticFilename::MakeFilename(
343343
oss << "." << std::setfill('0') << std::setw(2) << tm_struct.wHour;
344344
oss << std::setfill('0') << std::setw(2) << tm_struct.wMinute;
345345
oss << std::setfill('0') << std::setw(2) << tm_struct.wSecond;
346-
#else // UNIX, OSX
346+
#else // UNIX, macOS
347347
oss << "."
348348
<< std::setfill('0')
349349
<< std::setw(4)

test/common/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Platform check for Linux.
282282

283283
Platform check for Linux on PowerPC.
284284

285-
### `isOSX`
285+
### `isMacOS`
286286

287287
* [\<boolean>][<boolean>]
288288

test/common/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const isSunOS = process.platform === 'sunos';
141141
const isFreeBSD = process.platform === 'freebsd';
142142
const isOpenBSD = process.platform === 'openbsd';
143143
const isLinux = process.platform === 'linux';
144-
const isOSX = process.platform === 'darwin';
144+
const isMacOS = process.platform === 'darwin';
145145
const isASan = process.config.variables.asan === 1;
146146
const isPi = (() => {
147147
try {
@@ -1003,7 +1003,7 @@ const common = {
10031003
isLinux,
10041004
isMainThread,
10051005
isOpenBSD,
1006-
isOSX,
1006+
isMacOS,
10071007
isPi,
10081008
isSunOS,
10091009
isWindows,

test/common/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const {
3030
isLinuxPPCBE,
3131
isMainThread,
3232
isOpenBSD,
33-
isOSX,
33+
isMacOS,
3434
isSunOS,
3535
isWindows,
3636
localIPv6Hosts,
@@ -85,7 +85,7 @@ export {
8585
isLinuxPPCBE,
8686
isMainThread,
8787
isOpenBSD,
88-
isOSX,
88+
isMacOS,
8989
isSunOS,
9090
isWindows,
9191
localIPv6Hosts,

test/common/shared-lib-util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function addLibraryPath(env) {
2222
env.LIBPATH =
2323
(env.LIBPATH ? env.LIBPATH + path.delimiter : '') +
2424
kExecPath;
25-
// For Mac OSX.
25+
// For macOS.
2626
env.DYLD_LIBRARY_PATH =
2727
(env.DYLD_LIBRARY_PATH ? env.DYLD_LIBRARY_PATH + path.delimiter : '') +
2828
kExecPath;

test/fixtures/permission/fs-write.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ const relativeProtectedFolder = process.env.RELATIVEBLOCKEDFOLDER;
338338

339339
// fs.lchmod
340340
{
341-
if (common.isOSX) {
341+
if (common.isMacOS) {
342342
fs.lchmod(blockedFile, 0o755, common.expectsError({
343343
code: 'ERR_ACCESS_DENIED',
344344
permission: 'FileSystemWrite',

0 commit comments

Comments
 (0)