summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-03-06 02:09:30 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:48:48 -0700
commit5f335ca4afaa189799225f856f3af8b3d9fd2e1c (patch)
tree2a5411ce12f11c1fcbfdd2875db299259230262f
parent30c6b4c9a22edc76b2e8335edbdf157dd51241eb (diff)
[PATCH] klibc_fixups: remove no longer needed stuff
-rw-r--r--Makefile2
-rw-r--r--klibc_fixups/klibc_fixups.h24
-rw-r--r--libsysfs/sysfs_dir.c2
3 files changed, 1 insertions, 27 deletions
diff --git a/Makefile b/Makefile
index ac60ade52a..8184620a2d 100644
--- a/Makefile
+++ b/Makefile
@@ -191,7 +191,6 @@ ifeq ($(strip $(USE_KLIBC)),true)
$(OPTFLAGS) $(REQFLAGS) \
-D__KLIBC__ -fno-builtin-printf \
-I$(KLIBC_FIXUPS_DIR) \
- -include $(KLIBC_FIXUPS_DIR)/klibc_fixups.h \
-I$(INCLUDE_DIR) \
-I$(INCLUDE_DIR)/arch/$(ARCH) \
-I$(INCLUDE_DIR)/bits$(BITSIZE) \
@@ -201,7 +200,6 @@ ifeq ($(strip $(USE_KLIBC)),true)
LDFLAGS = --static --nostdlib -nostartfiles -nodefaultlibs
HEADERS += \
- klibc_fixups/klibc_fixups.h \
klibc_fixups/pwd.h
KLIBC_FIXUP_OBJS = \
diff --git a/klibc_fixups/klibc_fixups.h b/klibc_fixups/klibc_fixups.h
deleted file mode 100644
index 13011b6888..0000000000
--- a/klibc_fixups/klibc_fixups.h
+++ /dev/null
@@ -1,24 +0,0 @@
-#ifdef __KLIBC__
-
-#ifndef _KLIBC_FIXUPS_H
-#define _KLIBC_FIXUPS_H
-
-#define _KLIBC_HAS_ARCH_SIG_ATOMIC_T
-#include <unistd.h>
-
-#define _SC_PAGESIZE 0x66
-static inline long int sysconf(int name)
-{
- if (name == _SC_PAGESIZE)
- return getpagesize();
-
- return -1;
-}
-
-struct exit_status {
- short int e_termination; /* process termination status */
- short int e_exit; /* process exit status */
-};
-
-#endif /* KLIBC_FIXUPS_H */
-#endif /* __KLIBC__ */
diff --git a/libsysfs/sysfs_dir.c b/libsysfs/sysfs_dir.c
index c86617934b..63eec7bb9a 100644
--- a/libsysfs/sysfs_dir.c
+++ b/libsysfs/sysfs_dir.c
@@ -150,7 +150,7 @@ int sysfs_read_attribute(struct sysfs_attribute *sysattr)
errno = EACCES;
return -1;
}
- pgsize = sysconf(_SC_PAGESIZE);
+ pgsize = getpagesize();
fbuf = (char *)calloc(1, pgsize+1);
if (!fbuf) {
dprintf("calloc failed\n");