In article <tkrr57yc9uf....@gco-w12f-177-176.sm.sony.co.jp>, <tsugutomo.en...@jp.sony.com> wrote: >Christos Zoulas <chris...@netbsd.org> writes: > >> Module Name: src >> Committed By: christos >> Date: Fri May 13 23:11:00 UTC 2011 >> >> Modified Files: >> src/lib/libc/stdlib: jemalloc.c malloc.c >> >> Log Message: >> don't let readlink trash errno.; >> >> >> To generate a diff of this commit: >> cvs rdiff -u -r1.22 -r1.23 src/lib/libc/stdlib/jemalloc.c >> cvs rdiff -u -r1.52 -r1.53 src/lib/libc/stdlib/malloc.c > >- Is the existing guard in malloc_init() of malloc.c insufficient?
No that works; I undid it. >- In the malloc_init_hard() of jemalloc.c, there are another calls may >set errno. Especially, the code explicitly handles an error from >sysctl(3). I widened the scope, thanks. christos