1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Remove pre-ISO C support

No more __const.
This commit is contained in:
Ulrich Drepper
2012-01-07 23:57:22 -05:00
parent 33808bf116
commit a784e50247
209 changed files with 2420 additions and 2244 deletions

View File

@ -1,5 +1,5 @@
/* Bit values & structures for resource limits. Linux version.
Copyright (C) 1994, 1996-2000, 2004, 2005, 2008, 2009, 2010, 2011
Copyright (C) 1994, 1996-2000, 2004, 2005, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@ -246,13 +246,13 @@ __BEGIN_DECLS
/* Modify and return resource limits of a process atomically. */
# ifndef __USE_FILE_OFFSET64
extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource,
__const struct rlimit *__new_limit,
const struct rlimit *__new_limit,
struct rlimit *__old_limit) __THROW;
# else
# ifdef __REDIRECT_NTH
extern int __REDIRECT_NTH (prlimit, (__pid_t __pid,
enum __rlimit_resource __resource,
__const struct rlimit *__new_limit,
const struct rlimit *__new_limit,
struct rlimit *__old_limit), prlimit64);
# else
# define prlimit prlimit64
@ -260,7 +260,7 @@ extern int __REDIRECT_NTH (prlimit, (__pid_t __pid,
# endif
# ifdef __USE_LARGEFILE64
extern int prlimit64 (__pid_t __pid, enum __rlimit_resource __resource,
__const struct rlimit64 *__new_limit,
const struct rlimit64 *__new_limit,
struct rlimit64 *__old_limit) __THROW;
# endif
#endif

View File

@ -1,6 +1,6 @@
/* Definitions of constants and data structure for POSIX 1003.1b-1993
scheduling interface.
Copyright (C) 1996-1999,2001-2003,2005,2006,2007,2008,2009,2011
Copyright (C) 1996-1999,2001-2003,2005,2006,2007,2008,2009,2011,2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@ -161,7 +161,7 @@ typedef struct
(__extension__ \
({ size_t __cpu = (cpu); \
__cpu < 8 * (setsize) \
? ((((__const __cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)] \
? ((((const __cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)] \
& __CPUMASK (__cpu))) != 0 \
: 0; }))
@ -174,8 +174,8 @@ typedef struct
# else
# define __CPU_EQUAL_S(setsize, cpusetp1, cpusetp2) \
(__extension__ \
({ __const __cpu_mask *__arr1 = (cpusetp1)->__bits; \
__const __cpu_mask *__arr2 = (cpusetp2)->__bits; \
({ const __cpu_mask *__arr1 = (cpusetp1)->__bits; \
const __cpu_mask *__arr2 = (cpusetp2)->__bits; \
size_t __imax = (setsize) / sizeof (__cpu_mask); \
size_t __i; \
for (__i = 0; __i < __imax; ++__i) \
@ -187,8 +187,8 @@ typedef struct
# define __CPU_OP_S(setsize, destset, srcset1, srcset2, op) \
(__extension__ \
({ cpu_set_t *__dest = (destset); \
__const __cpu_mask *__arr1 = (srcset1)->__bits; \
__const __cpu_mask *__arr2 = (srcset2)->__bits; \
const __cpu_mask *__arr1 = (srcset1)->__bits; \
const __cpu_mask *__arr2 = (srcset2)->__bits; \
size_t __imax = (setsize) / sizeof (__cpu_mask); \
size_t __i; \
for (__i = 0; __i < __imax; ++__i) \

View File

@ -1,5 +1,5 @@
/* __sig_atomic_t, __sigset_t, and related definitions. Linux version.
Copyright (C) 1991, 1992, 1994, 1996, 1997, 2007
Copyright (C) 1991, 1992, 1994, 1996, 1997, 2007, 2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@ -101,7 +101,7 @@ typedef struct
/* These functions needn't check for a bogus signal number -- error
checking is done in the non __ versions. */
extern int __sigismember (__const __sigset_t *, int);
extern int __sigismember (const __sigset_t *, int);
extern int __sigaddset (__sigset_t *, int);
extern int __sigdelset (__sigset_t *, int);
@ -115,7 +115,7 @@ extern int __sigdelset (__sigset_t *, int);
return BODY; \
}
__SIGSETFN (__sigismember, (__set->__val[__word] & __mask) ? 1 : 0, __const)
__SIGSETFN (__sigismember, (__set->__val[__word] & __mask) ? 1 : 0, const)
__SIGSETFN (__sigaddset, ((__set->__val[__word] |= __mask), 0), )
__SIGSETFN (__sigdelset, ((__set->__val[__word] &= ~__mask), 0), )

View File

@ -1,5 +1,5 @@
/* System-specific socket constants and types. Linux version.
Copyright (C) 1991, 1992, 1994-2001, 2004, 2006-2010, 2011
Copyright (C) 1991, 1992, 1994-2001, 2004, 2006-2010, 2011, 2012
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@ -430,7 +430,7 @@ __BEGIN_DECLS
__THROW. */
extern int recvmmsg (int __fd, struct mmsghdr *__vmessages,
unsigned int __vlen, int __flags,
__const struct timespec *__tmo);
const struct timespec *__tmo);
/* Send a VLEN messages as described by VMESSAGES to socket FD.
Return the number of datagrams successfully written or -1 for errors.

View File

@ -1,5 +1,5 @@
/* Declare sys_errlist and sys_nerr, or don't. Compatibility (do) version.
Copyright (C) 2002 Free Software Foundation, Inc.
Copyright (C) 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
@ -25,9 +25,9 @@
#ifdef __USE_BSD
extern int sys_nerr;
extern __const char *__const sys_errlist[];
extern const char *const sys_errlist[];
#endif
#ifdef __USE_GNU
extern int _sys_nerr;
extern __const char *__const _sys_errlist[];
extern const char *const _sys_errlist[];
#endif

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1996, 1997, 2006, 2011 Free Software Foundation, Inc.
/* Copyright (C) 1996, 1997, 2006, 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
@ -55,17 +55,17 @@ struct iovec
__BEGIN_DECLS
/* Read from another process' address space. */
extern ssize_t process_vm_readv (pid_t __pid, __const struct iovec *__lvec,
extern ssize_t process_vm_readv (pid_t __pid, const struct iovec *__lvec,
unsigned long int __liovcnt,
__const struct iovec *__rvec,
const struct iovec *__rvec,
unsigned long int __riovcnt,
unsigned long int __flags)
__THROW;
/* Write to another process' address space. */
extern ssize_t process_vm_writev (pid_t __pid, __const struct iovec *__lvec,
extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec,
unsigned long int __liovcnt,
__const struct iovec *__rvec,
const struct iovec *__rvec,
unsigned long int __riovcnt,
unsigned long int __flags)
__THROW;