Skip to content

Commit

Permalink
Merge pull request RIOT-OS#18256 from Teufelchen1/chore/macos
Browse files Browse the repository at this point in the history
Documentation: Renaming OS X to macOS
  • Loading branch information
maribu authored Jun 30, 2022
2 parents d9846e4 + 1231807 commit fcbba02
Show file tree
Hide file tree
Showing 25 changed files with 39 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Please paste or specifically describe the actual output.

#### Versions
<!--
Operating system: Mac OSX, Linux, Vagrant VM
Operating system: macOS, Linux, Vagrant VM
Build environment: GCC, CLang versions (you can run the following command from
the RIOT base directory: make print-versions).
-->
Expand Down
4 changes: 4 additions & 0 deletions boards/cc2538dk/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ JLinkExe tool, then specify `PROGRAMMER=jlink` when flashing:
Be prevented that you'll need to disable Apple's System Integrity Protection
to allow FTDI unsigned drivers to be loaded on your Mac.

@warning Caution, turning off the SIP may compromise your systems security and integrity.
See [developer.apple.com](https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection) for details.


To do this, reboot in recovery mode, by pressing simultaneously `cmd + R`
while booting.
Then, on the recovery mode go to Utilities/Terminal and type:
Expand Down
2 changes: 1 addition & 1 deletion boards/cc2650stk/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ On Linux, there's an application called
[Uniflash](https://www.ti.com/tool/uniflash). Sadly, you'll have to install the
whole IDE just to get the scripting interface :-[

No idea about MacOSX.
No idea about macOS.

In order to flash the CC2650STK you need to plug the XDS110 probe through the
JTAG and so-called "DevPack" connectors. Note that the back of the SensorTag
Expand Down
4 changes: 2 additions & 2 deletions boards/firefly/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ The Firefly has built-in support for USB 2.0 USB, Vendor and Product IDs are the
* VID 0x0451
* PID 0x16C8

On Linux and OS X this is straightforward, on windows you need to install the following driver:
On Linux and macOS this is straightforward, on windows you need to install the following driver:

<https://github.com/alignan/lufa/blob/remote-zongle/LUFA/CodeTemplates/WindowsINF/LUFA%20CDC-ACM.inf>

Expand All @@ -100,7 +100,7 @@ On windows, devices will appear as a virtual `COM` port.

On Linux, devices will appear under `/dev/`.

On OS X, `/dev/tty.SLAB_USBtoUARTx`.
On macOS, `/dev/tty.SLAB_USBtoUARTx`.

On Linux:

Expand Down
2 changes: 1 addition & 1 deletion boards/iotlab-m3/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Bash

## Troubleshooting

For terminal output on OS X (`make term`) you need to install a driver:
For terminal output on macOS (`make term`) you need to install a driver:
http://www.ftdichip.com/Drivers/VCP.htm
http://www.ftdichip.com/Drivers/VCP.htm
*/
2 changes: 1 addition & 1 deletion boards/openmote-b/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ tool. Once you have this in place, you can simply flash by calling

from your application folder.

Mac OS users may experiment a command line expecting `connect`. Just type it
macOS users may experiment a command line expecting `connect`. Just type it
and the process will continue.

### Debugging
Expand Down
2 changes: 1 addition & 1 deletion boards/openmote-cc2538/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ tool. Once you have this in place, you can simply flash by calling

from your application folder.

Mac OS users may experiment a command line expecting `connect`. Just type it
macOS users may experiment a command line expecting `connect`. Just type it
and the process will continue.
*/
6 changes: 3 additions & 3 deletions boards/remote-pa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ The Re-Mote has built-in support for USB 2.0 USB, Vendor and Product IDs are the
* VID 0x0451
* PID 0x16C8

On Linux and OS X this is straightforward, on windows you need to install the following driver:
On Linux and macOS this is straightforward, on windows you need to install the following driver:

<https://github.com/alignan/lufa/blob/remote-zongle/LUFA/CodeTemplates/WindowsINF/LUFA%20CDC-ACM.inf>

Expand All @@ -96,9 +96,9 @@ Once all drivers have been installed correctly:

On windows, devices will appear as a virtual `COM` port.

On Linux and OS X, devices will appear under `/dev/`.
On Linux and macOS, devices will appear under `/dev/`.

On OS X:
On macOS:

* XDS backchannel: `tty.usbserial-<serial number>`
* EM in CDC-ACM: `tty.usbmodemf<X><ABC>` (X a letter, ABC a number e.g. `tty.usbmodemfd121`)
Expand Down
4 changes: 2 additions & 2 deletions boards/remote-reva/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ The RE-Mote has built-in support for USB 2.0 USB, Vendor and Product IDs are the
* VID 0x0451
* PID 0x16C8

On Linux and OS X this is straightforward, on windows you need to install the following driver:
On Linux and macOS this is straightforward, on windows you need to install the following driver:

<https://github.com/alignan/lufa/blob/remote-zongle/LUFA/CodeTemplates/WindowsINF/LUFA%20CDC-ACM.inf>

Expand All @@ -91,7 +91,7 @@ On windows, devices will appear as a virtual `COM` port.

On Linux, devices will appear under `/dev/`.

On OS X, `/dev/tty.SLAB_USBtoUARTx`.
On macOS, `/dev/tty.SLAB_USBtoUARTx`.

On Linux:

Expand Down
4 changes: 2 additions & 2 deletions boards/remote-revb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ The RE-Mote has built-in support for USB 2.0 USB, Vendor and Product IDs are the
* VID 0x0451
* PID 0x16C8

On Linux and OS X this is straightforward, on windows you need to install the following driver:
On Linux and macOS this is straightforward, on windows you need to install the following driver:

<https://github.com/alignan/lufa/blob/remote-zongle/LUFA/CodeTemplates/WindowsINF/LUFA%20CDC-ACM.inf>

Expand All @@ -97,7 +97,7 @@ On windows, devices will appear as a virtual `COM` port.

On Linux, devices will appear under `/dev/`.

On OS X, `/dev/tty.SLAB_USBtoUARTx`.
On macOS, `/dev/tty.SLAB_USBtoUARTx`.

On Linux:

Expand Down
4 changes: 2 additions & 2 deletions boards/samr21-xpro/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@ clock configuration or low power modes. In this case you can use
instructions to build it and run `./edbg -e` to erase the flash. Then press the
reset button and you're able to program via OpenOCD again.

### Flashing might not work in Virtual Box with Mac OS X as host
### Flashing might not work in Virtual Box with macOS as host
It might happen that flashing through OpenOCD works once inside Virtual Box.
But when you try to flash again, you could get a CMSIS-DAP related error. It
seems to only happen with USB 3.0 ports. You can take a look at
[Vagrant](http://en.wikipedia.org/wiki/Vagrant_%28software%29) and use a virtual
Linux to run the virtual RIOT, and flash from OS X.
Linux to run the virtual RIOT, and flash from macOS.
*/
2 changes: 1 addition & 1 deletion boards/stm32f4discovery/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ time, the internal pull-up resistors are not sufficient for stable bus
operation. You probably have to connect external pull-ups to both bus lines. 10K
is a good value to start with.

### OS X & make term
### macOS & make term
If you want the terminal to work using `make term` command and get a message
about missing tty device install the driver from
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers .
Expand Down
4 changes: 2 additions & 2 deletions cpu/native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ To create a bridge and two (or count at your option) tap interfaces:

sudo ../../dist/tools/tapsetup/tapsetup [-c [<count>]]

On OSX you need to start the RIOT instance at some point during the script's
On macOS you need to start the RIOT instance at some point during the script's
execution. The script will instruct you when to do that.

To delete the bridge and all tap interfaces:

sudo ../../dist/tools/tapsetup/tapsetup -d

For OSX you **have** to run this after killing your RIOT instance and rerun
For macOS you **have** to run this after killing your RIOT instance and rerun
`sudo ../../dist/tools/tapsetup [-c [<count>]]` before restarting.

**Please note:** If you want to communicate between RIOT and your host
Expand Down
4 changes: 2 additions & 2 deletions cpu/native/async_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void native_async_read_add_handler(int fd, void *arg, native_async_read_callback

_add_handler(fd, arg, handler);

/* tuntap signalled IO is not working in OSX,
/* tuntap signalled IO is not working in macOS,
* * check http://sourceforge.net/p/tuntaposx/bugs/18/ */
#ifdef __MACH__
_sigio_child(_next_index);
Expand All @@ -98,7 +98,7 @@ void native_async_read_add_handler(int fd, void *arg, native_async_read_callback
if (real_fcntl(fd, F_SETFL, O_NONBLOCK | O_ASYNC) == -1) {
err(EXIT_FAILURE, "native_async_read_add_handler(): fcntl(F_SETFL)");
}
#endif /* not OSX */
#endif /* not macOS */

_next_index++;
}
Expand Down
2 changes: 1 addition & 1 deletion cpu/native/include/clang_compat.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* clang_compat.h Undefines macros of clang on OSX to use RIOT's macros
* clang_compat.h Undefines macros of clang on macOS to use RIOT's macros
*
* Copyright (C) 2014 Thomas Eichinger <[email protected]>
*
Expand Down
2 changes: 1 addition & 1 deletion cpu/native/include/cpu_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extern "C" {
*
* @{
*/
#ifdef __MACH__ /* OSX */
#ifdef __MACH__ /* macOS */
#ifndef THREAD_STACKSIZE_DEFAULT
#define THREAD_STACKSIZE_DEFAULT (163840)
#endif
Expand Down
4 changes: 2 additions & 2 deletions cpu/native/netdev_tap/netdev_tap.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ static int _init(netdev_t *netdev)
}

char *name = dev->tap_name;
#ifdef __MACH__ /* OSX */
#ifdef __MACH__ /* macOS */
char clonedev[255] = "/dev/"; /* XXX bad size */
strncpy(clonedev + 5, name, 250);
#elif defined(__FreeBSD__)
Expand All @@ -356,7 +356,7 @@ static int _init(netdev_t *netdev)
if ((dev->tap_fd = real_open(clonedev, O_RDWR | O_NONBLOCK)) == -1) {
err(EXIT_FAILURE, "open(%s)", clonedev);
}
#if (defined(__MACH__) || defined(__FreeBSD__)) /* OSX/FreeBSD */
#if (defined(__MACH__) || defined(__FreeBSD__)) /* macOS/FreeBSD */
struct ifaddrs *iflist;
if (real_getifaddrs(&iflist) == 0) {
for (struct ifaddrs *cur = iflist; cur; cur = cur->ifa_next) {
Expand Down
2 changes: 1 addition & 1 deletion cpu/native/osx-libc-extra/malloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @ingroup cpu_native
*
* @brief Malloc header for use with native on OSX since there is no
* @brief Malloc header for use with native on macOS since there is no
* malloc.h file in the standard include path.
*
* @{
Expand Down
2 changes: 1 addition & 1 deletion cpu/native/periph/qdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <mach/mach_init.h>
#include <mach/mach_port.h>
#include <mach/mach_host.h>
/* Both OS X and RIOT typedef thread_t. timer.c does not use either thread_t. */
/* Both macOS and RIOT typedef thread_t. timer.c does not use either thread_t. */
#define thread_t riot_thread_t
#endif

Expand Down
2 changes: 1 addition & 1 deletion cpu/native/periph/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <mach/mach_init.h>
#include <mach/mach_port.h>
#include <mach/mach_host.h>
/* Both OS X and RIOT typedef thread_t. timer.c does not use either thread_t. */
/* Both macOS and RIOT typedef thread_t. timer.c does not use either thread_t. */
#define thread_t riot_thread_t
#endif

Expand Down
7 changes: 3 additions & 4 deletions doc/doxygen/src/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ A set of common tools and a toolchain for the hardware you target needs to be in
### Choosing an Operating System for the Development PC

Most of the RIOT OS developers are using Linux on their development PCs, so you can expect the
most streamlined experience here. Other POSIX-compliant OSes such as current versions of Mac OS or
most streamlined experience here. Other POSIX-compliant OSes such as current versions of macOS or
the various BSD flavours will also be fine - however, we rely on users to report bugs regarding
tooling incompatibilities here. So expect occasional issues for the development branch and please
help testing during the feature freeze period, if you develop on Mac OS or BSD.
help testing during the feature freeze period, if you develop on macOS or BSD.

Native development on Windows machines is not officially supported. What works well is using Linux
in a virtual machine, but at much lower performance than running Linux natively. For development
Expand Down Expand Up @@ -144,8 +144,7 @@ For example, in Ubuntu the above tools can be installed with the following comma
headers
* Alternatively: Compile with `BUILD_IN_DOCKER=1`. Note that for running the executable you
still need a multilib system (or 32 bit Linux) with glibc a standard C library.
* A C library supporting the deprecated POSIX.1-2001 ucontext library (e.g. glibc, FreeBSD's libc,
Mac OS's libc)
* A C library supporting the deprecated POSIX.1-2001 ucontext library (e.g. glibc, FreeBSD's libc)
* Optional: GDB for debugging. (Prefer the multiarch version, this will also work for other boards)

The build system {#the-build-system}
Expand Down
2 changes: 1 addition & 1 deletion doc/doxygen/src/mainpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ RIOT is developed by an open community that anyone is welcome to join:
The quickest start {#the-quickest-start}
==================
You can run RIOT on most IoT devices, on open-access testbed hardware (e.g.
IoT-lab), and also directly as a process on your Linux/FreeBSD/OSX machine (we
IoT-lab), and also directly as a process on your Linux/FreeBSD/macOS machine (we
call this the `native` port). Try it right now in your terminal window:

~~~~~~~{.sh}
Expand Down
2 changes: 1 addition & 1 deletion examples/emcute_mqttsn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ sudo ./RIOTDIR/dist/tools/tapsetup/tapsetup
```

2. Assign a site-global prefix to the `tapbr0` interface (the name could be
different on OSX etc):
different on macOS etc):
```
sudo ip a a fec0:affe::1/64 dev tapbr0
```
Expand Down
2 changes: 1 addition & 1 deletion examples/gnrc_border_router/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ to using `esp_now` for the downstream interface.

## Requirements
This functionality works only on Linux machines.
Mac OSX support will be added in the future (lack of native `tap` interface).
macOS support will be added in the future (lack of native `tap` interface).

If you want to use DHCPv6, you also need a DHCPv6 server configured for prefix
delegation from the interface facing the border router. With the [KEA] DHCPv6
Expand Down
2 changes: 1 addition & 1 deletion tests/unittests/tests-fib/tests-fib.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ static void test_fib_16_prefix_match(void)
*/
static void test_fib_17_get_entry_set(void)
{
/* FIXME: init as enum to fix folding-constant compiler error on OS X */
/* FIXME: init as enum to fix folding-constant compiler error on macOS */
enum { addr_buf_size = 16 };
char addr_dst[addr_buf_size];
char addr_nxt[addr_buf_size];
Expand Down

0 comments on commit fcbba02

Please sign in to comment.