diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-21 04:17:20 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-21 04:17:20 +0000 |
commit | 1633da9c3cff65204df3f5b56b83714ba585b71a (patch) | |
tree | 8c3438b2ec8fe5d78be2332c12e39da3187460af /libgo/syscalls/sysfile_stat_regfile.go | |
parent | 197aaecb3c000fd3b1256490a5e5ff897adb908b (diff) | |
download | gcc-1633da9c3cff65204df3f5b56b83714ba585b71a.tar.gz |
Support libgo on Solaris.
From Rainer Orth.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170355 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/syscalls/sysfile_stat_regfile.go')
-rw-r--r-- | libgo/syscalls/sysfile_stat_regfile.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libgo/syscalls/sysfile_stat_regfile.go b/libgo/syscalls/sysfile_stat_regfile.go new file mode 100644 index 00000000000..b3d48641375 --- /dev/null +++ b/libgo/syscalls/sysfile_stat_regfile.go @@ -0,0 +1,12 @@ +// sysfile_stat_regfile.go -- For systems which do not use the large file +// interface for *stat. + +// Copyright 2011 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. + +package syscall + +func libc_stat(name *byte, buf *Stat_t) int __asm__ ("stat"); +func libc_fstat(fd int, buf *Stat_t) int __asm__ ("fstat"); +func libc_lstat(name *byte, buf *Stat_t) int __asm__ ("lstat"); |