From 6b376419aef89630087058acc26f60def53be7b4 Mon Sep 17 00:00:00 2001 From: ian Date: Thu, 13 Jan 2011 05:17:52 +0000 Subject: Clean up syscalls, add some Solaris support. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168738 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgo/syscalls/sysfile_posix.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libgo/syscalls/sysfile_posix.go') 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; } -- cgit v1.2.1