mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Add range checking for FD_SET, FD_CLR, and FD_ISSET
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/* `fd_set' type and related macros, and `select'/`pselect' declarations.
|
||||
Copyright (C) 1996-2003, 2009 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996-2003, 2009, 2011 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
|
||||
@ -125,6 +125,12 @@ extern int pselect (int __nfds, fd_set *__restrict __readfds,
|
||||
const __sigset_t *__restrict __sigmask);
|
||||
#endif
|
||||
|
||||
|
||||
/* Define some inlines helping to catch common problems. */
|
||||
#if __USE_FORTIFY_LEVEL > 0 && defined __GNUC__
|
||||
# include <bits/select2.h>
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* sys/select.h */
|
||||
|
Reference in New Issue
Block a user