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 cmake: fix include directories to work with out-of-tree arch 2020-08-05 08:06:07 -04:00
Kconfig lib: posix: Update to new timeout API 2020-05-08 17:31:45 +02:00
clock.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
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 lib: posix: Fix priority validity check in pthread_setschedparam 2020-08-11 07:46:06 -04:00
pthread_barrier.c all: Update reserved function names 2019-03-11 13:48:42 -04:00
pthread_common.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
pthread_cond.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
pthread_key.c
pthread_mutex.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
pthread_rwlock.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
pthread_sched.c
semaphore.c lib: posix: unchecked return value while taking semaphore 2020-10-21 06:26:11 -05:00
sleep.c timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
timer.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00