From d3154acac086c48b2731621ce86e677cfe3bfd1e Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 21 Aug 2002 00:54:52 +0000 Subject: Revert mode_t change. Sigh. As Manuel so eloquently put it: "this is the way we hose our code... hose our code... hose our code... this is the way we hose our code... all thanks to glibc" -Erik --- libc/sysdeps/linux/common/bits/types.h | 2 +- libc/sysdeps/linux/common/syscalls.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'libc/sysdeps/linux/common') diff --git a/libc/sysdeps/linux/common/bits/types.h b/libc/sysdeps/linux/common/bits/types.h index 6aef44901..99c882cfc 100644 --- a/libc/sysdeps/linux/common/bits/types.h +++ b/libc/sysdeps/linux/common/bits/types.h @@ -72,7 +72,7 @@ typedef __kernel_dev_t __dev_t; /* Type of device numbers. */ typedef __kernel_uid_t __uid_t; /* Type of user identifications. */ typedef __kernel_gid_t __gid_t; /* Type of group identifications. */ typedef __kernel_ino_t __ino_t; /* Type of file serial numbers. */ -typedef __kernel_mode_t __mode_t; /* Type of file attribute bitmasks. */ +typedef __u_int __mode_t; /* Type of file attribute bitmasks. */ typedef __kernel_nlink_t __nlink_t; /* Type of file link counts. */ typedef __kernel_off_t __off_t; /* Type of file sizes and offsets. */ typedef __kernel_loff_t __loff_t; /* Type of file sizes and offsets. */ diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c index 99684d069..1b31f7603 100644 --- a/libc/sysdeps/linux/common/syscalls.c +++ b/libc/sysdeps/linux/common/syscalls.c @@ -158,8 +158,7 @@ time_t time (time_t *t) //#define __NR_mknod 14 #ifdef L_mknod #include -_syscall3(int, mknod, const char *, path, - unsigned short int, mode, unsigned short int, dev); +_syscall3(int, mknod, const char *, path, mode_t, mode, dev_t, dev); #endif //#define __NR_chmod 15 -- cgit v1.2.3