mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-05 08:37:31 -04:00
unix: add SEEK_* constants on Darwin, FreeBSD, Linux
The Go "os" package already provides bindings for SEEK_CUR, SEEK_SET and SEEK_END. Most operating systems also support SEEK_HOLE and SEEK_DATA, which you can use to skip sparse regions in a file. Let's add bindings, so we can also do this from within Go. Change-Id: If9243b05a8f563b4bce2452aa4bff145d9442cc2 GitHub-Last-Rev: ac8aed2d4aaddc4a28aab657d027f67ba6717e19 GitHub-Pull-Request: golang/sys#112 Reviewed-on: https://go-review.googlesource.com/c/sys/+/328170 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
committed by
Tobias Klauser
parent
665e8c7367
commit
e2b7044e8c
@@ -563,6 +563,7 @@ ccflags="$@"
|
||||
$2 ~ /^KEYCTL_/ ||
|
||||
$2 ~ /^PERF_/ ||
|
||||
$2 ~ /^SECCOMP_MODE_/ ||
|
||||
$2 ~ /^SEEK_/ ||
|
||||
$2 ~ /^SPLICE_/ ||
|
||||
$2 ~ /^SYNC_FILE_RANGE_/ ||
|
||||
$2 !~ /^AUDIT_RECORD_MAGIC/ &&
|
||||
|
||||
Reference in New Issue
Block a user