Skip to content

Commit

Permalink
src,test: further cleanup references to osx
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbayley committed Jul 11, 2024
1 parent cd83c5b commit b66edfa
Show file tree
Hide file tree
Showing 38 changed files with 974 additions and 974 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ else
BINARYNAME=$(TARNAME)-$(PLATFORM)-$(ARCH)
endif
BINARYTAR=$(BINARYNAME).tar
# OSX doesn't have xz installed by default, http://macpkg.sourceforge.net/
# macOS doesn't have xz installed by default, http://macpkg.sourceforge.net/
HAS_XZ ?= $(shell command -v xz > /dev/null 2>&1; [ $$? -eq 0 ] && echo 1 || echo 0)
# Supply SKIP_XZ=1 to explicitly skip .tar.xz creation
SKIP_XZ ?= 0
Expand Down
6 changes: 3 additions & 3 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,14 @@
dest="fully_static",
default=None,
help="Generate an executable without external dynamic libraries. This "
"will not work on OSX when using the default compilation environment")
"will not work on macOS when using the default compilation environment")

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

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

Expand Down
2 changes: 1 addition & 1 deletion node.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
}],

[ 'OS=="mac"', {
# linking Corefoundation is needed since certain OSX debugging tools
# linking Corefoundation is needed since certain macOS debugging tools
# like Instruments require it for some features
'libraries': [ '-framework CoreFoundation' ],
'defines!': [
Expand Down
2 changes: 1 addition & 1 deletion src/large_pages/node_large_page.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
// To move the .text section, perform the following steps:
// * Map a new, temporary area and copy the original code there.
// * Use mmap using the start address with MAP_FIXED so we get exactly the
// same virtual address (except on OSX). On platforms other than Linux,
// same virtual address (except on macOS). On platforms other than Linux,
// use mmap flags to request hugepages.
// * On Linux use madvise with MADV_HUGEPAGE to use anonymous 2MB pages.
// * If successful copy the code to the newly mapped area and protect it to
Expand Down
2 changes: 1 addition & 1 deletion src/node_internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ bool HasSignalJSHandler(int signum);

#ifdef _WIN32
typedef SYSTEMTIME TIME_TYPE;
#else // UNIX, OSX
#else // UNIX, macOS
typedef struct tm TIME_TYPE;
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/node_report.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static void WriteNodeReport(Isolate* isolate,
tm_struct.wMinute,
tm_struct.wSecond);
writer.json_keyvalue("dumpEventTime", timebuf);
#else // UNIX, OSX
#else // UNIX, macOS
snprintf(timebuf,
sizeof(timebuf),
"%4d-%02d-%02dT%02d:%02d:%02dZ",
Expand Down
4 changes: 2 additions & 2 deletions src/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ std::vector<char> ReadFileSync(FILE* fp) {
void DiagnosticFilename::LocalTime(TIME_TYPE* tm_struct) {
#ifdef _WIN32
GetLocalTime(tm_struct);
#else // UNIX, OSX
#else // UNIX, macOS
struct timeval time_val;
gettimeofday(&time_val, nullptr);
localtime_r(&time_val.tv_sec, tm_struct);
Expand All @@ -343,7 +343,7 @@ std::string DiagnosticFilename::MakeFilename(
oss << "." << std::setfill('0') << std::setw(2) << tm_struct.wHour;
oss << std::setfill('0') << std::setw(2) << tm_struct.wMinute;
oss << std::setfill('0') << std::setw(2) << tm_struct.wSecond;
#else // UNIX, OSX
#else // UNIX, macOS
oss << "."
<< std::setfill('0')
<< std::setw(4)
Expand Down
2 changes: 1 addition & 1 deletion test/common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ Platform check for Linux.

Platform check for Linux on PowerPC.

### `isOSX`
### `isMacOS`

* [\<boolean>][<boolean>]

Expand Down
4 changes: 2 additions & 2 deletions test/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const isSunOS = process.platform === 'sunos';
const isFreeBSD = process.platform === 'freebsd';
const isOpenBSD = process.platform === 'openbsd';
const isLinux = process.platform === 'linux';
const isOSX = process.platform === 'darwin';
const isMacOS = process.platform === 'darwin';
const isASan = process.config.variables.asan === 1;
const isPi = (() => {
try {
Expand Down Expand Up @@ -1003,7 +1003,7 @@ const common = {
isLinux,
isMainThread,
isOpenBSD,
isOSX,
isMacOS,
isPi,
isSunOS,
isWindows,
Expand Down
4 changes: 2 additions & 2 deletions test/common/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const {
isLinuxPPCBE,
isMainThread,
isOpenBSD,
isOSX,
isMacOS,
isSunOS,
isWindows,
localIPv6Hosts,
Expand Down Expand Up @@ -85,7 +85,7 @@ export {
isLinuxPPCBE,
isMainThread,
isOpenBSD,
isOSX,
isMacOS,
isSunOS,
isWindows,
localIPv6Hosts,
Expand Down
2 changes: 1 addition & 1 deletion test/common/shared-lib-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function addLibraryPath(env) {
env.LIBPATH =
(env.LIBPATH ? env.LIBPATH + path.delimiter : '') +
kExecPath;
// For Mac OSX.
// For macOS.
env.DYLD_LIBRARY_PATH =
(env.DYLD_LIBRARY_PATH ? env.DYLD_LIBRARY_PATH + path.delimiter : '') +
kExecPath;
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/permission/fs-write.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ const relativeProtectedFolder = process.env.RELATIVEBLOCKEDFOLDER;

// fs.lchmod
{
if (common.isOSX) {
if (common.isMacOS) {
fs.lchmod(blockedFile, 0o755, common.expectsError({
code: 'ERR_ACCESS_DENIED',
permission: 'FileSystemWrite',
Expand Down
Loading

0 comments on commit b66edfa

Please sign in to comment.