projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82a5950
)
syscall: Fix Errstr on systems without strerror_r.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Mon, 31 Oct 2011 21:55:22 +0000
(21:55 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Mon, 31 Oct 2011 21:55:22 +0000
(21:55 +0000)
From-SVN: r180714
libgo/go/syscall/errstr_nor.go
patch
|
blob
|
history
diff --git
a/libgo/go/syscall/errstr_nor.go
b/libgo/go/syscall/errstr_nor.go
index b331d0eb9657274dc401bc68c9e180ebc438b258..2fb61c29adcef3eb3bf85e06ab2da839516126f9 100644
(file)
--- a/
libgo/go/syscall/errstr_nor.go
+++ b/
libgo/go/syscall/errstr_nor.go
@@
-11,7
+11,7
@@
import (
"unsafe"
)
-//sysnb strerror(errnum int)
*byte
+//sysnb strerror(errnum int)
(buf *byte)
//strerror(errnum int) *byte
var errstr_lock sync.Mutex
@@
-19,7
+19,7
@@
var errstr_lock sync.Mutex
func Errstr(errno int) string {
errstr_lock.Lock()
- bp :=
libc_
strerror(errno)
+ bp := strerror(errno)
b := (*[1000]byte)(unsafe.Pointer(bp))
i := 0
for b[i] != 0 {