You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/02/06 19:00:20 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #5417: pthread: Add len argument to pthread_getname_np

xiaoxiang781216 commented on a change in pull request #5417:
URL: https://github.com/apache/incubator-nuttx/pull/5417#discussion_r800220026



##########
File path: include/pthread.h
##########
@@ -197,7 +197,7 @@
 #define pthread_setname_np(thread, name) \
   prctl((int)PR_SET_NAME_EXT, (char*)name, (int)thread)
 
-#define pthread_getname_np(thread, name) \
+#define pthread_getname_np(thread, name, len) \

Review comment:
       It's hard to do that without introduce a new structure since the prototype of prctl is fixed to three argument. The assumption is that the buffer passed by caller should be at least CONFIG_TASK_NAME_SIZE + 1.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org