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 2020/11/20 15:58:49 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #2326: libc: Enhance getopt function

xiaoxiang781216 commented on pull request #2326:
URL: https://github.com/apache/incubator-nuttx/pull/2326#issuecomment-731252590


   > My recommendation is that you do not go in this direction. It is not standard and totally inappropriate for used in a standards-based OS.
   > 
   > My recommendation is that you consider using TLS to hold getopt() variables. That is transparent to the user, retains that standard getopt() function, and does not not introduce new, non-portable OS interfaces. That is against the spirit of Nutt.
   
   Ok, I remove getopt_r from patch, since it's a seldom used feature, the compatiblity isn't a big problem without it. But, many application use getopt_long and TLS can't help here.
   


----------------------------------------------------------------
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.

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