1 // sysfile_regfile.go -- For systems which do not 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.
9 func libc_pread(fd int, buf *byte, count Size_t, offset Offset_t) Ssize_t __asm__ ("pread")
10 func libc_pwrite(fd int, buf *byte, count Size_t, offset Offset_t) Ssize_t __asm__ ("pwrite")
11 func libc_lseek(int, Offset_t, int) Offset_t __asm__ ("lseek")
12 func libc_truncate(path *byte, length Offset_t) int __asm__ ("truncate")
13 func libc_ftruncate(fd int, length Offset_t) int __asm__ ("ftruncate")