File: access.c

package info (click to toggle)
deheader 1.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 488 kB
  • sloc: python: 1,191; ansic: 334; xml: 191; makefile: 71; sh: 15
file content (17 lines) | stat: -rw-r--r-- 342 bytes parent folder | download
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>

int 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);
}