This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Move glob.c to libc/posix


Can libc/sys/linux/stdlib/glob.c move to libc/posix? The only change I
found necessary to compile glob.c was a stubby collate.h, which can be
overridden by the target.

Cheers,
Shaun

2006-06-02 Shaun Jackman <sjackman@gmail.com>

	* libc/include/collate.h: New file.
	* libc/posix/Makefile.am (GENERAL_SOURCES): Add glob.c.
	* libc/posix/Makefile.in: Regenerate.
	* libc/posix/glob.c: New file.
	* libc/sys/linux/stdlib/Makefile.am (GENERAL_SOURCES): Remove
	glob.c.
	* libc/sys/linux/stdlib/Makefile.in: Regenerate.
	* libc/sys/linux/stdlib/glob.c: Remove file.

--- /dev/null	2006-05-29 10:11:53.893844952 -0600
+++ libc/include/collate.h	2006-06-01 15:50:04.000000000 -0600
@@ -0,0 +1,6 @@
+#ifndef _COLLATE_H_
+#define _COLLATE_H_
+
+#define __collate_load_error 1
+
+#endif
Index: libc/posix/Makefile.am
===================================================================
RCS file: /cvs/src/src/newlib/libc/posix/Makefile.am,v
retrieving revision 1.6
diff -u -r1.6 Makefile.am
--- libc/posix/Makefile.am	1 May 2006 22:01:02 -0000	1.6
+++ libc/posix/Makefile.am	2 Jun 2006 15:50:05 -0000
@@ -5,7 +5,7 @@
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)

GENERAL_SOURCES = \
-	closedir.c creat.c isatty.c \
+	closedir.c creat.c glob.c isatty.c \
	opendir.c readdir.c \
	readdir_r.c rewinddir.c telldir.c

Index: libc/sys/linux/stdlib/Makefile.am
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/linux/stdlib/Makefile.am,v
retrieving revision 1.3
diff -u -r1.3 Makefile.am
--- libc/sys/linux/stdlib/Makefile.am	1 May 2006 22:01:03 -0000	1.3
+++ libc/sys/linux/stdlib/Makefile.am	2 Jun 2006 15:50:21 -0000
@@ -5,7 +5,7 @@
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)

GENERAL_SOURCES = \
-	fnmatch.c glob.c regcomp.c regerror.c regex2.h \
+	fnmatch.c regcomp.c regerror.c regex2.h \
	regexec.c regfree.c collate.h collate.c collcmp.c \
	reallocf.c

Attachment: newlib-glob.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]