mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-30 13:56:45 -04:00
unix: unify definition of func fcntl
For linux and *bsd, implement func fcntl in fcntl.go instead of generating it. Implement it using fcntl64Syscall, so SYS_FCNTL64 is used on 32-bit linux. For aix, darwin and solaris continue generate func fcntl as before. Change-Id: I3750b88d1ee5573daaee2b75c369f723fde8834a Reviewed-on: https://go-review.googlesource.com/c/sys/+/212337 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
committed by
Tobias Klauser
parent
0732a99047
commit
abf886d6f5
@@ -1575,7 +1575,6 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
||||
//sys Fchdir(fd int) (err error)
|
||||
//sys Fchmod(fd int, mode uint32) (err error)
|
||||
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||
//sys fcntl(fd int, cmd int, arg int) (val int, err error)
|
||||
//sys Fdatasync(fd int) (err error)
|
||||
//sys Fgetxattr(fd int, attr string, dest []byte) (sz int, err error)
|
||||
//sys FinitModule(fd int, params string, flags int) (err error)
|
||||
|
||||
Reference in New Issue
Block a user