Neil Schellenberger(deleted)
|
Re: missing const qualifiers in scandir() declaration in <dirent.h>
|
Neil Schellenberger(deleted)
05/16/2010 3:43 PM
post54799
|
Re: missing const qualifiers in scandir() declaration in <dirent.h>
On Sun, 2010-05-16 at 05:12 -0400, Piotr Trojanek wrote:
> I have found, that header <dirent.h> contains scandir() declaration without const qualifier for the first argument.
scandir() was only introduced with version 7 (i.e. 2008) and we are
currently certified against earlier versions (most recently, I think,
PSE52 2003). Prior to this, it is supported as a miscellaneous Unix
extension.
I've raised PR76860 for this issue. I can't say with any certainty how
or when this will be addressed as it may get tangled up in the broader
issue of 2008 compliance. Apologies for the inconvenience.
> In fact, the QNX libc source code (lib/c/unix/scandir.c) declares const for all the parameters.
Keep in mind that "char * const" does not mean the same thing as "const
char *" :-)
Regards,
Neil
|
|
|