diff options
| author | Austin Clements <austin@google.com> | 2019-09-01 14:19:19 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2019-09-04 17:56:17 +0000 |
| commit | 0607cdda6b9f978b268464e9a42630c702dbd833 (patch) | |
| tree | d4cc848f52d648511ec72e6f0fd80cd039aa3a4a /src/runtime | |
| parent | 4af3c17f8cd37288a5bb9bc53e8b88c58f5624d1 (diff) | |
| download | go-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
