glibc/sysdeps/unix/sysv
Greg McGary 2ed5fd9a2a update
2000-07-26  Greg McGary  <greg@mcgary.org>

	* Makeconfig (+link-bounded, link-libc-bounded,
	link-extra-libs-bounded): New variables.
	(built-program-cmd): Omit $(run-program-prefix) for static BP tests.
	* Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
	* Rules (tests-bp.out): New variable.
	(tests): Conditionally add BP tests.
	(binaries-bounded): Add variable and associated rule.
	* csu/Makefile [build-bounded] (extra-objs, install-lib):
	Move conditional stuff after place where condition is defined.

	* malloc/malloc.c (bp-checks.h): Add #include.
	(mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
	(_bin_at): Add unbounded version of bin_at.
	(IAV, chunk_alloc): Use unbounded _bin_at.
	(mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
	chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
	Wrap BOUNDED_N around return value.
	(chunk_realloc): Adjust oldsize once.

	* sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
	(__ubp_memchr): Add correct decl.
	(_CHECK_STRING): Use __ubp_memchr.
	* sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
	New alias for unbounded-pointer __memchr.
	* sysdeps/i386/memchr.S: Likewise.
	* sysdeps/ia64/memchr.S: Likewise.
	* sysdeps/m68k/memchr.S: Likewise.
	* sysdeps/sparc/sparc32/memchr.S: Likewise.
	* sysdeps/sparc/sparc64/memchr.S: Likewise.
	* sysdeps/vax/memchr.s: Likewise.

	* sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
	(SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
	(strtok): Don't bother to write into SAVE_PTR when returning NULL.
	* sysdeps/i386/i686/strtok.S: Likewise.
	* sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
	RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.

	* sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
	* sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.

	* sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
	bounds of copy_result to mount_proc.
2000-07-26 18:21:25 +00:00
..
aix Update. 2000-06-22 17:59:07 +00:00
bits Update. 2000-06-22 17:59:07 +00:00
hpux Update. 2000-06-22 17:59:07 +00:00
i386 Update. 1997-11-12 00:06:02 +00:00
irix4 Update. 2000-06-22 17:59:07 +00:00
isc2.2 Thu Jan 18 00:32:43 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu> 1996-01-19 00:42:21 +00:00
linux update 2000-07-26 18:21:25 +00:00
minix/bits Update. 1997-11-26 04:23:08 +00:00
sco3.2 Update. 1997-06-21 02:59:26 +00:00
sco3.2.4 Update. 1997-11-26 04:23:08 +00:00
sysv4 Update. 2000-06-22 17:59:07 +00:00
direct.h initial import 1995-02-18 01:27:10 +00:00
Dist Update. 1997-03-19 05:47:56 +00:00
getdents.c update from main archive 970121 1997-01-23 04:24:20 +00:00
gethostname.c Update. 2000-04-02 08:05:36 +00:00
Makefile update from main archive 970121 1997-01-23 04:24:20 +00:00
setrlimit.c Update. 1998-06-13 00:49:55 +00:00
settimeofday.c Update. 1997-06-23 21:55:26 +00:00
sigaction.c Update. 1997-06-23 21:55:26 +00:00
syscalls.list * sysdeps/unix/make-syscalls.sh: Handle new arg signature 2000-07-17 22:28:59 +00:00
sysd-stdio.c Update. 1997-05-25 01:12:55 +00:00
sysv_termio.h Update. 1997-06-23 21:55:26 +00:00
tcdrain.c Update. 1997-06-23 21:55:26 +00:00
tcflow.c Update. 1997-06-23 21:55:26 +00:00
tcflush.c Update. 1997-06-23 21:55:26 +00:00
tcgetattr.c Update. 1997-06-23 21:55:26 +00:00
tcgetpgrp.c Update. 1997-05-26 23:01:17 +00:00
tcsendbrk.c Update. 1997-06-23 21:55:26 +00:00
tcsetattr.c Update. 1997-06-23 21:55:26 +00:00
tcsetpgrp.c Update. 1997-05-26 23:01:17 +00:00
Versions Update. 1998-07-02 22:51:40 +00:00