Browse Source

mode_t was being promoted to an int by gcc's __builtin_va_arg, causing bad
things to happen. This makes it explicit, so pthread using apps are no longer
broken...
-Erik

Eric Andersen 22 years ago
parent
commit
2f2d9d69ac
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libpthread/linuxthreads/wrapsyscall.c

+ 2 - 2
libpthread/linuxthreads/wrapsyscall.c

@@ -109,13 +109,13 @@ CANCELABLE_SYSCALL (int, nanosleep, (const struct timespec *requested_time,
 
 /* open(2).  */
 CANCELABLE_SYSCALL_VA (int, open, (const char *pathname, int flags, ...),
-		       (pathname, flags, va_arg (ap, mode_t)), flags)
+		       (pathname, flags, va_arg (ap, int)), flags)
 
 
 #ifdef __UCLIBC_HAVE_LFS__
 /* open64(3).  */
 CANCELABLE_SYSCALL_VA (int, open64, (const char *pathname, int flags, ...),
-		       (pathname, flags, va_arg (ap, mode_t)), flags)
+		       (pathname, flags, va_arg (ap, int)), flags)
 #endif
 
 /* pause(2).  */