diff options
Diffstat (limited to 'include/plan9')
| -rw-r--r-- | include/plan9/386/u.h | 14 | ||||
| -rw-r--r-- | include/plan9/libc.h | 16 | ||||
| -rw-r--r-- | include/plan9/mach.h | 5 | ||||
| -rw-r--r-- | include/plan9/ureg_amd64.h | 5 | ||||
| -rw-r--r-- | include/plan9/ureg_arm.h | 5 | ||||
| -rw-r--r-- | include/plan9/ureg_x86.h | 5 |
6 files changed, 50 insertions, 0 deletions
diff --git a/include/plan9/386/u.h b/include/plan9/386/u.h new file mode 100644 index 000000000..3f4a55cb2 --- /dev/null +++ b/include/plan9/386/u.h @@ -0,0 +1,14 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +#include "/386/include/u.h" + +typedef char int8; +typedef uchar uint8; +typedef short int16; +typedef ushort uint16; +typedef int int32; +typedef uint uint32; +typedef vlong int64; +typedef uvlong uint64; diff --git a/include/plan9/libc.h b/include/plan9/libc.h new file mode 100644 index 000000000..d13ddbcb7 --- /dev/null +++ b/include/plan9/libc.h @@ -0,0 +1,16 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +#include "/sys/include/libc.h" +#include "/sys/include/ctype.h" + +enum +{ + Runemax = 0x10FFFF, /* maximum rune value */ +}; + +char* getgoos(void); +char* getgoarch(void); +char* getgoroot(void); +char* getgoversion(void); diff --git a/include/plan9/mach.h b/include/plan9/mach.h new file mode 100644 index 000000000..636f44fe8 --- /dev/null +++ b/include/plan9/mach.h @@ -0,0 +1,5 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +#include "../mach.h" diff --git a/include/plan9/ureg_amd64.h b/include/plan9/ureg_amd64.h new file mode 100644 index 000000000..8aaa83f52 --- /dev/null +++ b/include/plan9/ureg_amd64.h @@ -0,0 +1,5 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +#include "/amd64/include/ureg.h" diff --git a/include/plan9/ureg_arm.h b/include/plan9/ureg_arm.h new file mode 100644 index 000000000..f83c19a2f --- /dev/null +++ b/include/plan9/ureg_arm.h @@ -0,0 +1,5 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +#include "/arm/include/ureg.h" diff --git a/include/plan9/ureg_x86.h b/include/plan9/ureg_x86.h new file mode 100644 index 000000000..7d73a4865 --- /dev/null +++ b/include/plan9/ureg_x86.h @@ -0,0 +1,5 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +#include "/386/include/ureg.h" |
