khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 1 | // Copyright 2018 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
khenaidoo | d948f77 | 2021-08-11 17:49:24 -0400 | [diff] [blame] | 5 | //go:build linux && gc && 386 |
| 6 | // +build linux,gc,386 |
khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 7 | |
| 8 | package unix |
| 9 | |
| 10 | import "syscall" |
| 11 | |
| 12 | // Underlying system call writes to newoffset via pointer. |
| 13 | // Implemented in assembly to avoid allocation. |
| 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) |
| 15 | |
| 16 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) |
| 17 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) |