diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-10-31 18:20:21 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-10-31 18:20:21 +0000 |
commit | 6737908f74ff566748864548cf35bb1da8e64af6 (patch) | |
tree | 6eeafda4548f49d960e1b597c880a810a08a66f0 /libc/misc | |
parent | c734e7ca57f520e55236b21eaef16ac40099a378 (diff) |
Ok, this commit is _huge_ and its gonna change the world. I've
been working on a new config system on and off for about 6 months
now, but I've never been fully satisfied. Well, I'm finally am
happy with the new config system, so here it is. This completely
removes the old uClibc configuration system, and replaces it with
an entirely new system based on LinuxKernelConf, from
http://www.xs4all.nl/~zippel/lc/
As it turns out, Linus has just merged LinuxKernelConf into Linux
2.5.45, so it looks like I made the right choice.
I have thus far updated only x86. I'll be updating the other
architectures shortly.
-Erik
Diffstat (limited to 'libc/misc')
-rw-r--r-- | libc/misc/Makefile | 6 | ||||
-rw-r--r-- | libc/misc/dirent/alphasort64.c | 4 | ||||
-rw-r--r-- | libc/misc/dirent/readdir64.c | 4 | ||||
-rw-r--r-- | libc/misc/dirent/readdir64_r.c | 4 | ||||
-rw-r--r-- | libc/misc/dirent/scandir64.c | 4 | ||||
-rw-r--r-- | libc/misc/glob/glob64.c | 2 | ||||
-rw-r--r-- | libc/misc/internals/Makefile | 2 | ||||
-rw-r--r-- | libc/misc/internals/tempname.c | 2 | ||||
-rw-r--r-- | libc/misc/locale/Makefile | 4 | ||||
-rw-r--r-- | libc/misc/statfs/Makefile | 2 | ||||
-rw-r--r-- | libc/misc/statfs/fstatfs64.c | 4 | ||||
-rw-r--r-- | libc/misc/statfs/fstatvfs64.c | 2 | ||||
-rw-r--r-- | libc/misc/statfs/statfs64.c | 2 | ||||
-rw-r--r-- | libc/misc/statfs/statvfs64.c | 2 | ||||
-rw-r--r-- | libc/misc/time/Makefile | 2 |
15 files changed, 23 insertions, 23 deletions
diff --git a/libc/misc/Makefile b/libc/misc/Makefile index 8278a5767..2a74a4e54 100644 --- a/libc/misc/Makefile +++ b/libc/misc/Makefile @@ -28,13 +28,13 @@ include $(TOPDIR)Rules.mak DIRS = assert ctype dirent file fnmatch glob internals lsearch \ mntent syslog time utmp tsearch locale sysvipc statfs \ error insremque ttyent gnu -ifeq ($(strip $(INCLUDE_REGEX)),true) +ifeq ($(strip $(UCLIBC_HAS_REGEX)),y) DIRS += regex endif -ifeq ($(strip $(INCLUDE_THREADS)),true) +ifeq ($(strip $(UCLIBC_HAS_THREADS)),y) DIRS += pthread endif -ifeq ($(strip $(HAS_WCHAR)),true) +ifeq ($(strip $(UCLIBC_HAS_WCHAR)),y) DIRS += wctype wchar endif diff --git a/libc/misc/dirent/alphasort64.c b/libc/misc/dirent/alphasort64.c index e98d7138a..bcae8108f 100644 --- a/libc/misc/dirent/alphasort64.c +++ b/libc/misc/dirent/alphasort64.c @@ -1,5 +1,5 @@ #include <features.h> -#ifdef __UCLIBC_HAVE_LFS__ +#ifdef __UCLIBC_HAS_LFS__ #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64 #undef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 @@ -22,5 +22,5 @@ int alphasort64(const void * a, const void * b) return strcmp ((*(const struct dirent64 **) a)->d_name, (*(const struct dirent64 **) b)->d_name); } -#endif /* __UCLIBC_HAVE_LFS__ */ +#endif /* __UCLIBC_HAS_LFS__ */ diff --git a/libc/misc/dirent/readdir64.c b/libc/misc/dirent/readdir64.c index b845b8139..d30a4398f 100644 --- a/libc/misc/dirent/readdir64.c +++ b/libc/misc/dirent/readdir64.c @@ -1,5 +1,5 @@ #include <features.h> -#ifdef __UCLIBC_HAVE_LFS__ +#ifdef __UCLIBC_HAS_LFS__ #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64 #undef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 @@ -68,4 +68,4 @@ all_done: return de; } -#endif /* __UCLIBC_HAVE_LFS__ */ +#endif /* __UCLIBC_HAS_LFS__ */ diff --git a/libc/misc/dirent/readdir64_r.c b/libc/misc/dirent/readdir64_r.c index 6735db8d8..f4aeb7869 100644 --- a/libc/misc/dirent/readdir64_r.c +++ b/libc/misc/dirent/readdir64_r.c @@ -1,5 +1,5 @@ #include <features.h> -#ifdef __UCLIBC_HAVE_LFS__ +#ifdef __UCLIBC_HAS_LFS__ #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64 #undef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 @@ -75,5 +75,5 @@ all_done: #endif return((de != NULL)? 0 : ret); } -#endif /* __UCLIBC_HAVE_LFS__ */ +#endif /* __UCLIBC_HAS_LFS__ */ diff --git a/libc/misc/dirent/scandir64.c b/libc/misc/dirent/scandir64.c index 476193c94..d7543a61e 100644 --- a/libc/misc/dirent/scandir64.c +++ b/libc/misc/dirent/scandir64.c @@ -24,7 +24,7 @@ */ #include <features.h> -#ifdef __UCLIBC_HAVE_LFS__ +#ifdef __UCLIBC_HAS_LFS__ #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64 #undef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 @@ -99,5 +99,5 @@ int scandir64(const char *dir, struct dirent64 ***namelist, return pos; } -#endif /* __UCLIBC_HAVE_LFS__ */ +#endif /* __UCLIBC_HAS_LFS__ */ diff --git a/libc/misc/glob/glob64.c b/libc/misc/glob/glob64.c index 56d48444d..c053de4f0 100644 --- a/libc/misc/glob/glob64.c +++ b/libc/misc/glob/glob64.c @@ -1,6 +1,6 @@ #include <features.h> -#ifdef __UCLIBC_HAVE_LFS__ +#ifdef __UCLIBC_HAS_LFS__ #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64 #undef _FILE_OFFSET_BITS diff --git a/libc/misc/internals/Makefile b/libc/misc/internals/Makefile index a33afef60..1e772ce60 100644 --- a/libc/misc/internals/Makefile +++ b/libc/misc/internals/Makefile @@ -43,7 +43,7 @@ ar-target: $(OBJS) interp.c: Makefile echo "/* Force shared libraries to know about the correct library loader */" > interp.c echo "#include <features.h>" >> interp.c - echo "#ifdef HAVE_ELF" >> interp.c + echo "#ifdef __HAVE_ELF__" >> interp.c echo "const char __dl_ldso__[] __attribute__ ((section " \ "(\".interp\"))) =\""$(DYNAMIC_LINKER)"\";" >> interp.c echo "#endif" >> interp.c diff --git a/libc/misc/internals/tempname.c b/libc/misc/internals/tempname.c index 31b16c18a..236a62e85 100644 --- a/libc/misc/internals/tempname.c +++ b/libc/misc/internals/tempname.c @@ -189,7 +189,7 @@ int __gen_tempname (char *tmpl, int kind) case __GT_FILE: fd = open (tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); break; -#if defined __UCLIBC_HAVE_LFS__ +#if defined __UCLIBC_HAS_LFS__ case __GT_BIGFILE: fd = open64 (tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); break; diff --git a/libc/misc/locale/Makefile b/libc/misc/locale/Makefile index 881b0c0e5..29c8cd5a0 100644 --- a/libc/misc/locale/Makefile +++ b/libc/misc/locale/Makefile @@ -29,7 +29,7 @@ MOBJ= setlocale.o localeconv.o _locale_init.o nl_langinfo.o OBJS= $(MOBJ) -ifeq ($(HAS_LOCALE),true) +ifeq ($(UCLIBC_HAS_LOCALE),y) OBJS += locale_data.o endif @@ -47,7 +47,7 @@ $(MOBJ): $(MSRC) $(OBJS): Makefile data: -ifeq ($(HAS_LOCALE),true) +ifeq ($(UCLIBC_HAS_LOCALE),y) make -C $(TOPDIR)/extra/locale endif diff --git a/libc/misc/statfs/Makefile b/libc/misc/statfs/Makefile index e8fcf21e4..89eb7fd89 100644 --- a/libc/misc/statfs/Makefile +++ b/libc/misc/statfs/Makefile @@ -22,7 +22,7 @@ TOPDIR=../../../ include $(TOPDIR)Rules.mak -ifeq ($(strip $(DOLFS)),true) +ifeq ($(strip $(UCLIBC_HAS_LFS)),y) CSRC = fstatfs64.c statfs64.c statvfs.c statvfs64.c fstatvfs.c fstatvfs64.c else CSRC = statvfs.c fstatvfs.c diff --git a/libc/misc/statfs/fstatfs64.c b/libc/misc/statfs/fstatfs64.c index acc25d2e0..1040e1fe1 100644 --- a/libc/misc/statfs/fstatfs64.c +++ b/libc/misc/statfs/fstatfs64.c @@ -19,7 +19,7 @@ #include <features.h> -#ifdef __UCLIBC_HAVE_LFS__ +#ifdef __UCLIBC_HAS_LFS__ #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64 #undef _FILE_OFFSET_BITS @@ -62,5 +62,5 @@ int fstatfs64 (int fd, struct statfs64 *buf) return 0; } -#endif /* __UCLIBC_HAVE_LFS__ */ +#endif /* __UCLIBC_HAS_LFS__ */ diff --git a/libc/misc/statfs/fstatvfs64.c b/libc/misc/statfs/fstatvfs64.c index 84f68ae9b..ed4b63234 100644 --- a/libc/misc/statfs/fstatvfs64.c +++ b/libc/misc/statfs/fstatvfs64.c @@ -19,7 +19,7 @@ #include <features.h> -#ifdef __UCLIBC_HAVE_LFS__ +#ifdef __UCLIBC_HAS_LFS__ #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64 #undef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 diff --git a/libc/misc/statfs/statfs64.c b/libc/misc/statfs/statfs64.c index b237624c3..0b954c675 100644 --- a/libc/misc/statfs/statfs64.c +++ b/libc/misc/statfs/statfs64.c @@ -36,7 +36,7 @@ #include <stddef.h> #include <sys/statfs.h> -#if defined __UCLIBC_HAVE_LFS__ +#if defined __UCLIBC_HAS_LFS__ /* Return information about the filesystem on which FILE resides. */ int statfs64 (const char *file, struct statfs64 *buf) diff --git a/libc/misc/statfs/statvfs64.c b/libc/misc/statfs/statvfs64.c index 1e3ec0a36..78d1a4c3f 100644 --- a/libc/misc/statfs/statvfs64.c +++ b/libc/misc/statfs/statvfs64.c @@ -19,7 +19,7 @@ #include <features.h> -#ifdef __UCLIBC_HAVE_LFS__ +#ifdef __UCLIBC_HAS_LFS__ #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64 #undef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 diff --git a/libc/misc/time/Makefile b/libc/misc/time/Makefile index 841c19600..b187e5555 100644 --- a/libc/misc/time/Makefile +++ b/libc/misc/time/Makefile @@ -29,7 +29,7 @@ MOBJ= asctime.o asctime_r.o clock.o ctime.o ctime_r.o gmtime.o gmtime_r.o \ localtime.o localtime_r.o mktime.o strftime.o strptime.o tzset.o \ _time_t2tm.o __time_tm.o _time_mktime.o -ifeq ($(HAS_FLOATING_POINT),true) +ifeq ($(UCLIBC_HAS_FLOATS),y) MOBJ += difftime.o endif |