2011-05-31 Gabriel Charette <gchare@google.com>
[official-gcc.git] / libgo / syscalls / syscall_stubs.go
blobd864902eaf775e96dfc2dfe2cdb0e8ca0c7351cc
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.
15 // These are stubs.
17 package syscall
19 func Syscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
20 var r uintptr;
21 var i int;
22 i = -1;
23 r = uintptr(i);
24 return r, 0, uintptr(ENOSYS);
27 func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr) {
28 var r uintptr;
29 var i int;
30 i = -1;
31 r = uintptr(i);
32 return r, 0, uintptr(ENOSYS);