[PATCH] Use mode_t in open and friends

Paul Eggert eggert@cs.ucla.edu
Thu Apr 24 14:07:00 GMT 2014


gnulib attacks this problem by defining a macro PROMOTED_MODE_T that 
expands to 'int' on platforms where mode_t is narrower than int, and to 
'mode_t' otherwise.  This supports 'mode = va_arg (ap, 
PROMOTED_MODE_T);'.  glibc could do something similar.



More information about the Libc-alpha mailing list