Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [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 | |
David K. Bainbridge | bd6b288 | 2021-08-26 13:31:02 +0000 | [diff] [blame] | 5 | //go:build linux && gc && 386 |
| 6 | // +build linux,gc,386 |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [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) |