summaryrefslogtreecommitdiff
path: root/test/access.c
blob: 4f18431f18c7a30f6ca543f0720a24d91cbb1231 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Items: access(
 * Standardized-By: SuS
 * Not-Detected-by: gcc-4.4.3 + Linux
 */

#include <unistd.h>

main(int arg, char **argv)
{
    /* 
     * Note: use of a symbolic constant like F_OK *will* 
     * cause the compile to fail and the requrement
     * for <unistd.h> to be tetected.
     */
    (void)access("/dev/null", 0);
}