PR target/29560
[official-gcc.git] / libgo / syscalls / sysfile_regfile.go
blobfcbf254dc0e3238c39ca0671a419d0653f00e319
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.
7 package syscall
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")
14 func libc_mmap(*byte, Size_t, int, int, int, Offset_t) *byte __asm__ ("mmap")