2011-10-08 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / libgo / syscalls / sysfile_largefile.go
blobc0c4e555e63a1e8102a1160dad260d99e7e31b76
1 // sysfile_largefile.go -- For systems which use the large file interface.
3 // Copyright 2011 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.
7 package syscall
9 func libc_pread(fd int, buf *byte, count Size_t, offset Offset_t) Ssize_t __asm__ ("pread64")
10 func libc_pwrite(fd int, buf *byte, count Size_t, offset Offset_t) Ssize_t __asm__ ("pwrite64")
11 func libc_lseek(int, Offset_t, int) Offset_t __asm__ ("lseek64")
12 func libc_truncate(path *byte, length Offset_t) int __asm__ ("truncate64")
13 func libc_ftruncate(fd int, length Offset_t) int __asm__ ("ftruncate64")
14 func libc_mmap(*byte, Size_t, int, int, int, Offset_t) *byte __asm__ ("mmap64")