diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-08-18 21:08:34 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-08-18 21:08:34 +0000 |
commit | 175f6f670de99b6aa0e866df24a792444586ff0d (patch) | |
tree | f719a202f9ec3b6b22fe4ace2df5531881e135a6 /libc/sysdeps/linux/sparc/bits | |
parent | 160212fe2d074af5bdc25b219e2276576f52b6e3 (diff) |
Directly use kernel types for uid_t, gid_t, and dev_t to avoid the
need to translate these entities...
-Erik
Diffstat (limited to 'libc/sysdeps/linux/sparc/bits')
-rw-r--r-- | libc/sysdeps/linux/sparc/bits/types.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/sparc/bits/types.h b/libc/sysdeps/linux/sparc/bits/types.h index 0d357a930..1530931b6 100644 --- a/libc/sysdeps/linux/sparc/bits/types.h +++ b/libc/sysdeps/linux/sparc/bits/types.h @@ -29,6 +29,15 @@ #include <stddef.h> #include <bits/wordsize.h> +/* Sigh. We need to carefully wrap this one... */ +#ifndef __GLIBC__ +#define __GLIBC__ 2 +#include <asm/posix_types.h> +#undef __GLIBC__ +#else +#include <asm/posix_types.h> +#endif + /* Convenience types. */ typedef unsigned char __u_char; typedef unsigned short int __u_short; @@ -69,9 +78,9 @@ __extension__ typedef unsigned long long int __uint64_t; #endif typedef __quad_t *__qaddr_t; -typedef __u_quad_t __dev_t; /* Type of device numbers. */ -typedef __u_int __uid_t; /* Type of user identifications. */ -typedef __u_int __gid_t; /* Type of group identifications. */ +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 __u_long __ino_t; /* Type of file serial numbers. */ typedef __u_quad_t __ino64_t; /* Type of file serial numbers. */ typedef __u_int __mode_t; /* Type of file attribute bitmasks. */ |