summaryrefslogtreecommitdiff
path: root/gnulib.c
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2016-10-04 05:27:04 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2016-10-04 05:27:04 -0500
commit0912f6890925a9e9aa552fb841f9162ea6bd3d70 (patch)
tree43800f360d677b163f745badc11bde81ea810b3c /gnulib.c
parent6b43a6a6c1f238b5ddea05964e19de86fe2fcda1 (diff)
downloadgcompat-0912f6890925a9e9aa552fb841f9162ea6bd3d70.tar.gz
gcompat-0912f6890925a9e9aa552fb841f9162ea6bd3d70.tar.bz2
gcompat-0912f6890925a9e9aa552fb841f9162ea6bd3d70.tar.xz
gcompat-0912f6890925a9e9aa552fb841f9162ea6bd3d70.zip
Add some new interfaces
Diffstat (limited to 'gnulib.c')
-rw-r--r--gnulib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnulib.c b/gnulib.c
new file mode 100644
index 0000000..08544fc
--- /dev/null
+++ b/gnulib.c
@@ -0,0 +1,8 @@
+#include <assert.h>
+#include <sys/select.h>
+
+unsigned long __fdelt_chk(unsigned long size)
+{
+ assert(size < FD_SETSIZE);
+ return size / (sizeof(unsigned long)<<3);
+}