summaryrefslogtreecommitdiff
path: root/software/vendor/github.com/creack/goselect/README.md
blob: 0c79d64d6861d21ff623a5d2b9a77fd70f7c7c21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# go-select

select(2) implementation in Go

## Supported platforms

|               | 386 | amd64 | arm | arm64 | mips | mipsle | mips64 | mips64le | ppc64le | s390x |
|---------------|-----|-------|-----|-------|------|--------|--------|----------|---------|-------|
| **linux**     | yes | yes   | yes | yes   | yes  | yes    | yes    | yes      | yes     | yes   |
| **darwin**    | yes | yes   | ??  | ??    | n/a  | n/a    | n/a    | n/a      | n/a     | n/a   |
| **freebsd**   | yes | yes   | yes | n/a   | n/a  | n/a    | n/a    | n/a      | n/a     | n/a   |
| **openbsd**   | yes | yes   | yes | n/a   | n/a  | n/a    | n/a    | n/a      | n/a     | n/a   |
| **netbsd**    | yes | yes   | yes | n/a   | n/a  | n/a    | n/a    | n/a      | n/a     | n/a   |
| **dragonfly** | n/a | yes   | n/a | n/a   | n/a  | n/a    | n/a    | n/a      | n/a     | n/a   |
| **solaris**   | n/a | no    | n/a | n/a   | n/a  | n/a    | n/a    | n/a      | n/a     | n/a   |
| **plan9**     | no  | no    | no  | n/a   | n/a  | n/a    | n/a    | n/a      | n/a     | n/a   |
| **windows**   | yes | yes   | n/a | n/a   | n/a  | n/a    | n/a    | n/a      | n/a     | n/a   |
| **android**   | ??  | ??    | ??  | ??    | n/a  | n/a    | n/a    | n/a      | n/a     | n/a   |

*n/a: platform not supported by Go
*??: not tested

Go on `plan9` and `solaris` do not implement `syscall.Select` nor `syscall.SYS_SELECT`.

## Cross compile test

Note that this only tests the compilation, not the functionality.

```sh
$> ./test_crosscompile.sh > /dev/null | sort
[OK] android/386
[OK] android/amd64
[OK] android/arm
[OK] android/arm64
[OK] darwin/386
[OK] darwin/amd64
[OK] darwin/arm
[OK] darwin/arm64
[OK] dragonfly/amd64
[OK] freebsd/386
[OK] freebsd/amd64
[OK] freebsd/arm
[OK] linux/386
[OK] linux/amd64
[OK] linux/arm
[OK] linux/arm64
[OK] linux/mips
[OK] linux/mips64
[OK] linux/mips64le
[OK] linux/mipsle
[OK] linux/ppc64le
[OK] linux/s390x
[OK] netbsd/386
[OK] netbsd/amd64
[OK] netbsd/arm
[OK] openbsd/386
[OK] openbsd/amd64
[OK] openbsd/arm
[OK] plan9/386
[OK] plan9/amd64
[OK] plan9/arm
[OK] solaris/amd64
[OK] windows/386
[OK] windows/amd64
[OK] windows/arm

# Expected failures.
[KO] android/mips
[KO] android/mips64
[KO] android/mips64le
[KO] android/mipsle
[KO] android/ppc64le
[KO] android/s390x
[KO] darwin/mips
[KO] darwin/mips64
[KO] darwin/mips64le
[KO] darwin/mipsle
[KO] darwin/ppc64le
[KO] darwin/s390x
[KO] dragonfly/386
[KO] dragonfly/arm
[KO] dragonfly/arm64
[KO] dragonfly/mips
[KO] dragonfly/mips64
[KO] dragonfly/mips64le
[KO] dragonfly/mipsle
[KO] dragonfly/ppc64le
[KO] dragonfly/s390x
[KO] freebsd/arm64
[KO] freebsd/mips
[KO] freebsd/mips64
[KO] freebsd/mips64le
[KO] freebsd/mipsle
[KO] freebsd/ppc64le
[KO] freebsd/s390x
[KO] netbsd/arm64
[KO] netbsd/mips
[KO] netbsd/mips64
[KO] netbsd/mips64le
[KO] netbsd/mipsle
[KO] netbsd/ppc64le
[KO] netbsd/s390x
[KO] openbsd/arm64
[KO] openbsd/mips
[KO] openbsd/mips64
[KO] openbsd/mips64le
[KO] openbsd/mipsle
[KO] openbsd/ppc64le
[KO] openbsd/s390x
[KO] plan9/arm64
[KO] plan9/mips
[KO] plan9/mips64
[KO] plan9/mips64le
[KO] plan9/mipsle
[KO] plan9/ppc64le
[KO] plan9/s390x
[KO] solaris/386
[KO] solaris/arm
[KO] solaris/arm64
[KO] solaris/mips
[KO] solaris/mips64
[KO] solaris/mips64le
[KO] solaris/mipsle
[KO] solaris/ppc64le
[KO] solaris/s390x
[KO] windows/arm64
[KO] windows/mips
[KO] windows/mips64
[KO] windows/mips64le
[KO] windows/mipsle
[KO] windows/ppc64le
[KO] windows/s390x
```

## License

Released under the [MIT license](LICENSE).