Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Sep 21, 2023
1 parent 4c9d70f commit 54dd89f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/source/mbed_retarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1531,14 +1531,16 @@ extern "C" WEAK caddr_t _sbrk(int incr)

#if defined(TOOLCHAIN_GCC_ARM)

// Implementation of getpid for Newlib, following signature here:
// Implementation of getpid for Newlib, following signature here:
// https://github.com/bminor/newlib/blob/55485616ba2afedca05da40f5cde59ee336b9f28/newlib/libc/sys/arm/syscalls.c#L32
extern "C" pid_t _getpid()
{
// Since PIDs aren't a thing on embedded, just return 0
return 0;
}

// Implementation of kill for Newlib, following signature here:
// https://github.com/bminor/newlib/blob/55485616ba2afedca05da40f5cde59ee336b9f28/newlib/libc/sys/arm/syscalls.c#L33
extern "C" int _kill(int pid, int signal)
{
// Always return error
Expand Down

0 comments on commit 54dd89f

Please sign in to comment.