2011-10-23 21:04:37 +02:00
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// POSIX library calls on systems which do not use the largefile
|
|
|
|
// interface.
|
|
|
|
|
|
|
|
package syscall
|
|
|
|
|
2011-12-13 00:40:51 +01:00
|
|
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
2012-11-03 00:39:36 +01:00
|
|
|
//fstat(fd _C_int, stat *Stat_t) _C_int
|
2011-10-23 21:04:37 +02:00
|
|
|
|
2011-12-13 00:40:51 +01:00
|
|
|
//sys Ftruncate(fd int, length int64) (err error)
|
2012-11-03 00:39:36 +01:00
|
|
|
//ftruncate(fd _C_int, length Offset_t) _C_int
|
2011-10-23 21:04:37 +02:00
|
|
|
|
2011-12-13 00:40:51 +01:00
|
|
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
2012-11-03 00:39:36 +01:00
|
|
|
//lstat(path *byte, stat *Stat_t) _C_int
|
2011-10-23 21:04:37 +02:00
|
|
|
|
2011-12-13 00:40:51 +01:00
|
|
|
//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
|
2012-11-03 00:39:36 +01:00
|
|
|
//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
|
2011-10-23 21:04:37 +02:00
|
|
|
|
2011-12-13 00:40:51 +01:00
|
|
|
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
2013-11-24 03:38:28 +01:00
|
|
|
//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
|
2011-10-23 21:04:37 +02:00
|
|
|
|
2011-12-13 00:40:51 +01:00
|
|
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error)
|
2012-11-03 00:39:36 +01:00
|
|
|
//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
|
2011-10-23 21:04:37 +02:00
|
|
|
|
2011-12-13 00:40:51 +01:00
|
|
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
|
2012-11-03 00:39:36 +01:00
|
|
|
//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
|
2011-10-23 21:04:37 +02:00
|
|
|
|
2011-12-13 00:40:51 +01:00
|
|
|
//sys Seek(fd int, offset int64, whence int) (off int64, err error)
|
2012-11-03 00:39:36 +01:00
|
|
|
//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
|
2011-10-23 21:04:37 +02:00
|
|
|
|
2011-12-13 00:40:51 +01:00
|
|
|
//sys Stat(path string, stat *Stat_t) (err error)
|
2012-11-03 00:39:36 +01:00
|
|
|
//stat(path *byte, stat *Stat_t) _C_int
|
2011-10-23 21:04:37 +02:00
|
|
|
|
2011-12-13 00:40:51 +01:00
|
|
|
//sys Truncate(path string, length int64) (err error)
|
2012-11-03 00:39:36 +01:00
|
|
|
//truncate(path *byte, length Offset_t) _C_int
|