/home/user/z/z.c: In function ‘handler_ret’: /home/user/z/z.c:44:42: error: macro "access_ok" requires 3 arguments, but only 2 given if (!access_ok(dirent_user_ptr, nread)) { ^ /home/user/z/z.c:44:10: error: ‘access_ok’ undeclared (first use in this function) if (!access_ok(dirent_user_ptr, nread)) { ^ /home/user/z/z.c:44:10: note: each undeclared identifier is reported only once for each function it appears in