summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-06-26 09:10:52 +0000
committerEric Andersen <andersen@codepoet.org>2002-06-26 09:10:52 +0000
commit82ba14bc472e809d2090b97b6a3b9e6bd72760da (patch)
treec1628065029235e1f701c0e8bef2a7239db85227 /libc
parent6cb1c53fa0059ba6200e1e5ab0bc9a97cb25171e (diff)
Several cleanups/fixes from Marshall M. Midden <m4@brecis.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/statfix.c1
-rw-r--r--libc/sysdeps/linux/common/statfix64.c1
-rw-r--r--libc/sysdeps/linux/mips/bsd-setjmp.S2
3 files changed, 3 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/statfix.c b/libc/sysdeps/linux/common/statfix.c
index 3921deb0f..996cf1346 100644
--- a/libc/sysdeps/linux/common/statfix.c
+++ b/libc/sysdeps/linux/common/statfix.c
@@ -28,6 +28,7 @@
/* Convert from the kernel's version of struct stat to libc's version */
void statfix(struct libc_stat *libcstat, struct kernel_stat *kstat)
{
+ memset(libcstat, 0, sizeof(struct libc_stat));
libcstat->st_dev = kstat->st_dev;
libcstat->st_ino = kstat->st_ino;
libcstat->st_mode = kstat->st_mode;
diff --git a/libc/sysdeps/linux/common/statfix64.c b/libc/sysdeps/linux/common/statfix64.c
index 00dafc562..540f350ca 100644
--- a/libc/sysdeps/linux/common/statfix64.c
+++ b/libc/sysdeps/linux/common/statfix64.c
@@ -31,6 +31,7 @@
/* Convert from the kernel's version of struct stat to libc's version */
void statfix64(struct libc_stat64 *libcstat, struct kernel_stat64 *kstat)
{
+ memset(libcstat, 0, sizeof(struct libc_stat64));
libcstat->st_dev = kstat->st_dev;
libcstat->st_ino = kstat->st_ino;
libcstat->st_mode = kstat->st_mode;
diff --git a/libc/sysdeps/linux/mips/bsd-setjmp.S b/libc/sysdeps/linux/mips/bsd-setjmp.S
index 49a904d29..51af9c891 100644
--- a/libc/sysdeps/linux/mips/bsd-setjmp.S
+++ b/libc/sysdeps/linux/mips/bsd-setjmp.S
@@ -34,8 +34,8 @@
.type setjmp,@function
setjmp:
- .set noreorder
#ifdef __PIC__
+ .set noreorder
.cpload t9
.set reorder
la t9, __sigsetjmp