2 * Tests for various access functions
18 if (-1 == access("access.c", R_OK
))
20 perror("access failed:");
23 if (-1 == eaccess("access.c", F_OK
))
25 perror("eaccess failed:");
28 if (-1 == faccessat(AT_FDCWD
, "access.c", R_OK
, AT_EACCESS
))
30 perror("accessat failed:");
35 char* badstring
= strdup("foo");
37 access(badstring
, badint
);
38 eaccess(badstring
, badint
);
39 faccessat(badint
, badstring
, badint
, badint
);