[PKT_SCHED]: Cleanup qdisc creation and alignment macros
[hh.org.git] / include / asm-cris / posix_types.h
blob6d26fee4a6145c4fc1e966dd087318b9d093976b
1 /* $Id: posix_types.h,v 1.1 2000/07/10 16:32:31 bjornw Exp $ */
3 /* We cheat a bit and use our C-coded bitops functions from asm/bitops.h */
4 /* I guess we should write these in assembler because they are used often. */
6 #ifndef __ARCH_CRIS_POSIX_TYPES_H
7 #define __ARCH_CRIS_POSIX_TYPES_H
9 #include <asm/bitops.h>
12 * This file is generally used by user-level software, so you need to
13 * be a little careful about namespace pollution etc. Also, we cannot
14 * assume GCC is being used.
17 typedef unsigned long __kernel_ino_t;
18 typedef unsigned short __kernel_mode_t;
19 typedef unsigned short __kernel_nlink_t;
20 typedef long __kernel_off_t;
21 typedef int __kernel_pid_t;
22 typedef unsigned short __kernel_ipc_pid_t;
23 typedef unsigned short __kernel_uid_t;
24 typedef unsigned short __kernel_gid_t;
25 typedef __SIZE_TYPE__ __kernel_size_t;
26 typedef long __kernel_ssize_t;
27 typedef int __kernel_ptrdiff_t;
28 typedef long __kernel_time_t;
29 typedef long __kernel_suseconds_t;
30 typedef long __kernel_clock_t;
31 typedef int __kernel_timer_t;
32 typedef int __kernel_clockid_t;
33 typedef int __kernel_daddr_t;
34 typedef char * __kernel_caddr_t;
35 typedef unsigned short __kernel_uid16_t;
36 typedef unsigned short __kernel_gid16_t;
37 typedef unsigned int __kernel_uid32_t;
38 typedef unsigned int __kernel_gid32_t;
40 typedef unsigned short __kernel_old_uid_t;
41 typedef unsigned short __kernel_old_gid_t;
42 typedef unsigned short __kernel_old_dev_t;
44 #ifdef __GNUC__
45 typedef long long __kernel_loff_t;
46 #endif
48 typedef struct {
49 #if defined(__KERNEL__) || defined(__USE_ALL)
50 int val[2];
51 #else /* !defined(__KERNEL__) && !defined(__USE_ALL) */
52 int __val[2];
53 #endif /* !defined(__KERNEL__) && !defined(__USE_ALL) */
54 } __kernel_fsid_t;
56 /* should this ifdef be here ? */
58 #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
60 #undef __FD_SET
61 #define __FD_SET(fd,fdsetp) set_bit(fd, (void *)(fdsetp))
63 #undef __FD_CLR
64 #define __FD_CLR(fd,fdsetp) clear_bit(fd, (void *)(fdsetp))
66 #undef __FD_ISSET
67 #define __FD_ISSET(fd,fdsetp) test_bit(fd, (void *)(fdsetp))
69 #undef __FD_ZERO
70 #define __FD_ZERO(fdsetp) memset((void *)(fdsetp), 0, __FDSET_LONGS << 2)
72 #endif /* defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) */
74 #endif /* __ARCH_CRIS_POSIX_TYPES_H */