OSDN Git Service

libgo http/cgi: Pass down environment variables for irix and solaris.
[pf3gnuchains/gcc-fork.git] / libgo / syscalls / syscall_stubs.go
1 // syscall_stubs.go -- Stubs of the basic syscall interface.
2
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.
6
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.
14
15 // These are stubs.
16
17 package syscall
18
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);
25 }
26
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);
33 }