mirror of
https://github.com/golang/go
synced 2024-11-22 04:04:40 -07:00
parent
5107041df7
commit
bf73ca88a6
@ -56,6 +56,11 @@ func ParseDirent(buf []byte, max int, names []string) (consumed int, count int,
|
|||||||
return origlen - len(buf), count, names
|
return origlen - len(buf), count, names
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, errno int) {
|
||||||
|
return -1, ENOSYS
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Wrapped
|
* Wrapped
|
||||||
*/
|
*/
|
||||||
|
@ -56,6 +56,11 @@ func ParseDirent(buf []byte, max int, names []string) (consumed int, count int,
|
|||||||
return origlen - len(buf), count, names
|
return origlen - len(buf), count, names
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, errno int) {
|
||||||
|
return -1, ENOSYS
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
|
@ -957,7 +957,6 @@ func Munmap(b []byte) (errno int) {
|
|||||||
// Semget
|
// Semget
|
||||||
// Semop
|
// Semop
|
||||||
// Semtimedop
|
// Semtimedop
|
||||||
// Sendfile
|
|
||||||
// SetMempolicy
|
// SetMempolicy
|
||||||
// SetRobustList
|
// SetRobustList
|
||||||
// SetThreadArea
|
// SetThreadArea
|
||||||
|
@ -41,6 +41,7 @@ func NsecToTimeval(nsec int64) (tv Timeval) {
|
|||||||
//sys Lstat(path string, stat *Stat_t) (errno int) = SYS_LSTAT64
|
//sys Lstat(path string, stat *Stat_t) (errno int) = SYS_LSTAT64
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, errno int) = SYS_PREAD64
|
//sys Pread(fd int, p []byte, offset int64) (n int, errno int) = SYS_PREAD64
|
||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, errno int) = SYS_PWRITE64
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, errno int) = SYS_PWRITE64
|
||||||
|
//sys Sendfile(outfd int, infd int, offset *int64, count int) (written int, errno int) = SYS_SENDFILE64
|
||||||
//sys Setfsgid(gid int) (errno int) = SYS_SETFSGID32
|
//sys Setfsgid(gid int) (errno int) = SYS_SETFSGID32
|
||||||
//sys Setfsuid(uid int) (errno int) = SYS_SETFSUID32
|
//sys Setfsuid(uid int) (errno int) = SYS_SETFSUID32
|
||||||
//sysnb Setgid(gid int) (errno int) = SYS_SETGID32
|
//sysnb Setgid(gid int) (errno int) = SYS_SETGID32
|
||||||
|
@ -22,6 +22,7 @@ package syscall
|
|||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, errno int) = SYS_PWRITE64
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, errno int) = SYS_PWRITE64
|
||||||
//sys Seek(fd int, offset int64, whence int) (off int64, errno int) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (off int64, errno int) = SYS_LSEEK
|
||||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, errno int)
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, errno int)
|
||||||
|
//sys Sendfile(outfd int, infd int, offset *int64, count int) (written int, errno int)
|
||||||
//sys Setfsgid(gid int) (errno int)
|
//sys Setfsgid(gid int) (errno int)
|
||||||
//sys Setfsuid(uid int) (errno int)
|
//sys Setfsuid(uid int) (errno int)
|
||||||
//sysnb Setgid(gid int) (errno int)
|
//sysnb Setgid(gid int) (errno int)
|
||||||
|
@ -92,6 +92,7 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, errno int)
|
|||||||
//sys Lchown(path string, uid int, gid int) (errno int)
|
//sys Lchown(path string, uid int, gid int) (errno int)
|
||||||
//sys Listen(s int, n int) (errno int)
|
//sys Listen(s int, n int) (errno int)
|
||||||
//sys Lstat(path string, stat *Stat_t) (errno int) = SYS_LSTAT64
|
//sys Lstat(path string, stat *Stat_t) (errno int) = SYS_LSTAT64
|
||||||
|
//sys Sendfile(outfd int, infd int, offset *int64, count int) (written int, errno int) = SYS_SENDFILE64
|
||||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, errno int) = SYS__NEWSELECT
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, errno int) = SYS__NEWSELECT
|
||||||
//sys Setfsgid(gid int) (errno int)
|
//sys Setfsgid(gid int) (errno int)
|
||||||
//sys Setfsuid(uid int) (errno int)
|
//sys Setfsuid(uid int) (errno int)
|
||||||
|
@ -327,6 +327,11 @@ func Getgroups() (gids []int, err Error) {
|
|||||||
return make([]int, 0), nil
|
return make([]int, 0), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, errno int) {
|
||||||
|
return -1, ENOSYS
|
||||||
|
}
|
||||||
|
|
||||||
//sys Dup(oldfd int, newfd int) (fd int, err Error)
|
//sys Dup(oldfd int, newfd int) (fd int, err Error)
|
||||||
//sys Open(path string, mode int) (fd int, err Error)
|
//sys Open(path string, mode int) (fd int, err Error)
|
||||||
//sys Create(path string, mode int, perm uint32) (fd int, err Error)
|
//sys Create(path string, mode int, perm uint32) (fd int, err Error)
|
||||||
|
@ -102,6 +102,11 @@ func getSysProcAddr(m uint32, pname string) uintptr {
|
|||||||
// Implemented in ../runtime/windows/syscall.cgo
|
// Implemented in ../runtime/windows/syscall.cgo
|
||||||
func NewCallback(fn interface{}) uintptr
|
func NewCallback(fn interface{}) uintptr
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, errno int) {
|
||||||
|
return -1, ENOSYS
|
||||||
|
}
|
||||||
|
|
||||||
// windows api calls
|
// windows api calls
|
||||||
|
|
||||||
//sys GetLastError() (lasterrno int)
|
//sys GetLastError() (lasterrno int)
|
||||||
|
@ -971,6 +971,15 @@ func Pwrite(fd int, p []byte, offset int64) (n int, errno int) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, errno int) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
|
||||||
|
written = int(r0)
|
||||||
|
errno = int(e1)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setfsgid(gid int) (errno int) {
|
func Setfsgid(gid int) (errno int) {
|
||||||
_, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0)
|
_, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0)
|
||||||
errno = int(e1)
|
errno = int(e1)
|
||||||
|
@ -1005,6 +1005,15 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, errno int) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
|
||||||
|
written = int(r0)
|
||||||
|
errno = int(e1)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Setfsgid(gid int) (errno int) {
|
func Setfsgid(gid int) (errno int) {
|
||||||
_, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
|
_, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
|
||||||
errno = int(e1)
|
errno = int(e1)
|
||||||
|
@ -1070,6 +1070,15 @@ func Lstat(path string, stat *Stat_t) (errno int) {
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, errno int) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
|
||||||
|
written = int(r0)
|
||||||
|
errno = int(e1)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, errno int) {
|
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, errno int) {
|
||||||
r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
|
r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
|
Loading…
Reference in New Issue
Block a user