~ubuntu-branches/ubuntu/oneiric/iptables/oneiric

« back to all changes in this revision

Viewing changes to include/linux/types.h

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge, Lorenzo De Liso, Jamie Strandboge
  • Date: 2010-11-12 15:58:40 UTC
  • mfrom: (5.1.8 upstream) (2.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20101112155840-jm07l9o9722h0bvm
Tags: 1.4.10-1ubuntu1
[ Lorenzo De Liso ]
* Merge from debian unstable (LP: #671652), remaining changes:
  - Don't fail to run iptables-save if iptables module isn't loaded.
  - Revert changes between 1.4.1.1-3 and 1.4.1.1-4, thus bringing back
    the howtos.
  - Added linuxdoc-tools to Build-Depends
  - Modified debian/iptables{,-dev}.install to match DM syntax
    (removed debian/tmp)
  - Added -fno-strict-aliasing -Werror switches to regular_CFLAGS
    for catching errors early
  - Removed unused TC_NUM_RULES() and TC_GET_RULE()
* debian/patches/03-compilation-error.patch: updated
* debian/patches/0600-makefile_jedi_handwaving.patch: updated
* Dropped changes:
  - debian/patches/0902-docs-version-reference.diff: modifies files inside
    the debian/ directory and hence is not needed

[ Jamie Strandboge ]
* debian/patches/9000-howtos.patch:
  - combine 0102-howtos.patch and 0103-sgml_errors.patch into this patch
    and apply after the Debian patches for easier maintenance
  - add DEP-3 comments
* debian/patches/9001-build-libipq_pic.la.patch:
  - Build libipq_pic.la with -fPIC
  - add DEP-3 comments
* debian/iptables-dev.install: install lib/*.la in usr/lib
* merge debian/patches/9002-xt_recent-reap.patch:
  - support for the xt_recent filter --reap switch (refreshed and updated)
  - add DEP-3 comments
* debian/patches/9003-compilation-error.patch:
  - renamed 03-compilation-error.patch as 9003-compilation-error.patch
  - apply after Debian patches for easier maintenance
  - add DEP-3 comments
* debian/iptables.doc-base.{nat|packet-filter}: update for 2.6
* Dropped changes:
  - Replaced ipt_DSCP.h by xpt_DSCP.h in ipt_ECN.h and ipt_echn.h (applied
    upstream)
  - 9001-build-libipq_pic.a.patch (using la instead)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef _LINUX_TYPES_H
2
2
#define _LINUX_TYPES_H
3
3
 
 
4
#include <asm/types.h>
 
5
 
 
6
#ifndef __ASSEMBLY__
4
7
 
5
8
#include <linux/posix_types.h>
6
 
#include <asm/types.h>
7
 
 
8
 
#ifndef __KERNEL_STRICT_NAMES
9
 
 
10
 
typedef __u32 __kernel_dev_t;
11
 
 
12
 
typedef __kernel_fd_set         fd_set;
13
 
typedef __kernel_dev_t          dev_t;
14
 
typedef __kernel_ino_t          ino_t;
15
 
typedef __kernel_mode_t         mode_t;
16
 
typedef __kernel_nlink_t        nlink_t;
17
 
typedef __kernel_off_t          off_t;
18
 
typedef __kernel_pid_t          pid_t;
19
 
typedef __kernel_daddr_t        daddr_t;
20
 
typedef __kernel_key_t          key_t;
21
 
typedef __kernel_suseconds_t    suseconds_t;
22
 
typedef __kernel_timer_t        timer_t;
23
 
typedef __kernel_clockid_t      clockid_t;
24
 
typedef __kernel_mqd_t          mqd_t;
25
 
 
26
 
typedef __kernel_uid_t          uid_t;
27
 
typedef __kernel_gid_t          gid_t;
28
 
 
29
 
#if defined(__GNUC__)
30
 
typedef __kernel_loff_t         loff_t;
31
 
#endif
32
 
 
33
 
/*
34
 
 * The following typedefs are also protected by individual ifdefs for
35
 
 * historical reasons:
36
 
 */
37
 
#ifndef _SIZE_T
38
 
#define _SIZE_T
39
 
typedef __kernel_size_t         size_t;
40
 
#endif
41
 
 
42
 
#ifndef _SSIZE_T
43
 
#define _SSIZE_T
44
 
typedef __kernel_ssize_t        ssize_t;
45
 
#endif
46
 
 
47
 
#ifndef _PTRDIFF_T
48
 
#define _PTRDIFF_T
49
 
typedef __kernel_ptrdiff_t      ptrdiff_t;
50
 
#endif
51
 
 
52
 
#ifndef _TIME_T
53
 
#define _TIME_T
54
 
typedef __kernel_time_t         time_t;
55
 
#endif
56
 
 
57
 
#ifndef _CLOCK_T
58
 
#define _CLOCK_T
59
 
typedef __kernel_clock_t        clock_t;
60
 
#endif
61
 
 
62
 
#ifndef _CADDR_T
63
 
#define _CADDR_T
64
 
typedef __kernel_caddr_t        caddr_t;
65
 
#endif
66
 
 
67
 
/* bsd */
68
 
typedef unsigned char           u_char;
69
 
typedef unsigned short          u_short;
70
 
typedef unsigned int            u_int;
71
 
typedef unsigned long           u_long;
72
 
 
73
 
/* sysv */
74
 
typedef unsigned char           unchar;
75
 
typedef unsigned short          ushort;
76
 
typedef unsigned int            uint;
77
 
typedef unsigned long           ulong;
78
 
 
79
 
#ifndef __BIT_TYPES_DEFINED__
80
 
#define __BIT_TYPES_DEFINED__
81
 
 
82
 
typedef         __u8            u_int8_t;
83
 
typedef         __s8            int8_t;
84
 
typedef         __u16           u_int16_t;
85
 
typedef         __s16           int16_t;
86
 
typedef         __u32           u_int32_t;
87
 
typedef         __s32           int32_t;
88
 
 
89
 
#endif /* !(__BIT_TYPES_DEFINED__) */
90
 
 
91
 
typedef         __u8            uint8_t;
92
 
typedef         __u16           uint16_t;
93
 
typedef         __u32           uint32_t;
94
 
 
95
 
#if defined(__GNUC__)
96
 
typedef         __u64           uint64_t;
97
 
typedef         __u64           u_int64_t;
98
 
typedef         __s64           int64_t;
99
 
#endif
100
 
 
101
 
/* this is a special 64bit data type that is 8-byte aligned */
102
 
#define aligned_u64 __u64 __attribute__((aligned(8)))
103
 
#define aligned_be64 __be64 __attribute__((aligned(8)))
104
 
#define aligned_le64 __le64 __attribute__((aligned(8)))
105
 
 
106
 
/**
107
 
 * The type used for indexing onto a disc or disc partition.
108
 
 *
109
 
 * Linux always considers sectors to be 512 bytes long independently
110
 
 * of the devices real block size.
111
 
 *
112
 
 * blkcnt_t is the type of the inode's block count.
113
 
 */
114
 
#ifdef CONFIG_LBD
115
 
typedef u64 sector_t;
116
 
typedef u64 blkcnt_t;
117
 
#else
118
 
typedef unsigned long sector_t;
119
 
typedef unsigned long blkcnt_t;
120
 
#endif
121
 
 
122
 
/*
123
 
 * The type of an index into the pagecache.  Use a #define so asm/types.h
124
 
 * can override it.
125
 
 */
126
 
#ifndef pgoff_t
127
 
#define pgoff_t unsigned long
128
 
#endif
129
 
 
130
 
#endif /* __KERNEL_STRICT_NAMES */
 
9
 
131
10
 
132
11
/*
133
12
 * Below are truly Linux-specific types that should never collide with
155
34
typedef __u16 __bitwise __sum16;
156
35
typedef __u32 __bitwise __wsum;
157
36
 
158
 
 
 
37
#endif /*  __ASSEMBLY__ */
159
38
#endif /* _LINUX_TYPES_H */