aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/memcmp.c7
-rw-r--r--sysdeps/generic/strtok_r.c1
-rw-r--r--sysdeps/unix/sysv/linux/fstatvfs.c10
3 files changed, 12 insertions, 6 deletions
diff --git a/sysdeps/generic/memcmp.c b/sysdeps/generic/memcmp.c
index 213ccc07de..033ac19504 100644
--- a/sysdeps/generic/memcmp.c
+++ b/sysdeps/generic/memcmp.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1993, 1995, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1993, 1995, 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Torbjorn Granlund (tege@sics.se).
@@ -47,6 +47,11 @@
#ifdef _LIBC
# include <memcopy.h>
+# include <endian.h>
+
+# if __BYTE_ORDER == __BIG_ENDIAN
+# define WORDS_BIGENDIAN
+# endif
#else /* Not in the GNU C library. */
diff --git a/sysdeps/generic/strtok_r.c b/sysdeps/generic/strtok_r.c
index 26d7da5176..3105e6a568 100644
--- a/sysdeps/generic/strtok_r.c
+++ b/sysdeps/generic/strtok_r.c
@@ -20,6 +20,7 @@
#include <string.h>
#undef strtok_r
+#undef __strtok_r
/* Parse S into tokens separated by characters in DELIM.
If S is NULL, the saved pointer in SAVE_PTR is used as
diff --git a/sysdeps/unix/sysv/linux/fstatvfs.c b/sysdeps/unix/sysv/linux/fstatvfs.c
index 53edb6be3a..ef28bc693b 100644
--- a/sysdeps/unix/sysv/linux/fstatvfs.c
+++ b/sysdeps/unix/sysv/linux/fstatvfs.c
@@ -27,8 +27,8 @@
#include <sys/statvfs.h>
/* These definitions come from the kernel headers. But we cannot
- include the headers here because of type clashes. If there will
- become new filesystem types available we have to add the
+ include the headers here because of type clashes. If new
+ filesystem types will become available we have to add the
appropriate definitions here.*/
#define ADFS_SUPER_MAGIC 0xadf5
#define AFFS_SUPER_MAGIC 0xadff
@@ -61,7 +61,7 @@ fstatvfs (int fd, struct statvfs *buf)
if (__fstatfs (fd, &fsbuf) < 0)
return -1;
- /* Now fill in the fields me have information for. */
+ /* Now fill in the fields we have information for. */
buf->f_bsize = fsbuf.f_bsize;
buf->f_blocks = fsbuf.f_blocks;
buf->f_bfree = fsbuf.f_bfree;
@@ -108,8 +108,8 @@ fstatvfs (int fd, struct statvfs *buf)
/* XXX I have no idea how to compute f_favail. Any idea??? */
buf->f_favail = buf->f_ffree;
- /* Determining the flags is tricky. We have to read /proc/mount or
- the /etc/matb file and search for the entry which matches the given
+ /* Determining the flags is tricky. We have to read /proc/mounts or
+ the /etc/mtab file and search for the entry which matches the given
file. The way we can test for matching filesystem is using the
device number. */
buf->f_flag = 0;