summaryrefslogtreecommitdiff
path: root/libgcompat/gnulib.c
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2018-09-21 21:30:18 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2018-09-21 21:30:18 +0000
commite7fd895295db6291319af09ffaa3b6d93180788c (patch)
tree6ad80501db199c916e8fc2ed5648bf694a257675 /libgcompat/gnulib.c
parent938c8095e7456fbcdf4ce261bdb6dfa3a8e41b80 (diff)
parent9bc7c737b311fcbba71af11884b7f9111dba57ba (diff)
downloadgcompat-e7fd895295db6291319af09ffaa3b6d93180788c.tar.gz
gcompat-e7fd895295db6291319af09ffaa3b6d93180788c.tar.bz2
gcompat-e7fd895295db6291319af09ffaa3b6d93180788c.tar.xz
gcompat-e7fd895295db6291319af09ffaa3b6d93180788c.zip
Merge branch 'patch-3' into 'master'
Add some more functions (notably __cxa_thread_atexit_impl and realpath) and run clang-format See merge request !3
Diffstat (limited to 'libgcompat/gnulib.c')
-rw-r--r--libgcompat/gnulib.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/libgcompat/gnulib.c b/libgcompat/gnulib.c
index ccdec24..3f66963 100644
--- a/libgcompat/gnulib.c
+++ b/libgcompat/gnulib.c
@@ -1,16 +1,18 @@
#include <sys/select.h>
#include "internal.h"
-#define REASON_FD_SET_OVERFLOW \
- "Fault: Overflow in fd_set detected.\n" \
- "Description: This is caused by a programmer naively attempting to redefine FD_SETSIZE,\n" \
- " which is not allowed on POSIX platforms. The program must be either rebuilt\n" \
- " with the correct FD_SETSIZE definition, or preferably rewritten to avoid use\n" \
- " of select(2) in general. See also: poll(2).\n" \
+#define REASON_FD_SET_OVERFLOW \
+ "Fault: Overflow in fd_set detected.\n" \
+ "Description: This is caused by a programmer naively attempting to\n" \
+ " redefine FD_SETSIZE, which is not allowed on POSIX platforms.\n" \
+ " The program must either be rebuilt with the correct FD_SETSIZE\n" \
+ " definition, or else be rewritten to avoid use of select(2) in \n" \
+ " general. See also: poll(2).\n" \
" libgcompat believes FD_SETSIZE to be %zu.\n"
unsigned long __fdelt_chk(unsigned long size)
{
- GCOMPAT__assert_with_reason(size < FD_SETSIZE, REASON_FD_SET_OVERFLOW, FD_SETSIZE);
+ GCOMPAT__assert_with_reason(size < FD_SETSIZE, REASON_FD_SET_OVERFLOW,
+ FD_SETSIZE);
return size / (sizeof(unsigned long) << 3);
}