Merge "Fix gettid() in functions that call fork() or equivalent." into main am: 7147a477c1 am: 3c7274d386

Original change: https://android-review.googlesource.com/c/platform/bionic/+/3106497

Change-Id: I73006f8efaffe8e222dbc21ffd66ce6f1acb4972
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Elliott Hughes 2024-05-29 22:16:41 +00:00 committed by Automerger Merge Worker
commit 7d0e6d7f67

View file

@ -113,8 +113,22 @@ pid_t _Fork(void) __INTRODUCED_IN(35);
*/
pid_t vfork(void) __returns_twice;
/**
* [getpid(2)](http://man7.org/linux/man-pages/man2/getpid.2.html) returns
* the caller's process ID.
*
* Returns the caller's process ID.
*/
pid_t getpid(void);
pid_t gettid(void) __attribute_const__;
/**
* [gettid(2)](http://man7.org/linux/man-pages/man2/gettid.2.html) returns
* the caller's thread ID.
*
* Returns the caller's thread ID.
*/
pid_t gettid(void);
pid_t getpgid(pid_t __pid);
int setpgid(pid_t __pid, pid_t __pgid);
pid_t getppid(void);