summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/ctype/ctype.c1
-rw-r--r--libc/misc/error/err.c1
-rw-r--r--libc/misc/file/lockf64.c2
-rw-r--r--libc/misc/fnmatch/fnmatch.c5
-rw-r--r--libc/misc/fnmatch/fnmatch_old.c5
-rw-r--r--libc/misc/ftw/ftw.c1
-rw-r--r--libc/misc/glob/glob.c1
-rw-r--r--libc/misc/glob/glob64.c1
-rw-r--r--libc/misc/locale/locale.c2
-rw-r--r--libc/misc/pthread/no-tsd.c1
-rw-r--r--libc/misc/pthread/weaks.c1
-rw-r--r--libc/misc/regex/regex.c1
-rw-r--r--libc/misc/regex/regex_old.c4
-rw-r--r--libc/misc/search/hsearch.c4
-rw-r--r--libc/misc/search/hsearch_r.c4
-rw-r--r--libc/misc/search/insremque.c4
-rw-r--r--libc/misc/search/tsearch.c1
-rw-r--r--libc/misc/statfs/fstatvfs.c2
-rw-r--r--libc/misc/statfs/fstatvfs64.c1
-rw-r--r--libc/misc/statfs/statvfs.c2
-rw-r--r--libc/misc/statfs/statvfs64.c1
-rw-r--r--libc/misc/syslog/syslog.c1
-rw-r--r--libc/misc/time/time.c1
-rw-r--r--libc/misc/ttyent/getttyent.c1
-rw-r--r--libc/misc/wchar/wchar.c1
-rw-r--r--libc/misc/wchar/wstdio.c1
-rw-r--r--libc/misc/wctype/wctype.c1
-rw-r--r--libc/misc/wordexp/wordexp.c1
28 files changed, 0 insertions, 52 deletions
diff --git a/libc/misc/ctype/ctype.c b/libc/misc/ctype/ctype.c
index c6195d89f..70a014438 100644
--- a/libc/misc/ctype/ctype.c
+++ b/libc/misc/ctype/ctype.c
@@ -26,7 +26,6 @@
*
* ATTENTION! ATTENTION! ATTENTION! ATTENTION! ATTENTION! */
-#define _GNU_SOURCE
#define __NO_CTYPE
#include <ctype.h>
diff --git a/libc/misc/error/err.c b/libc/misc/error/err.c
index 6c1238ff6..f8da16334 100644
--- a/libc/misc/error/err.c
+++ b/libc/misc/error/err.c
@@ -5,7 +5,6 @@
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
-#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/libc/misc/file/lockf64.c b/libc/misc/file/lockf64.c
index 5c728d731..6c081ae1e 100644
--- a/libc/misc/file/lockf64.c
+++ b/libc/misc/file/lockf64.c
@@ -31,8 +31,6 @@
#endif
#endif
-#define __USE_GNU
-
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
diff --git a/libc/misc/fnmatch/fnmatch.c b/libc/misc/fnmatch/fnmatch.c
index b70cfd46e..5ddfdc333 100644
--- a/libc/misc/fnmatch/fnmatch.c
+++ b/libc/misc/fnmatch/fnmatch.c
@@ -21,11 +21,6 @@
# include <config.h>
#endif
-/* Enable GNU extensions in fnmatch.h. */
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE
-#endif
-
#include <features.h>
#ifdef __UCLIBC__
# undef _LIBC
diff --git a/libc/misc/fnmatch/fnmatch_old.c b/libc/misc/fnmatch/fnmatch_old.c
index 47075e914..577e35676 100644
--- a/libc/misc/fnmatch/fnmatch_old.c
+++ b/libc/misc/fnmatch/fnmatch_old.c
@@ -19,11 +19,6 @@ Cambridge, MA 02139, USA. */
# include <config.h>
#endif
-/* Enable GNU extensions in fnmatch.h. */
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE
-#endif
-
#include <errno.h>
#include <fnmatch.h>
#include <ctype.h>
diff --git a/libc/misc/ftw/ftw.c b/libc/misc/ftw/ftw.c
index b2c0c4ee4..092a3757a 100644
--- a/libc/misc/ftw/ftw.c
+++ b/libc/misc/ftw/ftw.c
@@ -22,7 +22,6 @@
# include <config.h>
#endif
-#define _GNU_SOURCE
#define _XOPEN_SOURCE 500
#include <features.h>
#ifdef __UCLIBC__
diff --git a/libc/misc/glob/glob.c b/libc/misc/glob/glob.c
index 8cb9a3ae5..009fe0b6a 100644
--- a/libc/misc/glob/glob.c
+++ b/libc/misc/glob/glob.c
@@ -15,7 +15,6 @@ License along with this library; see the file COPYING.LIB. If
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */
-#define _GNU_SOURCE
#include <features.h>
#include <stdlib.h>
#include <string.h>
diff --git a/libc/misc/glob/glob64.c b/libc/misc/glob/glob64.c
index 8c19e81bb..927ab6390 100644
--- a/libc/misc/glob/glob64.c
+++ b/libc/misc/glob/glob64.c
@@ -4,7 +4,6 @@
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
-#define _GNU_SOURCE
#include <features.h>
#ifdef __UCLIBC_HAS_LFS__
diff --git a/libc/misc/locale/locale.c b/libc/misc/locale/locale.c
index 690e61398..69cc08bfd 100644
--- a/libc/misc/locale/locale.c
+++ b/libc/misc/locale/locale.c
@@ -46,8 +46,6 @@
* locale support had (8-bit codesets only).
*/
-#define _GNU_SOURCE
-
#define __CTYPE_HAS_8_BIT_LOCALES 1
#include <string.h>
diff --git a/libc/misc/pthread/no-tsd.c b/libc/misc/pthread/no-tsd.c
index 1fabaae68..ef79cb832 100644
--- a/libc/misc/pthread/no-tsd.c
+++ b/libc/misc/pthread/no-tsd.c
@@ -17,7 +17,6 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#define _GNU_SOURCE
#include <bits/libc-tsd.h>
/* This file provides uinitialized (common) definitions for the
diff --git a/libc/misc/pthread/weaks.c b/libc/misc/pthread/weaks.c
index 20a98a3fe..141e74696 100644
--- a/libc/misc/pthread/weaks.c
+++ b/libc/misc/pthread/weaks.c
@@ -17,7 +17,6 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#define _GNU_SOURCE
#include <libc-internal.h>
/* Weaks for internal library use only.
diff --git a/libc/misc/regex/regex.c b/libc/misc/regex/regex.c
index 56737b7bc..3e53a2ea6 100644
--- a/libc/misc/regex/regex.c
+++ b/libc/misc/regex/regex.c
@@ -23,7 +23,6 @@
#endif
/* uClibc addons */
-#define _GNU_SOURCE
#include <features.h>
#ifdef __UCLIBC__
diff --git a/libc/misc/regex/regex_old.c b/libc/misc/regex/regex_old.c
index bb8aa762a..0ff756ff5 100644
--- a/libc/misc/regex/regex_old.c
+++ b/libc/misc/regex/regex_old.c
@@ -22,7 +22,6 @@
/* To exclude some unwanted junk.... */
#undef emacs
-#define _GNU_SOURCE
#include <features.h>
#ifdef __UCLIBC__
# undef _LIBC
@@ -49,9 +48,6 @@ libc_hidden_proto(abort)
#pragma alloca
#endif
-#undef _GNU_SOURCE
-#define _GNU_SOURCE
-
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/libc/misc/search/hsearch.c b/libc/misc/search/hsearch.c
index 3370545fd..b1228e2ee 100644
--- a/libc/misc/search/hsearch.c
+++ b/libc/misc/search/hsearch.c
@@ -17,10 +17,6 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
-
#include <search.h>
libc_hidden_proto(hdestroy_r)
diff --git a/libc/misc/search/hsearch_r.c b/libc/misc/search/hsearch_r.c
index e7ded795f..7933f2d6f 100644
--- a/libc/misc/search/hsearch_r.c
+++ b/libc/misc/search/hsearch_r.c
@@ -17,10 +17,6 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
-
#include <errno.h>
#include <malloc.h>
#include <string.h>
diff --git a/libc/misc/search/insremque.c b/libc/misc/search/insremque.c
index 29e547ff3..32edf7a4e 100644
--- a/libc/misc/search/insremque.c
+++ b/libc/misc/search/insremque.c
@@ -17,11 +17,7 @@
Boston, MA 02111-1307, USA. */
#include <features.h>
-#define __USE_GNU
#include <stddef.h>
-#ifndef _SVID_SOURCE
-#define _SVID_SOURCE 1
-#endif
#include <search.h>
#ifdef L_insque
diff --git a/libc/misc/search/tsearch.c b/libc/misc/search/tsearch.c
index d66a5c422..01ecb288b 100644
--- a/libc/misc/search/tsearch.c
+++ b/libc/misc/search/tsearch.c
@@ -28,7 +28,6 @@ Cambridge, MA 02139, USA. */
*/
/*LINTLIBRARY*/
-#define _GNU_SOURCE
#include <search.h>
#include <stdlib.h>
diff --git a/libc/misc/statfs/fstatvfs.c b/libc/misc/statfs/fstatvfs.c
index a3d0ef97c..a8c23992a 100644
--- a/libc/misc/statfs/fstatvfs.c
+++ b/libc/misc/statfs/fstatvfs.c
@@ -18,8 +18,6 @@
02111-1307 USA. */
#include <features.h>
-
-#define __USE_GNU
#include <errno.h>
#include <mntent.h>
#include <paths.h>
diff --git a/libc/misc/statfs/fstatvfs64.c b/libc/misc/statfs/fstatvfs64.c
index fdc6d6f94..2e25fda2f 100644
--- a/libc/misc/statfs/fstatvfs64.c
+++ b/libc/misc/statfs/fstatvfs64.c
@@ -30,7 +30,6 @@
# define __USE_LARGEFILE64 1
#endif
-#define __USE_GNU
#include <errno.h>
#include <mntent.h>
#include <paths.h>
diff --git a/libc/misc/statfs/statvfs.c b/libc/misc/statfs/statvfs.c
index 795126a7b..006b791ae 100644
--- a/libc/misc/statfs/statvfs.c
+++ b/libc/misc/statfs/statvfs.c
@@ -18,8 +18,6 @@
02111-1307 USA. */
#include <features.h>
-
-#define __USE_GNU
#include <errno.h>
#include <mntent.h>
#include <paths.h>
diff --git a/libc/misc/statfs/statvfs64.c b/libc/misc/statfs/statvfs64.c
index ac92fbc7e..eec14983e 100644
--- a/libc/misc/statfs/statvfs64.c
+++ b/libc/misc/statfs/statvfs64.c
@@ -32,7 +32,6 @@
#endif
#endif
-#define __USE_GNU
#include <errno.h>
#include <mntent.h>
#include <paths.h>
diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c
index 698d1971d..10b8e6e58 100644
--- a/libc/misc/syslog/syslog.c
+++ b/libc/misc/syslog/syslog.c
@@ -59,7 +59,6 @@
*/
#define __FORCE_GLIBC
-#define _GNU_SOURCE
#include <features.h>
#include <sys/types.h>
#include <sys/socket.h>
diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c
index ea28e1a4f..b6dce44ea 100644
--- a/libc/misc/time/time.c
+++ b/libc/misc/time/time.c
@@ -129,7 +129,6 @@
* differs (intentionally) from glibc's behavior.
*/
-#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
diff --git a/libc/misc/ttyent/getttyent.c b/libc/misc/ttyent/getttyent.c
index 4388744b2..13cbd6c84 100644
--- a/libc/misc/ttyent/getttyent.c
+++ b/libc/misc/ttyent/getttyent.c
@@ -27,7 +27,6 @@
* SUCH DAMAGE.
*/
-#define _GNU_SOURCE
#include <features.h>
#include <ttyent.h>
#include <stdio.h>
diff --git a/libc/misc/wchar/wchar.c b/libc/misc/wchar/wchar.c
index 7beef1595..099769c2f 100644
--- a/libc/misc/wchar/wchar.c
+++ b/libc/misc/wchar/wchar.c
@@ -98,7 +98,6 @@
* Manuel
*/
-#define _GNU_SOURCE
#define _ISOC99_SOURCE
#include <errno.h>
#include <stddef.h>
diff --git a/libc/misc/wchar/wstdio.c b/libc/misc/wchar/wstdio.c
index 00311a41d..84d98b64a 100644
--- a/libc/misc/wchar/wstdio.c
+++ b/libc/misc/wchar/wstdio.c
@@ -49,7 +49,6 @@
* Should auto_wr_transition init the mbstate object?
*/
-#define _GNU_SOURCE
#include <stdio.h>
#include <wchar.h>
#include <limits.h>
diff --git a/libc/misc/wctype/wctype.c b/libc/misc/wctype/wctype.c
index 8f56f4556..a7d111039 100644
--- a/libc/misc/wctype/wctype.c
+++ b/libc/misc/wctype/wctype.c
@@ -26,7 +26,6 @@
*
* ATTENTION! ATTENTION! ATTENTION! ATTENTION! ATTENTION! */
-#define _GNU_SOURCE
#define __NO_CTYPE
#include <wctype.h>
diff --git a/libc/misc/wordexp/wordexp.c b/libc/misc/wordexp/wordexp.c
index 3713ac2e5..1693d8b8a 100644
--- a/libc/misc/wordexp/wordexp.c
+++ b/libc/misc/wordexp/wordexp.c
@@ -19,7 +19,6 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#define _GNU_SOURCE
#include <features.h>
#include <sys/types.h>
#include <sys/wait.h>