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 arguments. 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to