* Close all file descriptors greater than or equal to lowfd.
* This is the expensive (fallback) method.
*/
-void
+static void
closefrom_fallback(int lowfd)
{
long fd, maxfd;
int index;
};
-int
+static int
test_readfn(void *cookie, char *buf, int size)
{
struct test_cookie *tc = cookie;
return size;
}
-int
+static int
test_writefn(void *cookie, const char *buf, int size)
{
struct test_cookie *tc = cookie;
return size;
}
-off_t
+static off_t
test_seekfn(void *cookie, off_t offset, int whence)
{
struct test_cookie *tc = cookie;
return tc->index;
}
-int
+static int
test_closefn(void *cookie)
{
struct test_cookie *tc = cookie;