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:
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1996, 1997, 1998, 1999, 2007 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1996-1999, 2007, 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
|
||||
@ -102,7 +102,7 @@ enum
|
||||
|
||||
|
||||
/* Switch process accounting on and off. */
|
||||
extern int acct (__const char *__filename) __THROW;
|
||||
extern int acct (const char *__filename) __THROW;
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
@ -137,7 +137,7 @@ extern int epoll_wait (int __epfd, struct epoll_event *__events,
|
||||
__THROW. */
|
||||
extern int epoll_pwait (int __epfd, struct epoll_event *__events,
|
||||
int __maxevents, int __timeout,
|
||||
__const __sigset_t *__ss);
|
||||
const __sigset_t *__ss);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Header file for mounting/unmount Linux filesystems.
|
||||
Copyright (C) 1996-2000, 2004, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996-2000, 2004, 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
|
||||
@ -133,15 +133,15 @@ enum
|
||||
__BEGIN_DECLS
|
||||
|
||||
/* Mount a filesystem. */
|
||||
extern int mount (__const char *__special_file, __const char *__dir,
|
||||
__const char *__fstype, unsigned long int __rwflag,
|
||||
__const void *__data) __THROW;
|
||||
extern int mount (const char *__special_file, const char *__dir,
|
||||
const char *__fstype, unsigned long int __rwflag,
|
||||
const void *__data) __THROW;
|
||||
|
||||
/* Unmount a filesystem. */
|
||||
extern int umount (__const char *__special_file) __THROW;
|
||||
extern int umount (const char *__special_file) __THROW;
|
||||
|
||||
/* Unmount a filesystem. Force unmounting if FLAGS is set to MNT_FORCE. */
|
||||
extern int umount2 (__const char *__special_file, int __flags) __THROW;
|
||||
extern int umount2 (const char *__special_file, int __flags) __THROW;
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Calls to enable and disable swapping on specified locations. Linux version.
|
||||
Copyright (C) 1996, 1998, 1999, 2010 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996, 1998, 1999, 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
|
||||
@ -34,10 +34,10 @@ __BEGIN_DECLS
|
||||
|
||||
/* Make the block special device PATH available to the system for swapping.
|
||||
This call is restricted to the super-user. */
|
||||
extern int swapon (__const char *__path, int __flags) __THROW;
|
||||
extern int swapon (const char *__path, int __flags) __THROW;
|
||||
|
||||
/* Stop using block special device PATH for swapping. */
|
||||
extern int swapoff (__const char *__path) __THROW;
|
||||
extern int swapoff (const char *__path) __THROW;
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2008 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2008, 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
|
||||
@ -49,7 +49,7 @@ extern int timerfd_create (clockid_t __clock_id, int __flags) __THROW;
|
||||
FLAGS has the TFD_TIMER_ABSTIME flag set the timeout value is
|
||||
absolute. Optionally return the old expiration time in OTMR. */
|
||||
extern int timerfd_settime (int __ufd, int __flags,
|
||||
__const struct itimerspec *__utmr,
|
||||
const struct itimerspec *__utmr,
|
||||
struct itimerspec *__otmr) __THROW;
|
||||
|
||||
/* Return the next expiration time of UFD. */
|
||||
|
Reference in New Issue
Block a user