The following issue has been SUBMITTED. ====================================================================== http://austingroupbugs.net/view.php?id=1292 ====================================================================== Reported By: joelsherrill Assigned To: ====================================================================== Project: 1003.1(2016)/Issue7+TC2 Issue ID: 1292 Category: Base Definitions and Headers Type: Enhancement Request Severity: Comment Priority: normal Status: New Name: Joel Sherrill Organization: RTEMS.org User Reference: Section: pthread.h Page Number: NA - addition request Line Number: NA - addition request Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2019-09-27 19:37 UTC Last Modified: 2019-09-27 19:37 UTC ====================================================================== Summary: Add pthread_setname, pthread_getname Description: At least FreeBSD, Linux, RTEMS, QNX, and MKS currently provide pthread_setname_np() and pthread_getname_np() with this signature.
#include <pthread.h> int pthread_setname_np(pthread_t thread, const char *name); int pthread_getname_np(pthread_t thread, char *name, size_t len); NOTE: QNX has int instead of size_t for the len parameter of pthread_getname_np(). AFAIK no implementation adds thread name as a pthread attribute Desired Action: This is a request to have these methods added to the base set of pthread methods. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2019-09-27 19:37 joelsherrill New Issue 2019-09-27 19:37 joelsherrill Name => Joel Sherrill 2019-09-27 19:37 joelsherrill Organization => RTEMS.org 2019-09-27 19:37 joelsherrill Section => pthread.h 2019-09-27 19:37 joelsherrill Page Number => NA - addition request 2019-09-27 19:37 joelsherrill Line Number => NA - addition request ======================================================================