Subject: CVS commit: src/lib/libc
To: None <source-changes@NetBSD.org>
From: Andrew Doran <ad@netbsd.org>
List: source-changes
Date: 11/13/2007 15:21:21
Module Name:	src
Committed By:	ad
Date:		Tue Nov 13 15:21:21 UTC 2007

Modified Files:
	src/lib/libc: Makefile
	src/lib/libc/sys: Makefile.inc
	src/lib/libc/thread-stub: thread-stub.c
Added Files:
	src/lib/libc/misc: Makefile.inc initfini.c stack_protector.c
Removed Files:
	src/lib/libc/sys: stack_protector.c

Log Message:
- stack_protector.c doesn't really belong under sys/. Add a new directory
  for misc support routines and put it there.
- Add a libc constructor. Use this to initialize threading and the
  stack protector stuff. libpthread cannot be initialized safely using
  its own constructor because libc and libpthread are deeply intertwined.
  PR bin/37347


To generate a diff of this commit:
cvs rdiff -r1.131 -r1.132 src/lib/libc/Makefile
cvs rdiff -r0 -r1.1 src/lib/libc/misc/Makefile.inc \
    src/lib/libc/misc/initfini.c src/lib/libc/misc/stack_protector.c
cvs rdiff -r1.179 -r1.180 src/lib/libc/sys/Makefile.inc
cvs rdiff -r1.5 -r0 src/lib/libc/sys/stack_protector.c
cvs rdiff -r1.14 -r1.15 src/lib/libc/thread-stub/thread-stub.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.