| // Copyright 2014 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| //go:linkname os_sigpipe os.sigpipe |
| throw("too many writes on closed pipe") |
| throw("unexpected signal during runtime execution") |
| case _EXCEPTION_ACCESS_VIOLATION: |
| if g.sigcode1 < 0x1000 || g.paniconfault { |
| print("unexpected fault address ", hex(g.sigcode1), "\n") |
| case _EXCEPTION_INT_DIVIDE_BY_ZERO: |
| case _EXCEPTION_INT_OVERFLOW: |
| case _EXCEPTION_FLT_DENORMAL_OPERAND, |
| _EXCEPTION_FLT_DIVIDE_BY_ZERO, |
| _EXCEPTION_FLT_INEXACT_RESULT, |
| _EXCEPTION_FLT_UNDERFLOW: |
| // Stubs so tests can link correctly. These should never be called. |
| func open(name *byte, mode, perm int32) int32 { |
| func close(fd int32) int32 { |
| func read(fd int32, p unsafe.Pointer, n int32) int32 { |