{"push_id":1263044698,"size":1,"distinct_size":1,"ref":"refs/heads/upstream","head":"fdb7df230ded019be0472565d79de14fe677dea7","before":"fb8e88815e89cc4bee5e514ca9a21c9771a31f1c","commits":[{"sha":"fdb7df230ded019be0472565d79de14fe677dea7","author":{"name":"Jon Turney","email":"771bb89a945bdacde1c70f8ac219551c0cfb506a@dronecode.org.uk"},"message":"Add pthread_getname_np and pthread_setname_np\n\nThis patch adds pthread_getname_np and pthread_setname_np.\n\nThese were added to glibc in 2.12[1] and are also present in some form on\nNetBSD and several UNIXes.\n\nThe code is based on NetBSD's implementation with changes to better match\nLinux behaviour.\n\nImplementation quirks:\n\n* pthread_setname_np with a NULL pointer segfaults (as linux)\n\n* pthread_setname_np returns ERANGE for names longer than 16 characters (as\nlinux)\n\n* pthread_getname_np with a NULL pointer returns EFAULT (as linux)\n\n* pthread_getname_np with a buffer length of less than 16 returns ERANGE (as\nlinux)\n\n* pthread_getname_np truncates the thread name to fit the buffer length.\nThis guarantees success even when the default thread name is longer than 16\ncharacters, but means there is no way to discover the actual length of the\nthread name. (Linux always truncates the thread name to 16 characters)\n\n* Changing program_invocation_short_name changes the default thread name (on\nlinux, it has no effect on the default thread name)\n\nI'll leave it up to you to decide if any of these matter.\n\nThis is implemented via class pthread_attr to make it easier to add\npthread_attr_[gs]etname_np (present in NetBSD and some UNIXes) should it\never be added to Linux (or we decide we want it anyway).\n\n[1] https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS","distinct":true,"url":"https://api.github.com/repos/openrisc/newlib/commits/fdb7df230ded019be0472565d79de14fe677dea7"}]}
{"actor":{"display_login":"wallento"}}