#include "20080119-1.h" struct file * fget (unsigned int fd) { static struct file dummy; return &dummy; } int filldir64 (void *vp, const char *cp, int i, s64 o, u64 ull, unsigned u) { return 0; } int vfs_readdir (struct file *f, filldir_t fun, void *buf) { struct getdents_callback64 *cb = buf; return (long) cb->current_dir < 0 ? -1 : 0; } void fput (struct file *f) { } int main (void) { if (sys_getdents64 (0, 0, 0)) abort (); return 0; }