1 // syscall_stubs.go -- Stubs of the basic syscall interface.
3 // Copyright 2010 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // This package contains an interface to the low-level operating system
8 // primitives. The details vary depending on the underlying system.
9 // Its primary use is inside other packages that provide a more portable
10 // interface to the system, such as "os", "time" and "net". Use those
11 // packages rather than this one if you can.
12 // For details of the functions and data types in this package consult
13 // the manuals for the appropriate operating system.
19 func Syscall(trap
, a1
, a2
, a3
uintptr) (r1
, r2
, err
uintptr) {
24 return r
, 0, uintptr(ENOSYS
);
27 func Syscall6(trap
, a1
, a2
, a3
, a4
, a5
, a6
uintptr) (r1
, r2
, err
uintptr) {
32 return r
, 0, uintptr(ENOSYS
);