OSDN Git Service

* config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
[pf3gnuchains/gcc-fork.git] / libgo / syscalls / errno.c
1 /* errno.c -- functions for getting and setting errno
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 #include <errno.h>
8
9 /* errno is typically a macro. These functions set 
10    and get errno specific to the libc being used.  */
11
12 int GetErrno() asm ("libgo_syscalls.syscall.GetErrno");
13 void SetErrno(int) asm ("libgo_syscalls.syscall.SetErrno");
14
15 int 
16 GetErrno()
17 {
18   return errno;
19 }
20
21 void
22 SetErrno(int value)
23 {
24   errno = value;
25 }