glibc/sysdeps/unix
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
..
alpha
arm
bsd Update. 2000-07-15 21:56:03 +00:00
common * sysdeps/unix/make-syscalls.sh: Handle new arg signature 2000-07-17 22:28:59 +00:00
i386 * sysdeps/i386/bp-asm.h (POP_ERRNO_LOCATION_RETURN): Fold insns. 2000-06-27 01:52:26 +00:00
inet * sysdeps/unix/make-syscalls.sh: Handle new arg signature 2000-07-17 22:28:59 +00:00
mips 2000-04-21 Andreas Jaeger <aj@suse.de> 2000-04-21 22:03:39 +00:00
mman * sysdeps/unix/make-syscalls.sh: Handle new arg signature 2000-07-17 22:28:59 +00:00
powerpc
sh Update. 2000-06-12 20:50:37 +00:00
sparc
sysv update 2000-07-26 18:21:25 +00:00
_exit.S
alarm.c
clock_gettime.c Update. 2000-04-12 20:53:19 +00:00
clock_nanosleep.c (clock_nanosleep): Add one more __builtin_expect. 2000-06-26 19:26:07 +00:00
clock_settime.c Update. 2000-04-10 15:30:06 +00:00
closedir.c
configure
configure.in
confstr.h
dirfd.c
dirstream.h
Dist
errnos-tmpl.c
errnos.awk
execve.S
fork.S
fxstat.c * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt): 2000-07-07 02:19:06 +00:00
getdents.c
getegid.S
geteuid.S
getlogin.c
getlogin_r.c
getpagesize.c
getppid.S
grantpt.c
Implies
ioctls-tmpl.c
ioctls.awk
make-syscalls.sh * sysdeps/unix/make-syscalls.sh: Handle new arg signature 2000-07-17 22:28:59 +00:00
make_errlist.c
Makefile Update. 1999-12-01 23:16:28 +00:00
mk-local_lim.c
mkdir.c
mkfifo.c
nice.c
opendir.c
pipestream.c
readdir.c
readdir_r.c
rewinddir.c
rmdir.c
s-proto.S
seekdir.c
siglist.c
snarf-ioctls
start.c Update. 2000-02-28 21:16:38 +00:00
stime.c
Subdirs
syscall.S
syscalls.list * sysdeps/unix/make-syscalls.sh: Handle new arg signature 2000-07-17 22:28:59 +00:00
sysdep.h
system.c
telldir.c
time.c
utime.c
xmknod.c
xstat.c * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt): 2000-07-07 02:19:06 +00:00