[libc] Add GNU extension functions pthread_setname_np and pthread_getname_np.
authorSiva Chandra Reddy <sivachandra@google.com>
Fri, 29 Jul 2022 19:50:35 +0000 (19:50 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Tue, 2 Aug 2022 01:57:03 +0000 (01:57 +0000)
commit658c84e4158fc185ff68e8399d0a149bde98a489
tree0cb422383501d309b4bbedbd491653c27c15e7f9
parent1c52b4f798de54e2945867f2d8040ada773fa7eb
[libc] Add GNU extension functions pthread_setname_np and pthread_getname_np.

Reviewed By: michaelrj, lntue

Differential Revision: https://reviews.llvm.org/D130872
16 files changed:
libc/config/linux/x86_64/entrypoints.txt
libc/spec/gnu_ext.td
libc/spec/posix.td
libc/spec/spec.td
libc/src/__support/CPP/stringstream.h
libc/src/__support/threads/CMakeLists.txt
libc/src/__support/threads/linux/CMakeLists.txt
libc/src/__support/threads/linux/thread.cpp
libc/src/__support/threads/thread.h
libc/src/pthread/CMakeLists.txt
libc/src/pthread/pthread_getname_np.cpp [new file with mode: 0644]
libc/src/pthread/pthread_getname_np.h [new file with mode: 0644]
libc/src/pthread/pthread_setname_np.cpp [new file with mode: 0644]
libc/src/pthread/pthread_setname_np.h [new file with mode: 0644]
libc/test/integration/src/pthread/CMakeLists.txt
libc/test/integration/src/pthread/pthread_name_test.cpp [new file with mode: 0644]