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

« back to all changes in this revision

Viewing changes to src/pkg/syscall/ztypes_freebsd_amd64.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-m64 types_freebsd.c
 
2
 
 
3
// MACHINE GENERATED - DO NOT EDIT.
 
4
 
 
5
package syscall
 
6
 
 
7
// Constants
 
8
const (
 
9
        sizeofPtr              = 0x8
 
10
        sizeofShort            = 0x2
 
11
        sizeofInt              = 0x4
 
12
        sizeofLong             = 0x8
 
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           = 0x30
 
37
        SizeofCmsghdr          = 0xc
 
38
        PTRACE_TRACEME         = 0
 
39
        PTRACE_CONT            = 0x7
 
40
        PTRACE_KILL            = 0x8
 
41
        SizeofIfMsghdr         = 0xa8
 
42
        SizeofIfData           = 0x98
 
43
        SizeofIfaMsghdr        = 0x14
 
44
        SizeofRtMsghdr         = 0x98
 
45
        SizeofRtMetrics        = 0x70
 
46
)
 
47
 
 
48
// Types
 
49
 
 
50
type _C_short int16
 
51
 
 
52
type _C_int int32
 
53
 
 
54
type _C_long int64
 
55
 
 
56
type _C_long_long int64
 
57
 
 
58
type Timespec struct {
 
59
        Sec  int64
 
60
        Nsec int64
 
61
}
 
62
 
 
63
type Timeval struct {
 
64
        Sec  int64
 
65
        Usec int64
 
66
}
 
67
 
 
68
type Rusage struct {
 
69
        Utime    Timeval
 
70
        Stime    Timeval
 
71
        Maxrss   int64
 
72
        Ixrss    int64
 
73
        Idrss    int64
 
74
        Isrss    int64
 
75
        Minflt   int64
 
76
        Majflt   int64
 
77
        Nswap    int64
 
78
        Inblock  int64
 
79
        Oublock  int64
 
80
        Msgsnd   int64
 
81
        Msgrcv   int64
 
82
        Nsignals int64
 
83
        Nvcsw    int64
 
84
        Nivcsw   int64
 
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  uint8
 
113
        Pad_godefs_1  uint8
 
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
        Pad_godefs_0 [4]byte
 
149
}
 
150
 
 
151
type Dirent struct {
 
152
        Fileno uint32
 
153
        Reclen uint16
 
154
        Type   uint8
 
155
        Namlen uint8
 
156
        Name   [256]int8
 
157
}
 
158
 
 
159
type RawSockaddrInet4 struct {
 
160
        Len    uint8
 
161
        Family uint8
 
162
        Port   uint16
 
163
        Addr   [4]byte /* in_addr */
 
164
        Zero   [8]int8
 
165
}
 
166
 
 
167
type RawSockaddrInet6 struct {
 
168
        Len      uint8
 
169
        Family   uint8
 
170
        Port     uint16
 
171
        Flowinfo uint32
 
172
        Addr     [16]byte /* in6_addr */
 
173
        Scope_id uint32
 
174
}
 
175
 
 
176
type RawSockaddrUnix struct {
 
177
        Len    uint8
 
178
        Family uint8
 
179
        Path   [104]int8
 
180
}
 
181
 
 
182
type RawSockaddrDatalink struct {
 
183
        Len    uint8
 
184
        Family uint8
 
185
        Index  uint16
 
186
        Type   uint8
 
187
        Nlen   uint8
 
188
        Alen   uint8
 
189
        Slen   uint8
 
190
        Data   [46]int8
 
191
}
 
192
 
 
193
type RawSockaddr struct {
 
194
        Len    uint8
 
195
        Family uint8
 
196
        Data   [14]int8
 
197
}
 
198
 
 
199
type RawSockaddrAny struct {
 
200
        Addr RawSockaddr
 
201
        Pad  [92]int8
 
202
}
 
203
 
 
204
type _Socklen uint32
 
205
 
 
206
type Linger struct {
 
207
        Onoff  int32
 
208
        Linger int32
 
209
}
 
210
 
 
211
type Iovec struct {
 
212
        Base *byte
 
213
        Len  uint64
 
214
}
 
215
 
 
216
type IpMreq struct {
 
217
        Multiaddr [4]byte /* in_addr */
 
218
        Interface [4]byte /* in_addr */
 
219
}
 
220
 
 
221
type Msghdr struct {
 
222
        Name         *byte
 
223
        Namelen      uint32
 
224
        Pad_godefs_0 [4]byte
 
225
        Iov          *Iovec
 
226
        Iovlen       int32
 
227
        Pad_godefs_1 [4]byte
 
228
        Control      *byte
 
229
        Controllen   uint32
 
230
        Flags        int32
 
231
}
 
232
 
 
233
type Cmsghdr struct {
 
234
        Len   uint32
 
235
        Level int32
 
236
        Type  int32
 
237
}
 
238
 
 
239
type Kevent_t struct {
 
240
        Ident  uint64
 
241
        Filter int16
 
242
        Flags  uint16
 
243
        Fflags uint32
 
244
        Data   int64
 
245
        Udata  *byte
 
246
}
 
247
 
 
248
type FdSet struct {
 
249
        X__fds_bits [16]uint64
 
250
}
 
251
 
 
252
type IfMsghdr struct {
 
253
        Msglen       uint16
 
254
        Version      uint8
 
255
        Type         uint8
 
256
        Addrs        int32
 
257
        Flags        int32
 
258
        Index        uint16
 
259
        Pad_godefs_0 [2]byte
 
260
        Data         IfData
 
261
}
 
262
 
 
263
type IfData struct {
 
264
        Type        uint8
 
265
        Physical    uint8
 
266
        Addrlen     uint8
 
267
        Hdrlen      uint8
 
268
        Link_state  uint8
 
269
        Spare_char1 uint8
 
270
        Spare_char2 uint8
 
271
        Datalen     uint8
 
272
        Mtu         uint64
 
273
        Metric      uint64
 
274
        Baudrate    uint64
 
275
        Ipackets    uint64
 
276
        Ierrors     uint64
 
277
        Opackets    uint64
 
278
        Oerrors     uint64
 
279
        Collisions  uint64
 
280
        Ibytes      uint64
 
281
        Obytes      uint64
 
282
        Imcasts     uint64
 
283
        Omcasts     uint64
 
284
        Iqdrops     uint64
 
285
        Noproto     uint64
 
286
        Hwassist    uint64
 
287
        Epoch       int64
 
288
        Lastchange  Timeval
 
289
}
 
290
 
 
291
type IfaMsghdr struct {
 
292
        Msglen       uint16
 
293
        Version      uint8
 
294
        Type         uint8
 
295
        Addrs        int32
 
296
        Flags        int32
 
297
        Index        uint16
 
298
        Pad_godefs_0 [2]byte
 
299
        Metric       int32
 
300
}
 
301
 
 
302
type RtMsghdr struct {
 
303
        Msglen       uint16
 
304
        Version      uint8
 
305
        Type         uint8
 
306
        Index        uint16
 
307
        Pad_godefs_0 [2]byte
 
308
        Flags        int32
 
309
        Addrs        int32
 
310
        Pid          int32
 
311
        Seq          int32
 
312
        Errno        int32
 
313
        Fmask        int32
 
314
        Inits        uint64
 
315
        Rmx          RtMetrics
 
316
}
 
317
 
 
318
type RtMetrics struct {
 
319
        Locks    uint64
 
320
        Mtu      uint64
 
321
        Hopcount uint64
 
322
        Expire   uint64
 
323
        Recvpipe uint64
 
324
        Sendpipe uint64
 
325
        Ssthresh uint64
 
326
        Rtt      uint64
 
327
        Rttvar   uint64
 
328
        Pksent   uint64
 
329
        Weight   uint64
 
330
        Filler   [3]uint64
 
331
}