2012-01-30 Joseph Myers <joseph@codesourcery.com>
+ * crypt/cert.c: Remove __STDC__ conditionals.
+ * crypt/crypt-entry.c: Likewise.
+ * crypt/crypt_util.c: Likewise.
+ * libio/filedoalloc.c: Likewise.
+ * libio/fileops.c: Likewise.
+ * libio/genops.c: Likewise.
+ * libio/iofclose.c: Likewise.
+ * libio/iofdopen.c: Likewise.
+ * libio/iofopen.c: Likewise.
+ * libio/iofopen64.c: Likewise.
+ * libio/iogetdelim.c: Likewise.
+ * libio/iopopen.c: Likewise.
+ * libio/obprintf.c: Likewise.
+ * libio/oldfileops.c: Likewise.
+ * libio/oldiofclose.c: Likewise.
+ * libio/oldiofdopen.c: Likewise.
+ * libio/oldiofopen.c: Likewise.
+ * libio/oldiopopen.c: Likewise.
+ * libio/wfiledoalloc.c: Likewise.
+ * libio/wgenops.c: Likewise.
+ * locale/programs/xmalloc.c: Likewise.
+ * misc/syslog.c: Likewise.
+ * stdio-common/xbug.c: Likewise.
+ * string/memchr.c: Likewise.
+ * string/memcmp.c: Likewise.
+ * string/memrchr.c: Likewise.
+ * string/rawmemchr.c: Likewise.
+ * sysdeps/posix/getcwd.c: Likewise.
+ * time/strftime_l.c: Likewise.
+
+2012-01-30 Joseph Myers <joseph@codesourcery.com>
+
* configure.in (libc_cv_cc_sse2avx): AC_SUBST.
* configure: Regenerate.
* config.make.in (config-cflags-sse2avx): Define.
int totfails = 0;
-#if __STDC__ - 0
int main (int argc, char *argv[]);
void get8 (char *cp);
void put8 (char *cp);
void good_bye (void) __attribute__ ((noreturn));
-#else
-void get8(), put8();
-#endif
void good_bye ()
{
/*
* UFC-crypt: ultra fast crypt(3) implementation
*
- * Copyright (C) 1991,1992,1993,1996,1997,2007 Free Software Foundation, Inc.
+ * Copyright (C) 1991-1993,1996-1997,2007,2012 Free Software Foundation, Inc.
*
* The GNU C Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
#include "crypt-private.h"
/* Prototypes for local functions. */
-#if __STDC__ - 0
#ifndef __GNU_LIBRARY__
void _ufc_clearmem (char *start, int cnt);
#else
extern char *__sha512_crypt_r (const char *key, const char *salt,
char *buffer, int buflen);
extern char *__sha512_crypt (const char *key, const char *salt);
-#endif
/* Define our magic string to mark salt for MD5 encryption
replacement. This is meant to be the same as for other MD5 based
#include "crypt-private.h"
/* Prototypes for local functions. */
-#if __STDC__ - 0
#ifndef __GNU_LIBRARY__
void _ufc_clearmem (char *start, int cnt);
void _ufc_copymem (char *from, char *to, int cnt);
#else
STATIC void shuffle_sb (long64 *k, ufc_long saltbits);
#endif
-#endif
/*
-/* Copyright (C) 1993, 1997, 2001, 2002, 2011 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1997, 2001-2002, 2011-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
#include "libioP.h"
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef __STDC__
#include <stdlib.h>
#include <unistd.h>
-#endif
#ifdef _LIBC
# undef isatty
-/* Copyright (C) 1993, 1995, 1997-2005, 2006, 2007, 2008, 2009, 2011
+/* Copyright (C) 1993, 1995, 1997-2005, 2006, 2007, 2008, 2009, 2011-2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by Per Bothner <bothner@cygnus.com>.
#include <string.h>
#include <errno.h>
#include <unistd.h>
-#ifdef __STDC__
#include <stdlib.h>
-#endif
#if _LIBC
# include "../wcsmbs/wcsmbsload.h"
# include "../iconv/gconv_charset.h"
-/* Copyright (C) 1993,1995,1997-2002, 2003, 2004, 2006, 2007, 2011
+/* Copyright (C) 1993,1995,1997-2002, 2003, 2004, 2006, 2007, 2011-2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
/* Generic or default I/O operations. */
#include "libioP.h"
-#ifdef __STDC__
#include <stdlib.h>
-#endif
#include <string.h>
#include <stdbool.h>
#ifdef _LIBC
-/* Copyright (C) 1993,1995,1997-2004,2005 Free Software Foundation, Inc.
+/* Copyright (C) 1993,1995,1997-2004,2005,2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
in files containing the exception. */
#include "libioP.h"
-#ifdef __STDC__
#include <stdlib.h>
-#endif
#if _LIBC
# include "../iconv/gconv_int.h"
# include <shlib-compat.h>
-/* Copyright (C) 1993,1994,1997,1998,1999,2000,2002,2003,2010
+/* Copyright (C) 1993,1994,1997,1998,1999,2000,2002,2003,2010,2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
This exception applies to code released by its copyright holders
in files containing the exception. */
-#ifdef __STDC__
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include "libioP.h"
#include <fcntl.h>
-/* Copyright (C) 1993,1997,1998,1999,2000,2002,2003
+/* Copyright (C) 1993,1997,1998,1999,2000,2002,2003,2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
in files containing the exception. */
#include "libioP.h"
-#ifdef __STDC__
#include <stdlib.h>
#include <stddef.h>
-#endif
#ifdef _LIBC
# include <shlib-compat.h>
#else
-/* Copyright (C) 1993, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1993,1997,1999,2000,2002,2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
in files containing the exception. */
#include "libioP.h"
-#ifdef __STDC__
#include <stdlib.h>
-#endif
_IO_FILE *
_IO_fopen64 (filename, mode)
-/* Copyright (C) 1994,1996-1998,2001,2003,2005 Free Software Foundation, Inc.
+/* Copyright (C) 1994,1996-1998,2001,2003,2005,2012
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
This exception applies to code released by its copyright holders
in files containing the exception. */
-#ifdef __STDC__
#include <stdlib.h>
-#endif
#include "libioP.h"
#include <string.h>
#include <errno.h>
-/* Copyright (C) 1993, 1997-2002, 2003, 2004, 2007, 2008
+/* Copyright (C) 1993, 1997-2002, 2003, 2004, 2007, 2008, 2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by Per Bothner <bothner@cygnus.com>.
#if _IO_HAVE_SYS_WAIT
#include <signal.h>
#include <unistd.h>
-#ifdef __STDC__
#include <stdlib.h>
-#endif
#ifdef _LIBC
# include <unistd.h>
# include <shlib-compat.h>
/* Print output of stream to given obstack.
- Copyright (C) 1996,1997,1999,2000,2001,2002,2003,2004,2005,2006,2008
+ Copyright (C) 1996,1997,1999,2000,2001,2002,2003,2004,2005,2006,2008,2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
02111-1307 USA. */
-#ifdef __STDC__
#include <stdlib.h>
-#endif
#include "libioP.h"
#include "strfile.h"
#include <assert.h>
-/* Copyright (C) 1993, 1995, 1997-2004, 2005, 2007, 2011
+/* Copyright (C) 1993, 1995, 1997-2004, 2005, 2007, 2011-2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by Per Bothner <bothner@cygnus.com>.
#include <sys/stat.h>
#include <string.h>
#include <errno.h>
-#ifdef __STDC__
#include <stdlib.h>
-#endif
#ifndef errno
extern int errno;
#endif
-/* Copyright (C) 1993,1995,1997-2002,2004,2005 Free Software Foundation, Inc.
+/* Copyright (C) 1993,1995,1997-2002,2004,2005,2012
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
#define _IO_USE_OLD_IO_FILE
#include "libioP.h"
-#ifdef __STDC__
#include <stdlib.h>
-#endif
int
attribute_compat_text_section
-/* Copyright (C) 1993,94,97,99,2000,2002,2003,2004
+/* Copyright (C) 1993,94,97,99,2000,2002,2003,2004,2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)
#define _IO_USE_OLD_IO_FILE
-#ifdef __STDC__
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include "libioP.h"
#include <fcntl.h>
-/* Copyright (C) 1993,1997,1999,2000,2002,2003,2004
+/* Copyright (C) 1993,1997,1999,2000,2002,2003,2004,2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
#define _IO_USE_OLD_IO_FILE
#include "libioP.h"
-#ifdef __STDC__
#include <stdlib.h>
-#endif
_IO_FILE *
-/* Copyright (C) 1998-2002, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 1998-2002, 2004, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by Per Bothner <bothner@cygnus.com>.
#if _IO_HAVE_SYS_WAIT
#include <signal.h>
#include <unistd.h>
-#ifdef __STDC__
#include <stdlib.h>
-#endif
#ifdef _LIBC
# include <unistd.h>
#endif
-/* Copyright (C) 1993, 1997, 1999, 2000, 2002, 2006
+/* Copyright (C) 1993, 1997, 1999, 2000, 2002, 2006, 2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
#include "libioP.h"
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef __STDC__
#include <stdlib.h>
#include <unistd.h>
-#endif
#ifdef _LIBC
# undef isatty
-/* Copyright (C) 1993,1995,1997-2002,2004,2006 Free Software Foundation, Inc.
+/* Copyright (C) 1993,1995,1997-2002,2004,2006,2012
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by Ulrich Drepper <drepper@cygnus.com>.
Based on the single byte version by Per Bothner <bothner@cygnus.com>.
/* Generic or default I/O operations. */
#include "libioP.h"
-#ifdef __STDC__
#include <stdlib.h>
-#endif
#include <string.h>
#include <wchar.h>
/* xmalloc.c -- malloc with out of memory checking
- Copyright (C) 1990,91,92,93,94,95,96,97,2004,2005
+ Copyright (C) 1990,91,92,93,94,95,96,97,2004,2005,2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
#include <config.h>
#endif
-#if __STDC__
#define VOID void
-#else
-#define VOID char
-#endif
#include <sys/types.h>
#include <signal.h>
#include <locale.h>
-#if __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#include <libio/iolibio.h>
#include <math_ldbl_opt.h>
int room, used;
} Buffer;
-#if __STDC__ - 0
void InitBuffer (Buffer *b);
void AppendToBuffer (register Buffer *b, const char *str, register int len);
void ReadFile (register Buffer *buffer, FILE *input);
-#endif
#define INIT_BUFFER_SIZE 10000
-/* Copyright (C) 1991,93,96,97,99,2000,2003 Free Software Foundation, Inc.
+/* Copyright (C) 1991,93,96,97,99,2000,2003,2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
with help from Dan Sahlin (dan@sics.se) and
#endif
#undef __ptr_t
-#if defined (__cplusplus) || (defined (__STDC__) && __STDC__)
-# define __ptr_t void *
-#else /* Not C++ or ANSI C. */
-# define __ptr_t char *
-#endif /* C++ or ANSI C. */
+#define __ptr_t void *
#if defined _LIBC
# include <string.h>
-/* Copyright (C) 1991,1993,1995,1997,1998,2003,2004
+/* Copyright (C) 1991,1993,1995,1997,1998,2003,2004,2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Torbjorn Granlund (tege@sics.se).
#endif
#undef __ptr_t
-#if defined __cplusplus || (defined __STDC__ && __STDC__)
-# define __ptr_t void *
-#else /* Not C++ or ANSI C. */
-# undef const
-# define const
-# define __ptr_t char *
-#endif /* C++ or ANSI C. */
+#define __ptr_t void *
#if defined HAVE_STRING_H || defined _LIBC
# include <string.h>
/* memrchr -- find the last occurrence of a byte in a memory block
- Copyright (C) 1991, 93, 96, 97, 99, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1991, 93, 96, 97, 99, 2000, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
with help from Dan Sahlin (dan@sics.se) and
#endif
#undef __ptr_t
-#if defined __cplusplus || (defined __STDC__ && __STDC__)
-# define __ptr_t void *
-#else /* Not C++ or ANSI C. */
-# define __ptr_t char *
-#endif /* C++ or ANSI C. */
+#define __ptr_t void *
#if defined _LIBC
# include <string.h>
-/* Copyright (C) 1991,93,96,97,99,2000,2002 Free Software Foundation, Inc.
+/* Copyright (C) 1991,93,96,97,99,2000,2002,2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
with help from Dan Sahlin (dan@sics.se) and
#endif
#undef __ptr_t
-#if defined (__cplusplus) || (defined (__STDC__) && __STDC__)
-# define __ptr_t void *
-#else /* Not C++ or ANSI C. */
-# define __ptr_t char *
-#endif /* C++ or ANSI C. */
+#define __ptr_t void *
#if defined (_LIBC)
# include <string.h>
-/* Copyright (C) 1991,92,93,94,95,96,97,98,99,11 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1999,2011-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
# define size_t unsigned int
#endif
-#if !__STDC__ && !defined const
-# define const
-#endif
-
#ifndef __GNU_LIBRARY__
# define __lstat64 stat64
#endif
-/* Copyright (C) 2002, 2004, 2007-2009, 2010 Free Software Foundation, Inc.
+/* Copyright (C) 2002,2004,2007-2009,2010,2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
#endif
#ifndef PTR
-# ifdef __STDC__
-# define PTR void *
-# else
-# define PTR char *
-# endif
+# define PTR void *
#endif
#ifndef CHAR_BIT