diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-13 05:17:52 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-13 05:17:52 +0000 |
commit | 6b376419aef89630087058acc26f60def53be7b4 (patch) | |
tree | e9602dee09986866e66e3bee32d69f8c5d57bf78 /libgo/syscalls/sysfile_posix.go | |
parent | 36bedd942f1671e50882209288415199fc3b3261 (diff) | |
download | gcc-6b376419aef89630087058acc26f60def53be7b4.tar.gz |
Clean up syscalls, add some Solaris support.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168738 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/syscalls/sysfile_posix.go')
-rw-r--r-- | libgo/syscalls/sysfile_posix.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/syscalls/sysfile_posix.go b/libgo/syscalls/sysfile_posix.go index 4e44c5b959c..1458bf56097 100644 --- a/libgo/syscalls/sysfile_posix.go +++ b/libgo/syscalls/sysfile_posix.go @@ -106,7 +106,7 @@ func Pwrite(fd int, p []byte, offset int64) (n int, errno int) { } func Seek(fd int, offset int64, whence int) (off int64, errno int) { - r := libc_lseek64(fd, Offset_t(offset), whence); + r := libc_lseek(fd, Offset_t(offset), whence); if r == -1 { errno = GetErrno() } off = int64(r); return; @@ -300,13 +300,13 @@ func Fchown(fd int, uid int, gid int) (errno int) { } func Truncate(path string, length int64) (errno int) { - r := libc_truncate64(StringBytePtr(path), Offset_t(length)); + r := libc_truncate(StringBytePtr(path), Offset_t(length)); if r < 0 { errno = GetErrno() } return; } func Ftruncate(fd int, length int64) (errno int) { - r := libc_ftruncate64(fd, Offset_t(length)); + r := libc_ftruncate(fd, Offset_t(length)); if r < 0 { errno = GetErrno() } return; } |