blob: 9843fb4896018824ddd8ec91dbf2c1868a4ccb7c [file] [log] [blame]
khenaidooac637102019-01-14 15:44:34 -05001// 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
khenaidood948f772021-08-11 17:49:24 -04005//go:build linux && gc && 386
6// +build linux,gc,386
khenaidooac637102019-01-14 15:44:34 -05007
8package unix
9
10import "syscall"
11
12// Underlying system call writes to newoffset via pointer.
13// Implemented in assembly to avoid allocation.
14func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
15
16func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
17func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)