summaryrefslogtreecommitdiffstats
path: root/include/fileutils.h
diff options
context:
space:
mode:
authorKarel Zak2012-04-23 13:52:41 +0200
committerKarel Zak2012-04-23 13:58:39 +0200
commitbe92327e712a0371d7f5d45b5e4bfc5631371114 (patch)
tree643ffc3bbcacb34b56e824f4208052f7fc678815 /include/fileutils.h
parentlogin: use getdtablesize() correctly in login.c (diff)
downloadkernel-qcow2-util-linux-be92327e712a0371d7f5d45b5e4bfc5631371114.tar.gz
kernel-qcow2-util-linux-be92327e712a0371d7f5d45b5e4bfc5631371114.tar.xz
kernel-qcow2-util-linux-be92327e712a0371d7f5d45b5e4bfc5631371114.zip
lib/fileutils: add get_fd_tabsize()
as a fallback for the function getdtablesize() Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/fileutils.h')
-rw-r--r--include/fileutils.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/fileutils.h b/include/fileutils.h
index 691429ba0..33aba0a0d 100644
--- a/include/fileutils.h
+++ b/include/fileutils.h
@@ -17,4 +17,7 @@ static inline FILE *xfmkstemp(char **tmpname)
}
return ret;
}
-#endif
+
+extern int get_fd_tabsize(void);
+
+#endif /* UTIL_LINUX_FILEUTILS */