]> Cypherpunks repositories - gostls13.git/commit
syscall: allocate 64 bits of "basep" for Getdirentries
authorRob Pike <r@golang.org>
Fri, 17 Jan 2014 21:19:00 +0000 (13:19 -0800)
committerRob Pike <r@golang.org>
Fri, 17 Jan 2014 21:19:00 +0000 (13:19 -0800)
commit451667a67f5b7765bb4d1d5e94e12ea1b18cfe23
tree9dcc45328e79e7fa0503c62ff05d05ddf0c731a7
parent1e67453d93c317d5a30780cc54a53c9d19373fdf
syscall: allocate 64 bits of "basep" for Getdirentries
Recent crashes on 386 Darwin appear to be caused by this system call
smashing the stack. Phenomenology shows that allocating more data
here addresses the probem.
The guess is that since the actual system call is getdirentries64, 64 is
what we should allocate.

Should fix the darwin/386 build.

R=rsc
CC=golang-codereviews
https://golang.org/cl/53840043
src/pkg/syscall/syscall_bsd.go