nuttx/libs/libc/unistd
qinwei1 8021dfece6 sched/task/task_getpid: getpid should return process id not thread id
Summary:
   implement the right semantics:
1. getpid should return the main thread id
2. gettid should return the current thread id

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

Signed-off-by: qinwei1 <qinwei1@xiaomi.com>
2022-11-17 17:58:08 +08:00
..
Kconfig sched/spawn: Rename task_spawnattr_[get|set]stack[size|addr] to posix_spawnattr_[get|set]stack[size|addr] 2022-11-01 09:51:18 +09:00
lib_access.c
lib_alarm.c
lib_chdir.c libc: Don't duplicate string in chdir and lib_restoredir 2022-04-18 10:36:36 +03:00
lib_daemon.c Fix typos in comments and identifiers 2021-07-19 22:55:30 -03:00
lib_execl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_execle.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_execv.c sched/task: Implement execle and execve 2022-04-22 10:40:31 +03:00
lib_fchdir.c fs/dir: support fchdir and dirfd 2022-08-09 23:30:01 +08:00
lib_fstatvfs.c
lib_futimes.c libc: Implement futimes on top of futimens 2021-07-09 15:51:28 -03:00
lib_getcwd.c Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-05 19:45:24 +02:00
lib_getegid.c
lib_getentropy.c libc: implement getentropy function 2022-03-25 13:48:33 +02:00
lib_geteuid.c
lib_getgid.c
lib_gethostname.c Replace all strncpy with strlcpy for safety 2022-08-25 13:38:36 +08:00
lib_getopt_common.c libc/unistd: getopt: Use argc to end parsing 2021-12-15 12:02:59 -06:00
lib_getopt_long.c
lib_getopt_longonly.c
lib_getopt.c
lib_getoptargp.c
lib_getopterrp.c
lib_getoptindp.c
lib_getoptoptp.c
lib_getoptvars.c sched/tls: Wrap up_info_size into tls_info_size 2022-06-08 19:07:33 +09:00
lib_getpriority.c sched/task/task_getpid: getpid should return process id not thread id 2022-11-17 17:58:08 +08:00
lib_getrlimit.c Fix compiler warnings (-Wunused-parameter) in various functions 2022-07-12 11:42:34 +08:00
lib_getrusage.c Fix compiler warnings (-Wunused-parameter) in various functions 2022-07-12 11:42:34 +08:00
lib_getuid.c
lib_lutimes.c fs: Add utimens and lutimens 2021-08-09 17:55:44 -03:00
lib_nice.c libc/sched: Implement nice API 2021-06-24 08:50:48 -03:00
lib_pathconf.c Fix compiler warnings (-Wunused-parameter) in various functions 2022-07-12 11:42:34 +08:00
lib_posix_fallocate.c
lib_restoredir.c libc: Don't duplicate string in chdir and lib_restoredir 2022-04-18 10:36:36 +03:00
lib_setegid.c
lib_seteuid.c
lib_setgid.c
lib_sethostname.c Ensure that sethostname null terminates the hostname correctly 2021-12-30 01:13:22 +08:00
lib_setpriority.c sched/task/task_getpid: getpid should return process id not thread id 2022-11-17 17:58:08 +08:00
lib_setregid.c
lib_setreuid.c
lib_setrlimit.c Fix compiler warnings (-Wunused-parameter) in various functions 2022-07-12 11:42:34 +08:00
lib_setuid.c
lib_sleep.c
lib_statvfs.c
lib_swab.c
lib_sysconf.c libc: Implement exit, atexit, on_exit and cxa_exit on the user side 2022-05-25 15:28:43 +08:00
lib_times.c libc: Implement times function 2021-07-21 13:11:54 -03:00
lib_truncate.c
lib_usleep.c
lib_utime.c libc: Implement utime on top of utimes 2021-07-09 15:51:28 -03:00
lib_utimes.c fs: Add utimens and lutimens 2021-08-09 17:55:44 -03:00
Make.defs fs: Remove the unused nx_pipe to prefer file_pipe for kernel 2022-10-27 23:14:25 +02:00
unistd.h include: fix double include pre-processor guards 2022-01-16 11:11:14 -03:00