zephyr/lib/posix
Martin Åberg 6d126e7481 lib/posix: SPARC newlib has unsigned short mode_t
This commit eliminates a compilation error by passing int to va_arg
rather than mode_t on SPARC.

Newlib sys/_types.h defines mode_t for SPARC as:
  typedef unsigned short __mode_t;

GCC 10.2.0 gave the following error message and suggested solution:

mqueue.c: In function 'mq_open':
mqueue.c:61:21: error: 'mode_t' {aka 'short unsigned int'} is promoted
 to 'int' when passed through '...' [-Werror]
   61 |   mode = va_arg(va, mode_t);
      |                     ^
mqueue.c:61:21: note: (so you should pass 'int' not 'mode_t' {aka 'short
unsigned int'} to 'va_arg')

Signed-off-by: Martin Åberg <martin.aberg@gaisler.com>
2020-11-13 14:53:55 -08:00
..
CMakeLists.txt
Kconfig
clock.c
eventfd.c lib: posix: eventfd: Fix use of 'struct k_spinlock_key' 2020-10-07 08:11:25 -04:00
fs.c posix: fix missing _open for fopen support 2020-10-05 09:59:38 -07:00
mqueue.c lib/posix: SPARC newlib has unsigned short mode_t 2020-11-13 14:53:55 -08:00
nanosleep.c lib: posix: nanosleep: round up to the nearest microsecond 2020-10-02 11:31:43 +02:00
pthread.c
pthread_barrier.c
pthread_common.c
pthread_cond.c
pthread_key.c
pthread_mutex.c
pthread_rwlock.c
pthread_sched.c
semaphore.c lib: posix: unchecked return value while taking semaphore 2020-10-21 06:26:11 -05:00
sleep.c
timer.c