~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/pkg/syscall/ztypes_freebsd_386.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-04-20 17:36:48 UTC
  • Revision ID: james.westby@ubuntu.com-20110420173648-ifergoxyrm832trd
Tags: upstream-2011.03.07.1
Import upstream version 2011.03.07.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// godefs -gsyscall -f-m32 types_freebsd.c
 
2
 
 
3
// MACHINE GENERATED - DO NOT EDIT.
 
4
 
 
5
package syscall
 
6
 
 
7
// Constants
 
8
const (
 
9
        sizeofPtr              = 0x4
 
10
        sizeofShort            = 0x2
 
11
        sizeofInt              = 0x4
 
12
        sizeofLong             = 0x4
 
13
        sizeofLongLong         = 0x8
 
14
        O_CLOEXEC              = 0
 
15
        S_IFMT                 = 0xf000
 
16
        S_IFIFO                = 0x1000
 
17
        S_IFCHR                = 0x2000
 
18
        S_IFDIR                = 0x4000
 
19
        S_IFBLK                = 0x6000
 
20
        S_IFREG                = 0x8000
 
21
        S_IFLNK                = 0xa000
 
22
        S_IFSOCK               = 0xc000
 
23
        S_ISUID                = 0x800
 
24
        S_ISGID                = 0x400
 
25
        S_ISVTX                = 0x200
 
26
        S_IRUSR                = 0x100
 
27
        S_IWUSR                = 0x80
 
28
        S_IXUSR                = 0x40
 
29
        SizeofSockaddrInet4    = 0x10
 
30
        SizeofSockaddrInet6    = 0x1c
 
31
        SizeofSockaddrAny      = 0x6c
 
32
        SizeofSockaddrUnix     = 0x6a
 
33
        SizeofSockaddrDatalink = 0x36
 
34
        SizeofLinger           = 0x8
 
35
        SizeofIpMreq           = 0x8
 
36
        SizeofMsghdr           = 0x1c
 
37
        SizeofCmsghdr          = 0xc
 
38
        PTRACE_TRACEME         = 0
 
39
        PTRACE_CONT            = 0x7
 
40
        PTRACE_KILL            = 0x8
 
41
        SizeofIfMsghdr         = 0x60
 
42
        SizeofIfData           = 0x50
 
43
        SizeofIfaMsghdr        = 0x14
 
44
        SizeofRtMsghdr         = 0x5c
 
45
        SizeofRtMetrics        = 0x38
 
46
)
 
47
 
 
48
// Types
 
49
 
 
50
type _C_short int16
 
51
 
 
52
type _C_int int32
 
53
 
 
54
type _C_long int32
 
55
 
 
56
type _C_long_long int64
 
57
 
 
58
type Timespec struct {
 
59
        Sec  int32
 
60
        Nsec int32
 
61
}
 
62
 
 
63
type Timeval struct {
 
64
        Sec  int32
 
65
        Usec int32
 
66
}
 
67
 
 
68
type Rusage struct {
 
69
        Utime    Timeval
 
70
        Stime    Timeval
 
71
        Maxrss   int32
 
72
        Ixrss    int32
 
73
        Idrss    int32
 
74
        Isrss    int32
 
75
        Minflt   int32
 
76
        Majflt   int32
 
77
        Nswap    int32
 
78
        Inblock  int32
 
79
        Oublock  int32
 
80
        Msgsnd   int32
 
81
        Msgrcv   int32
 
82
        Nsignals int32
 
83
        Nvcsw    int32
 
84
        Nivcsw   int32
 
85
}
 
86
 
 
87
type Rlimit struct {
 
88
        Cur int64
 
89
        Max int64
 
90
}
 
91
 
 
92
type _Gid_t uint32
 
93
 
 
94
type Stat_t struct {
 
95
        Dev           uint32
 
96
        Ino           uint32
 
97
        Mode          uint16
 
98
        Nlink         uint16
 
99
        Uid           uint32
 
100
        Gid           uint32
 
101
        Rdev          uint32
 
102
        Atimespec     Timespec
 
103
        Mtimespec     Timespec
 
104
        Ctimespec     Timespec
 
105
        Size          int64
 
106
        Blocks        int64
 
107
        Blksize       uint32
 
108
        Flags         uint32
 
109
        Gen           uint32
 
110
        Lspare        int32
 
111
        Birthtimespec Timespec
 
112
        Pad_godefs_0  uint32
 
113
        Pad_godefs_1  uint32
 
114
}
 
115
 
 
116
type Statfs_t struct {
 
117
        Version     uint32
 
118
        Type        uint32
 
119
        Flags       uint64
 
120
        Bsize       uint64
 
121
        Iosize      uint64
 
122
        Blocks      uint64
 
123
        Bfree       uint64
 
124
        Bavail      int64
 
125
        Files       uint64
 
126
        Ffree       int64
 
127
        Syncwrites  uint64
 
128
        Asyncwrites uint64
 
129
        Syncreads   uint64
 
130
        Asyncreads  uint64
 
131
        Spare       [10]uint64
 
132
        Namemax     uint32
 
133
        Owner       uint32
 
134
        Fsid        [8]byte /* fsid */
 
135
        Charspare   [80]int8
 
136
        Fstypename  [16]int8
 
137
        Mntfromname [88]int8
 
138
        Mntonname   [88]int8
 
139
}
 
140
 
 
141
type Flock_t struct {
 
142
        Start  int64
 
143
        Len    int64
 
144
        Pid    int32
 
145
        Type   int16
 
146
        Whence int16
 
147
        Sysid  int32
 
148
}
 
149
 
 
150
type Dirent struct {
 
151
        Fileno uint32
 
152
        Reclen uint16
 
153
        Type   uint8
 
154
        Namlen uint8
 
155
        Name   [256]int8
 
156
}
 
157
 
 
158
type RawSockaddrInet4 struct {
 
159
        Len    uint8
 
160
        Family uint8
 
161
        Port   uint16
 
162
        Addr   [4]byte /* in_addr */
 
163
        Zero   [8]int8
 
164
}
 
165
 
 
166
type RawSockaddrInet6 struct {
 
167
        Len      uint8
 
168
        Family   uint8
 
169
        Port     uint16
 
170
        Flowinfo uint32
 
171
        Addr     [16]byte /* in6_addr */
 
172
        Scope_id uint32
 
173
}
 
174
 
 
175
type RawSockaddrUnix struct {
 
176
        Len    uint8
 
177
        Family uint8
 
178
        Path   [104]int8
 
179
}
 
180
 
 
181
type RawSockaddrDatalink struct {
 
182
        Len    uint8
 
183
        Family uint8
 
184
        Index  uint16
 
185
        Type   uint8
 
186
        Nlen   uint8
 
187
        Alen   uint8
 
188
        Slen   uint8
 
189
        Data   [46]int8
 
190
}
 
191
 
 
192
type RawSockaddr struct {
 
193
        Len    uint8
 
194
        Family uint8
 
195
        Data   [14]int8
 
196
}
 
197
 
 
198
type RawSockaddrAny struct {
 
199
        Addr RawSockaddr
 
200
        Pad  [92]int8
 
201
}
 
202
 
 
203
type _Socklen uint32
 
204
 
 
205
type Linger struct {
 
206
        Onoff  int32
 
207
        Linger int32
 
208
}
 
209
 
 
210
type Iovec struct {
 
211
        Base *byte
 
212
        Len  uint32
 
213
}
 
214
 
 
215
type IpMreq struct {
 
216
        Multiaddr [4]byte /* in_addr */
 
217
        Interface [4]byte /* in_addr */
 
218
}
 
219
 
 
220
type Msghdr struct {
 
221
        Name       *byte
 
222
        Namelen    uint32
 
223
        Iov        *Iovec
 
224
        Iovlen     int32
 
225
        Control    *byte
 
226
        Controllen uint32
 
227
        Flags      int32
 
228
}
 
229
 
 
230
type Cmsghdr struct {
 
231
        Len   uint32
 
232
        Level int32
 
233
        Type  int32
 
234
}
 
235
 
 
236
type Kevent_t struct {
 
237
        Ident  uint32
 
238
        Filter int16
 
239
        Flags  uint16
 
240
        Fflags uint32
 
241
        Data   int32
 
242
        Udata  *byte
 
243
}
 
244
 
 
245
type FdSet struct {
 
246
        X__fds_bits [32]uint32
 
247
}
 
248
 
 
249
type IfMsghdr struct {
 
250
        Msglen       uint16
 
251
        Version      uint8
 
252
        Type         uint8
 
253
        Addrs        int32
 
254
        Flags        int32
 
255
        Index        uint16
 
256
        Pad_godefs_0 [2]byte
 
257
        Data         IfData
 
258
}
 
259
 
 
260
type IfData struct {
 
261
        Type        uint8
 
262
        Physical    uint8
 
263
        Addrlen     uint8
 
264
        Hdrlen      uint8
 
265
        Link_state  uint8
 
266
        Spare_char1 uint8
 
267
        Spare_char2 uint8
 
268
        Datalen     uint8
 
269
        Mtu         uint32
 
270
        Metric      uint32
 
271
        Baudrate    uint32
 
272
        Ipackets    uint32
 
273
        Ierrors     uint32
 
274
        Opackets    uint32
 
275
        Oerrors     uint32
 
276
        Collisions  uint32
 
277
        Ibytes      uint32
 
278
        Obytes      uint32
 
279
        Imcasts     uint32
 
280
        Omcasts     uint32
 
281
        Iqdrops     uint32
 
282
        Noproto     uint32
 
283
        Hwassist    uint32
 
284
        Epoch       int32
 
285
        Lastchange  Timeval
 
286
}
 
287
 
 
288
type IfaMsghdr struct {
 
289
        Msglen       uint16
 
290
        Version      uint8
 
291
        Type         uint8
 
292
        Addrs        int32
 
293
        Flags        int32
 
294
        Index        uint16
 
295
        Pad_godefs_0 [2]byte
 
296
        Metric       int32
 
297
}
 
298
 
 
299
type RtMsghdr struct {
 
300
        Msglen       uint16
 
301
        Version      uint8
 
302
        Type         uint8
 
303
        Index        uint16
 
304
        Pad_godefs_0 [2]byte
 
305
        Flags        int32
 
306
        Addrs        int32
 
307
        Pid          int32
 
308
        Seq          int32
 
309
        Errno        int32
 
310
        Fmask        int32
 
311
        Inits        uint32
 
312
        Rmx          RtMetrics
 
313
}
 
314
 
 
315
type RtMetrics struct {
 
316
        Locks    uint32
 
317
        Mtu      uint32
 
318
        Hopcount uint32
 
319
        Expire   uint32
 
320
        Recvpipe uint32
 
321
        Sendpipe uint32
 
322
        Ssthresh uint32
 
323
        Rtt      uint32
 
324
        Rttvar   uint32
 
325
        Pksent   uint32
 
326
        Weight   uint32
 
327
        Filler   [3]uint32
 
328
}