Imported Upstream version 0.0~git20160704.0.a408501
MartÃn Ferrari
7 years ago
0 | # Treat all files in this repo as binary, with no git magic updating | |
1 | # line endings. Windows users contributing to Go will need to use a | |
2 | # modern version of git and editors capable of LF line endings. | |
3 | # | |
4 | # We'll prevent accidental CRLF line endings from entering the repo | |
5 | # via the git-review gofmt checks. | |
6 | # | |
7 | # See golang.org/issue/9281 | |
8 | ||
9 | * -text |
0 | _obj/ |
143 | 143 | uintptr(options), |
144 | 144 | 0, |
145 | 145 | ) |
146 | use(unsafe.Pointer(_p0)) | |
146 | 147 | if e1 != 0 { |
147 | 148 | return nil, e1 |
148 | 149 | } |
195 | 196 | bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf)) |
196 | 197 | } |
197 | 198 | r0, _, e1 := Syscall(SYS_GETFSSTAT64, uintptr(_p0), bufsize, uintptr(flags)) |
199 | use(unsafe.Pointer(_p0)) | |
198 | 200 | n = int(r0) |
199 | 201 | if e1 != 0 { |
200 | 202 | err = e1 |
108 | 108 | bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf)) |
109 | 109 | } |
110 | 110 | r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags)) |
111 | use(unsafe.Pointer(_p0)) | |
111 | 112 | n = int(r0) |
112 | 113 | if e1 != 0 { |
113 | 114 | err = e1 |
128 | 128 | bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf)) |
129 | 129 | } |
130 | 130 | r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags)) |
131 | use(unsafe.Pointer(_p0)) | |
131 | 132 | n = int(r0) |
132 | 133 | if e1 != 0 { |
133 | 134 | err = e1 |
59 | 59 | return openat(dirfd, path, flags|O_LARGEFILE, mode) |
60 | 60 | } |
61 | 61 | |
62 | //sys poll(fds *PollFd, nfd int, timeout int) (n int, err error) | |
63 | ||
64 | func Poll(fds []PollFd, timeout int) (n int, err error) { | |
62 | //sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) | |
63 | ||
64 | func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | |
65 | 65 | if len(fds) == 0 { |
66 | return poll(nil, 0, timeout) | |
67 | } | |
68 | return poll(&fds[0], len(fds), timeout) | |
66 | return ppoll(nil, 0, timeout, sigmask) | |
67 | } | |
68 | return ppoll(&fds[0], len(fds), timeout, sigmask) | |
69 | 69 | } |
70 | 70 | |
71 | 71 | //sys readlinkat(dirfd int, path string, buf []byte) (n int, err error) |
1051 | 1051 | // Newfstatat |
1052 | 1052 | // Nfsservctl |
1053 | 1053 | // Personality |
1054 | // Ppoll | |
1055 | 1054 | // Pselect6 |
1056 | 1055 | // Ptrace |
1057 | 1056 | // Putpmsg |
387 | 387 | func (cmsg *Cmsghdr) SetLen(length int) { |
388 | 388 | cmsg.Len = uint32(length) |
389 | 389 | } |
390 | ||
391 | //sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) | |
392 | ||
393 | func Poll(fds []PollFd, timeout int) (n int, err error) { | |
394 | if len(fds) == 0 { | |
395 | return poll(nil, 0, timeout) | |
396 | } | |
397 | return poll(&fds[0], len(fds), timeout) | |
398 | } |
145 | 145 | func (cmsg *Cmsghdr) SetLen(length int) { |
146 | 146 | cmsg.Len = uint64(length) |
147 | 147 | } |
148 | ||
149 | //sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) | |
150 | ||
151 | func Poll(fds []PollFd, timeout int) (n int, err error) { | |
152 | if len(fds) == 0 { | |
153 | return poll(nil, 0, timeout) | |
154 | } | |
155 | return poll(&fds[0], len(fds), timeout) | |
156 | } |
251 | 251 | func (cmsg *Cmsghdr) SetLen(length int) { |
252 | 252 | cmsg.Len = uint32(length) |
253 | 253 | } |
254 | ||
255 | //sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) | |
256 | ||
257 | func Poll(fds []PollFd, timeout int) (n int, err error) { | |
258 | if len(fds) == 0 { | |
259 | return poll(nil, 0, timeout) | |
260 | } | |
261 | return poll(&fds[0], len(fds), timeout) | |
262 | } |
177 | 177 | SYS_EPOLL_CREATE = 1042 |
178 | 178 | SYS_EPOLL_WAIT = 1069 |
179 | 179 | ) |
180 | ||
181 | func Poll(fds []PollFd, timeout int) (n int, err error) { | |
182 | var ts *Timespec | |
183 | if timeout >= 0 { | |
184 | ts = new(Timespec) | |
185 | *ts = NsecToTimespec(int64(timeout) * 1e6) | |
186 | } | |
187 | if len(fds) == 0 { | |
188 | return ppoll(nil, 0, ts, nil) | |
189 | } | |
190 | return ppoll(&fds[0], len(fds), ts, nil) | |
191 | } |
203 | 203 | func (cmsg *Cmsghdr) SetLen(length int) { |
204 | 204 | cmsg.Len = uint64(length) |
205 | 205 | } |
206 | ||
207 | //sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) | |
208 | ||
209 | func Poll(fds []PollFd, timeout int) (n int, err error) { | |
210 | if len(fds) == 0 { | |
211 | return poll(nil, 0, timeout) | |
212 | } | |
213 | return poll(&fds[0], len(fds), timeout) | |
214 | } |
123 | 123 | p[1] = int(pp[1]) |
124 | 124 | return |
125 | 125 | } |
126 | ||
127 | //sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) | |
128 | ||
129 | func Poll(fds []PollFd, timeout int) (n int, err error) { | |
130 | if len(fds) == 0 { | |
131 | return poll(nil, 0, timeout) | |
132 | } | |
133 | return poll(&fds[0], len(fds), timeout) | |
134 | } |
317 | 317 | } |
318 | 318 | return nil |
319 | 319 | } |
320 | ||
321 | //sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) | |
322 | ||
323 | func Poll(fds []PollFd, timeout int) (n int, err error) { | |
324 | if len(fds) == 0 { | |
325 | return poll(nil, 0, timeout) | |
326 | } | |
327 | return poll(&fds[0], len(fds), timeout) | |
328 | } |
15 | 15 | ) |
16 | 16 | |
17 | 17 | func TestPoll(t *testing.T) { |
18 | err := unix.Mkfifo("fifo", 0666) | |
19 | if err != nil { | |
20 | t.Errorf("Poll: failed to create FIFO: %v", err) | |
21 | return | |
22 | } | |
23 | defer os.Remove("fifo") | |
24 | ||
25 | f, err := os.OpenFile("fifo", os.O_RDWR, 0666) | |
26 | if err != nil { | |
27 | t.Errorf("Poll: failed to open FIFO: %v", err) | |
28 | return | |
29 | } | |
30 | defer f.Close() | |
18 | f, cleanup := mktmpfifo(t) | |
19 | defer cleanup() | |
31 | 20 | |
32 | 21 | const timeout = 100 |
33 | 22 | |
50 | 39 | if n != 0 { |
51 | 40 | t.Errorf("Poll: wrong number of events: got %v, expected %v", n, 0) |
52 | 41 | return |
42 | } | |
43 | } | |
44 | ||
45 | func TestPpoll(t *testing.T) { | |
46 | f, cleanup := mktmpfifo(t) | |
47 | defer cleanup() | |
48 | ||
49 | const timeout = 100 * time.Millisecond | |
50 | ||
51 | ok := make(chan bool, 1) | |
52 | go func() { | |
53 | select { | |
54 | case <-time.After(10 * timeout): | |
55 | t.Errorf("Ppoll: failed to timeout after %d", 10*timeout) | |
56 | case <-ok: | |
57 | } | |
58 | }() | |
59 | ||
60 | fds := []unix.PollFd{{Fd: int32(f.Fd()), Events: unix.POLLIN}} | |
61 | timeoutTs := unix.NsecToTimespec(int64(timeout)) | |
62 | n, err := unix.Ppoll(fds, &timeoutTs, nil) | |
63 | ok <- true | |
64 | if err != nil { | |
65 | t.Errorf("Ppoll: unexpected error: %v", err) | |
66 | return | |
67 | } | |
68 | if n != 0 { | |
69 | t.Errorf("Ppoll: wrong number of events: got %v, expected %v", n, 0) | |
70 | return | |
71 | } | |
72 | } | |
73 | ||
74 | // mktmpfifo creates a temporary FIFO and provides a cleanup function. | |
75 | func mktmpfifo(t *testing.T) (*os.File, func()) { | |
76 | err := unix.Mkfifo("fifo", 0666) | |
77 | if err != nil { | |
78 | t.Fatalf("mktmpfifo: failed to create FIFO: %v", err) | |
79 | } | |
80 | ||
81 | f, err := os.OpenFile("fifo", os.O_RDWR, 0666) | |
82 | if err != nil { | |
83 | os.Remove("fifo") | |
84 | t.Fatalf("mktmpfifo: failed to open FIFO: %v", err) | |
85 | } | |
86 | ||
87 | return f, func() { | |
88 | f.Close() | |
89 | os.Remove("fifo") | |
53 | 90 | } |
54 | 91 | } |
55 | 92 |
110 | 110 | bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf)) |
111 | 111 | } |
112 | 112 | r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags)) |
113 | use(unsafe.Pointer(_p0)) | |
113 | 114 | n = int(r0) |
114 | 115 | if e1 != 0 { |
115 | 116 | err = e1 |
442 | 442 | POLLNVAL = C.POLLNVAL |
443 | 443 | ) |
444 | 444 | |
445 | type Sigset_t C.sigset_t | |
446 | ||
445 | 447 | // Terminal handling |
446 | 448 | |
447 | 449 | type Termios C.termios_t |
52 | 52 | |
53 | 53 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
54 | 54 | |
55 | func poll(fds *PollFd, nfd int, timeout int) (n int, err error) { | |
56 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfd), uintptr(timeout)) | |
55 | func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | |
56 | r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) | |
57 | 57 | n = int(r0) |
58 | 58 | if e1 != 0 { |
59 | 59 | err = errnoErr(e1) |
1646 | 1646 | } |
1647 | 1647 | return |
1648 | 1648 | } |
1649 | ||
1650 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1651 | ||
1652 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | |
1653 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) | |
1654 | n = int(r0) | |
1655 | if e1 != 0 { | |
1656 | err = errnoErr(e1) | |
1657 | } | |
1658 | return | |
1659 | } |
52 | 52 | |
53 | 53 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
54 | 54 | |
55 | func poll(fds *PollFd, nfd int, timeout int) (n int, err error) { | |
56 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfd), uintptr(timeout)) | |
55 | func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | |
56 | r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) | |
57 | 57 | n = int(r0) |
58 | 58 | if e1 != 0 { |
59 | 59 | err = errnoErr(e1) |
1840 | 1840 | } |
1841 | 1841 | return |
1842 | 1842 | } |
1843 | ||
1844 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1845 | ||
1846 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | |
1847 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) | |
1848 | n = int(r0) | |
1849 | if e1 != 0 { | |
1850 | err = errnoErr(e1) | |
1851 | } | |
1852 | return | |
1853 | } |
52 | 52 | |
53 | 53 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
54 | 54 | |
55 | func poll(fds *PollFd, nfd int, timeout int) (n int, err error) { | |
56 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfd), uintptr(timeout)) | |
55 | func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | |
56 | r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) | |
57 | 57 | n = int(r0) |
58 | 58 | if e1 != 0 { |
59 | 59 | err = errnoErr(e1) |
1747 | 1747 | } |
1748 | 1748 | return |
1749 | 1749 | } |
1750 | ||
1751 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1752 | ||
1753 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | |
1754 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) | |
1755 | n = int(r0) | |
1756 | if e1 != 0 { | |
1757 | err = errnoErr(e1) | |
1758 | } | |
1759 | return | |
1760 | } |
52 | 52 | |
53 | 53 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
54 | 54 | |
55 | func poll(fds *PollFd, nfd int, timeout int) (n int, err error) { | |
56 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfd), uintptr(timeout)) | |
55 | func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | |
56 | r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) | |
57 | 57 | n = int(r0) |
58 | 58 | if e1 != 0 { |
59 | 59 | err = errnoErr(e1) |
52 | 52 | |
53 | 53 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
54 | 54 | |
55 | func poll(fds *PollFd, nfd int, timeout int) (n int, err error) { | |
56 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfd), uintptr(timeout)) | |
55 | func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | |
56 | r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) | |
57 | 57 | n = int(r0) |
58 | 58 | if e1 != 0 { |
59 | 59 | err = errnoErr(e1) |
1789 | 1789 | } |
1790 | 1790 | return |
1791 | 1791 | } |
1792 | ||
1793 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1794 | ||
1795 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | |
1796 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) | |
1797 | n = int(r0) | |
1798 | if e1 != 0 { | |
1799 | err = errnoErr(e1) | |
1800 | } | |
1801 | return | |
1802 | } |
52 | 52 | |
53 | 53 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
54 | 54 | |
55 | func poll(fds *PollFd, nfd int, timeout int) (n int, err error) { | |
56 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfd), uintptr(timeout)) | |
55 | func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | |
56 | r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) | |
57 | 57 | n = int(r0) |
58 | 58 | if e1 != 0 { |
59 | 59 | err = errnoErr(e1) |
1789 | 1789 | } |
1790 | 1790 | return |
1791 | 1791 | } |
1792 | ||
1793 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1794 | ||
1795 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | |
1796 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) | |
1797 | n = int(r0) | |
1798 | if e1 != 0 { | |
1799 | err = errnoErr(e1) | |
1800 | } | |
1801 | return | |
1802 | } |
52 | 52 | |
53 | 53 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
54 | 54 | |
55 | func poll(fds *PollFd, nfd int, timeout int) (n int, err error) { | |
56 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfd), uintptr(timeout)) | |
55 | func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | |
56 | r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) | |
57 | 57 | n = int(r0) |
58 | 58 | if e1 != 0 { |
59 | 59 | err = errnoErr(e1) |
1851 | 1851 | } |
1852 | 1852 | return |
1853 | 1853 | } |
1854 | ||
1855 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1856 | ||
1857 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | |
1858 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) | |
1859 | n = int(r0) | |
1860 | if e1 != 0 { | |
1861 | err = errnoErr(e1) | |
1862 | } | |
1863 | return | |
1864 | } |
52 | 52 | |
53 | 53 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
54 | 54 | |
55 | func poll(fds *PollFd, nfd int, timeout int) (n int, err error) { | |
56 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfd), uintptr(timeout)) | |
55 | func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | |
56 | r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) | |
57 | 57 | n = int(r0) |
58 | 58 | if e1 != 0 { |
59 | 59 | err = errnoErr(e1) |
1851 | 1851 | } |
1852 | 1852 | return |
1853 | 1853 | } |
1854 | ||
1855 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1856 | ||
1857 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | |
1858 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) | |
1859 | n = int(r0) | |
1860 | if e1 != 0 { | |
1861 | err = errnoErr(e1) | |
1862 | } | |
1863 | return | |
1864 | } |
52 | 52 | |
53 | 53 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
54 | 54 | |
55 | func poll(fds *PollFd, nfd int, timeout int) (n int, err error) { | |
56 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfd), uintptr(timeout)) | |
55 | func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { | |
56 | r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) | |
57 | 57 | n = int(r0) |
58 | 58 | if e1 != 0 { |
59 | 59 | err = errnoErr(e1) |
1631 | 1631 | } |
1632 | 1632 | return |
1633 | 1633 | } |
1634 | ||
1635 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1636 | ||
1637 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | |
1638 | r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) | |
1639 | n = int(r0) | |
1640 | if e1 != 0 { | |
1641 | err = errnoErr(e1) | |
1642 | } | |
1643 | return | |
1644 | } |
610 | 610 | POLLNVAL = 0x20 |
611 | 611 | ) |
612 | 612 | |
613 | type Sigset_t struct { | |
614 | X__val [16]uint64 | |
615 | } | |
616 | ||
613 | 617 | type Termios struct { |
614 | 618 | Iflag uint32 |
615 | 619 | Oflag uint32 |
628 | 628 | POLLNVAL = 0x20 |
629 | 629 | ) |
630 | 630 | |
631 | type Sigset_t struct { | |
632 | X__val [16]uint64 | |
633 | } | |
634 | ||
631 | 635 | type Termios struct { |
632 | 636 | Iflag uint32 |
633 | 637 | Oflag uint32 |
590 | 590 | POLLNVAL = 0x20 |
591 | 591 | ) |
592 | 592 | |
593 | type Sigset_t struct { | |
594 | X__val [16]uint64 | |
595 | } | |
596 | ||
593 | 597 | type Termios struct { |
594 | 598 | Iflag uint32 |
595 | 599 | Oflag uint32 |
607 | 607 | POLLNVAL = 0x20 |
608 | 608 | ) |
609 | 609 | |
610 | type Sigset_t struct { | |
611 | X__val [16]uint64 | |
612 | } | |
613 | ||
610 | 614 | type Termios struct { |
611 | 615 | Iflag uint32 |
612 | 616 | Oflag uint32 |
611 | 611 | POLLNVAL = 0x20 |
612 | 612 | ) |
613 | 613 | |
614 | type Sigset_t struct { | |
615 | X__val [16]uint64 | |
616 | } | |
617 | ||
614 | 618 | type Termios struct { |
615 | 619 | Iflag uint32 |
616 | 620 | Oflag uint32 |
611 | 611 | POLLNVAL = 0x20 |
612 | 612 | ) |
613 | 613 | |
614 | type Sigset_t struct { | |
615 | X__val [16]uint64 | |
616 | } | |
617 | ||
614 | 618 | type Termios struct { |
615 | 619 | Iflag uint32 |
616 | 620 | Oflag uint32 |
617 | 617 | POLLNVAL = 0x20 |
618 | 618 | ) |
619 | 619 | |
620 | type Sigset_t struct { | |
621 | X__val [16]uint64 | |
622 | } | |
623 | ||
620 | 624 | type Termios struct { |
621 | 625 | Iflag uint32 |
622 | 626 | Oflag uint32 |