nuttx-apps/system
qinwei1 c86509be4c apps: getpid should return process id not thread id
Summary:
   following the change in the nuttx kernel, implement the right semantics:
1. getpid should return the main thread id
2. gettid should return the current thread id

Refer:
 https://github.com/apache/incubator-nuttx/issues/2499
 https://github.com/apache/incubator-nuttx/pull/2518

Nuttx Kernel PR:
 https://github.com/apache/incubator-nuttx/pull/7597

update apps code

Testing PASSED with qemu( 32/64 )

Signed-off-by: qinwei1 <qinwei1@xiaomi.com>
2022-11-17 17:58:45 +08:00
..
adb Don't download tarballs if a local git repo found 2022-08-28 17:20:47 +08:00
argtable3 tools: replace DEFINE to DEFINE_PREFIX 2022-11-11 01:18:32 +08:00
cachespeed system/cachespeed:Average time to add 2022-10-15 03:15:30 +08:00
cdcacm Rename CONFIG_LIB_BOARDCTL to CONFIG_BOARDCTL 2021-08-06 11:04:35 +02:00
cfgdata Fix the minor style issue 2022-10-16 19:07:16 +02:00
cle Make.defs: Change "ifeq ($(XXX),y)" to "ifneq ($(XXX),) 2022-10-16 14:59:08 +02:00
composite Rename CONFIG_LIB_BOARDCTL to CONFIG_BOARDCTL 2021-08-06 11:04:35 +02:00
critmon Remove the unnecessary cast for main_t, NULL and argv 2022-10-18 18:40:23 +02:00
cu cu: fix cu hang when meet ctrl + C 2022-07-29 19:21:52 +03:00
dhcpc system: nxstyle fixes 2021-06-11 02:42:05 -05:00
dumpstack system/dumpstack: add dump stack tool support 2021-08-01 23:56:36 -07:00
embedlog Makefile: replace INCDIR to INCDIR_PREFIX 2022-11-10 02:38:58 +08:00
flash_eraseall system: nxstyle fixes 2021-06-11 02:42:05 -05:00
gcov system/gcov: add show usage 2022-09-27 19:39:31 +08:00
hex2bin Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-05 16:42:32 +02:00
hexed Makefile: replace INCDIR to INCDIR_PREFIX 2022-11-10 02:38:58 +08:00
hostname system/hostname: Add an option to read the hostname from a file 2022-07-18 12:29:51 +08:00
i2c Fix the minor style issue 2022-10-16 19:07:16 +02:00
input system/input: update input device name 2022-08-16 14:59:34 +08:00
libuv Makefile: replace INCDIR to INCDIR_PREFIX 2022-11-10 02:38:58 +08:00
lm75 system: update licenses to Apache 2021-06-11 02:42:05 -05:00
lzf system/lzf: correct the open mode 2021-12-20 09:12:52 -06:00
mdio system: nxstyle fixes 2021-06-11 02:42:05 -05:00
netdb system: nxstyle fixes 2021-06-11 02:42:05 -05:00
nsh system/telnet: Fix the style warning 2022-11-07 15:24:08 +09:00
ntpc system: fix relative path CI error 2021-06-16 09:03:06 -05:00
nxlooper Fix the minor style issue 2022-10-16 19:07:16 +02:00
nxplayer Fix the minor style issue 2022-10-16 19:07:16 +02:00
nxrecorder Fix the minor style issue 2022-10-16 19:07:16 +02:00
ping system/ping: Guard against division by zero when calculating the RTT. 2022-04-23 20:17:45 +03:00
ping6 system/ping: Guard against division by zero when calculating the RTT. 2022-04-23 20:17:45 +03:00
popen Rename task_spawnattr_setstacksize to posix_spawnattr_setstacksize 2022-11-01 09:51:08 +09:00
psmq Makefile: replace INCDIR to INCDIR_PREFIX 2022-11-10 02:38:58 +08:00
ramspeed system/ramspeed:Add automated testing process 2022-11-12 18:57:06 -03:00
ramtest system: update licenses to Apache 2021-06-11 02:42:05 -05:00
readline Make.defs: Change "ifeq ($(XXX),y)" to "ifneq ($(XXX),) 2022-10-16 14:59:08 +02:00
sched_note system/sched_note: fix build break 2022-05-12 14:55:34 +08:00
setlogmask apps: system: setlogmask: update licenses to Apache 2022-03-08 17:04:01 +02:00
spi Revert "Revert "system/spi: improve alignment in array initialization"" 2022-10-24 01:13:27 +08:00
stackmonitor Remove the unnecessary cast for main_t, NULL and argv 2022-10-18 18:40:23 +02:00
system Rename task_spawnattr_setstacksize to posix_spawnattr_setstacksize 2022-11-01 09:51:08 +09:00
taskset apps: getpid should return process id not thread id 2022-11-17 17:58:45 +08:00
tee Makefile: Uros Platise: update licenses to Apache 2021-06-07 21:35:33 -05:00
telnet netutils: Support telnetd in the kernel mode 2022-11-07 15:24:08 +09:00
telnetd netutils: Support telnetd in the kernel mode 2022-11-07 15:24:08 +09:00
termcurses Fix the minor style issue 2022-10-16 19:07:16 +02:00
trace system/trace: expand dump string 2022-09-27 19:39:22 +08:00
ubloxmodem style: unify path to files in comment section 2022-03-09 10:37:33 +08:00
uniqueid apps: unify FAR attribute usage across apps 2022-04-05 00:55:22 +08:00
uorb Makefile: replace INCDIR to INCDIR_PREFIX 2022-11-10 02:38:58 +08:00
usbmsc Fix boarctl typos 2022-01-16 08:07:47 +01:00
vi Fix the coding style issue 2022-10-06 12:20:32 +02:00
zmodem Remove the unnecessary cast for main_t, NULL and argv 2022-10-18 18:40:23 +02:00
.gitignore Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00
Make.defs Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
Makefile Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00