diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2016-10-04 05:27:04 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2016-10-04 05:27:04 -0500 |
commit | 0912f6890925a9e9aa552fb841f9162ea6bd3d70 (patch) | |
tree | 43800f360d677b163f745badc11bde81ea810b3c /gnulib.c | |
parent | 6b43a6a6c1f238b5ddea05964e19de86fe2fcda1 (diff) | |
download | gcompat-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.c | 8 |
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); +} |