Apache NuttX is a mature, real-time embedded operating system (RTOS)
Go to file
Ville Juven c1ceec3404 sched/Kconfig: waitpid() depends on SCHED_HAVE_PARENT if BUILD_KERNEL
waitpid() cannot be used in kernel mode unless SCHED_HAVE_PARENT is
selected -> add dependency if BUILD_KERNEL is selected.

Why? Because without SCHED_HAVE_PARENT waitpid() works in a non-standard
way, meaning it does not use SIGCHLD to wake the parent, as it should.

Also, returning the child status via stat_loc corrupts memory as stat_loc
points to the parent's address environment:

pid_t nxsched_waitpid(pid_t pid, int *stat_loc, int options)
{
  ...
  group->tg_statloc = stat_loc;
  ...
}

And later when the status is returned, the child writes to tg_statloc,
which points to the parent's address environment -> random memory
corruption:

static inline void nxtask_exitwakeup(FAR struct tcb_s *tcb, int status)
{
  ...
  if (group->tg_statloc != NULL)
    {
      *group->tg_statloc = status << 8;
    }
  ...
}
2024-06-03 18:00:40 +02:00
.github build(deps): bump github/super-linter from 5 to 6 2024-04-29 17:34:32 +08:00
Documentation boards/raspberrypi-pico: Add support to BMP280 2024-05-29 23:20:15 +08:00
arch sim/net: Support to set the MTU of the sim netdevice. 2024-06-02 09:31:37 -03:00
audio Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
binfmt all: Fix accessing uninitialized local variables 2024-04-04 11:51:54 +08:00
boards boards: cxd56xx: Fix read position in cxd5610 gnss driver 2024-06-03 12:41:57 +02:00
cmake fix nxstyle 2024-05-13 22:24:36 +02:00
crypto Replace all asserts in kernel code with ASSERT 2024-05-17 10:18:16 -03:00
drivers drivers/devicetree/fdt: add additional fdt parsing utilities. 2024-06-03 22:05:00 +08:00
dummy
fs procfs/meminfo: fit line width in 80 chars 2024-04-24 16:33:32 +08:00
graphics video/vnc: add vnc_fb_register 2024-04-12 17:42:49 +08:00
include drivers/devicetree/fdt: add additional fdt parsing utilities. 2024-06-03 22:05:00 +08:00
libs libdsp: fix gcc14 error and clean up includes 2024-06-02 09:27:36 -03:00
mm mm/gran: Fix GRAN_ALIGNED() macro 2024-06-03 22:06:38 +08:00
net net:Support jumbo frame prealloc the iob for the ICMP/UDP/TCP. 2024-06-02 09:31:37 -03:00
openamp openamp/libmetal.cmake: sync with libmetal.defs 2024-03-28 16:07:49 +08:00
pass1
sched sched/Kconfig: waitpid() depends on SCHED_HAVE_PARENT if BUILD_KERNEL 2024-06-03 18:00:40 +02:00
syscall syscall.csv: Correct macro guard of setsockopt 2024-05-29 20:37:12 +08:00
tools tools/ci/testlist: msys2.dat add qemu-v8a:nsh_smp 2024-05-28 16:29:06 -03:00
video
wireless Remove the back slash from long literal string 2024-02-19 16:43:15 +01:00
.asf.yaml
.gitignore fs/vfat: Fix typo in the macro DIRSEC_BYTENDX 2024-02-03 12:46:08 -03:00
.yamllint
AUTHORS
CMakeLists.txt cmake:bugfix CMake compilation options settings should not use strings 2024-05-30 10:02:10 -03:00
CONTRIBUTING.md
INVIOLABLES.md
Kconfig Kconfig: move LTO options to Build Setup menu 2024-06-02 09:26:35 -03:00
LICENSE RP2040: Implement board_uniqueid() 2024-03-17 10:00:25 -03:00
Makefile
NOTICE
README.md Gathering community recommendations 2023-10-28 13:55:56 +08:00
ReleaseNotes

README.md

POSIX Badge License Issues Tracking Badge Contributors GitHub Build Badge Documentation Badge

Apache NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOSs (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).

For brevity, many parts of the documentation will refer to Apache NuttX as simply NuttX.

Getting Started

First time on NuttX? Read the Getting Started guide! If you don't have a board available, NuttX has its own simulator that you can run on terminal.

Documentation

You can find the current NuttX documentation on the Documentation Page.

Alternatively, you can build the documentation yourself by following the Documentation Build Instructions.

The old NuttX documentation is still available in the Apache wiki.

Supported Boards

NuttX supports a wide variety of platforms. See the full list on the Supported Platforms page.

Contributing

If you wish to contribute to the NuttX project, read the Contributing guidelines for information on Git usage, coding standard, workflow and the NuttX principles.

License

The code in this repository is under either the Apache 2 license, or a license compatible with the Apache 2 license. See the License Page for more information.