summary refs log tree commit diff
path: root/misc/sys
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-09-08 19:48:47 -0400
committerUlrich Drepper <drepper@gmail.com>2011-09-08 19:48:47 -0400
commita0f33f996f7986dbf37631a4577f8565b42df29e (patch)
tree78c71a736d4bd75009abba7796f0e0aca78e47ec /misc/sys
parent762011fe9ffded81448be4dc50a2b27faaafe4c9 (diff)
downloadglibc-a0f33f996f7986dbf37631a4577f8565b42df29e.tar.gz
glibc-a0f33f996f7986dbf37631a4577f8565b42df29e.tar.xz
glibc-a0f33f996f7986dbf37631a4577f8565b42df29e.zip
Add range checking for FD_SET, FD_CLR, and FD_ISSET
Diffstat (limited to 'misc/sys')
-rw-r--r--misc/sys/select.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/misc/sys/select.h b/misc/sys/select.h
index f4a37be551..295d3bb6c4 100644
--- a/misc/sys/select.h
+++ b/misc/sys/select.h
@@ -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 */