This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?)


On 09/02/2014 15:45, Warren Young wrote:
Results:

/bin/cppcheck.exe

This intrigued me. cppcheck is a static analyser, so what's it doing with getpwent()? I had a nosy in the source code, and it appears that cppcheck has a rule checking for POSIX calls that are not re-entrant. If a call to getpwent() is found in your source code, cppcheck will recommend that you replace this with getpwent_r().

As far as I can tell, cppcheck doesn't actually call getpwent() at all; this is a false positive turned up by strings(1).

Dave.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]