aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2019-09-01 14:19:19 -0400
committerAustin Clements <austin@google.com>2019-09-04 17:56:17 +0000
commit0607cdda6b9f978b268464e9a42630c702dbd833 (patch)
treed4cc848f52d648511ec72e6f0fd80cd039aa3a4a /src/runtime
parent4af3c17f8cd37288a5bb9bc53e8b88c58f5624d1 (diff)
downloadgo-0607cdda6b9f978b268464e9a42630c702dbd833.tar.xz
syscall: redirect writes to runtime.write in faketime mode
If the faketime build tag is set, this causes syscall.Write for FDs 1 and 2 to redirect to runtime.write, since that's where we'll apply the faketime framing. This is equivalent to what nacl currently does in naclFile.write. We do this on all of the platforms except nacl, which has its own faketime support and we're about to remove, and Windows, which would require other changes to support faketime so we're leaving alone for now. Updates #30439. Change-Id: I138a5ca63577d92d15b5437d037bd3159fa84ee7 Reviewed-on: https://go-review.googlesource.com/c/go/+/192739 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions