|
Lines 55-63
rpl_openat (int fd, char const *filename
|
Link Here
|
|---|
|
va_list arg; | va_list arg; |
va_start (arg, flags); | va_start (arg, flags); |
| |
/* Assume that mode_t is passed compatibly with mode_t's type |
/* If mode_t is narrower than int, use the promoted type (int), |
after argument promotion. */ |
not mode_t. Use sizeof to guess whether mode_t is nerrower; |
mode = va_arg (arg, mode_t); |
we don't know of any practical counterexamples. */ |
|
if (sizeof (mode_t) < sizeof (int)) |
|
mode = va_arg (arg, int); |
|
else |
|
mode = va_arg (arg, mode_t); |
| |
va_end (arg); | va_end (arg); |
} | } |