-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpgm2.c
31 lines (31 loc) · 854 Bytes
/
pgm2.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#define _POSIX_SOURCE
#include <stdio.h>
#include <unistd.h>
int main(){
#ifdef _POSIX_JOB_CONTROL
printf("_POSIX_JOB_CONTROL is defined\n");//,_POSIX_JOB_CONTROL);
#else
printf("_POSIX_JOB_CONTROL not defined\n");
#endif
#ifdef _POSIX_SAVED_IDS
printf("_POSIX_SAVED_IDS is defined\n");//,_POSIX_SAVED_IDS);
#else
printf("_POSIX_SAVED_IDS not defined\n");
#endif
#ifdef _POSIX_CHOWN_RESTRICTED
printf("_POSIX_CHOWN_RESTRICTED is defined\n");//,_POSIX_CHOWN_RESTRICTED);
#else
printf("_POSIX_CHOWN_RESTRICTED not defined\n");
#endif
#ifdef _POSIX_NO_TRUNC
printf("_POSIX_NO_TRUNC is defined\n");//,_POSIX_NO_TRUNC);
#else
printf("_POSIX_NO_TRUNC not defined\n");
#endif
#ifdef _POSIX_VDISABLE
printf("_POSIX_VDISABLE is defined\n");//,_POSIX_VDISABLE);
#else
printf("_POSIX_VDISABLE not defined\n");
#endif
return 0;
}