|
|
@@ -166,17 +166,3 @@ func TestPselect(t *testing.T) {
|
|
|
t.Errorf("Pselect: timeout should have been at least %v, got %v", dur, took)
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-// stringsFromByteSlice converts a sequence of attributes to a []string.
|
|
|
-// On Linux, each entry is a NULL-terminated string.
|
|
|
-func stringsFromByteSlice(buf []byte) []string {
|
|
|
- var result []string
|
|
|
- off := 0
|
|
|
- for i, b := range buf {
|
|
|
- if b == 0 {
|
|
|
- result = append(result, string(buf[off:i]))
|
|
|
- off = i + 1
|
|
|
- }
|
|
|
- }
|
|
|
- return result
|
|
|
-}
|