1 /* errno.c -- functions for getting and setting errno
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. */
10 /* errno is typically a macro. These functions set
11 and get errno specific to the libc being used. */
13 uintptr_t GetErrno() asm ("libgo_syscall.syscall.GetErrno");
14 void SetErrno(uintptr_t) asm ("libgo_syscall.syscall.SetErrno");
19 return (uintptr_t) errno;
23 SetErrno(uintptr_t value)