-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFeature Test Macro
More file actions
47 lines (34 loc) · 887 Bytes
/
Feature Test Macro
File metadata and controls
47 lines (34 loc) · 887 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#define_POSIX_SOURCE
#define_POSIX_C_SOURCE_199309L
#include<stdio.h>
#include<iostream.h>
#include<unistd.h>
int main()
{
#ifdef POSIX_JOB_CONTROL
printf("System supports job control\n");
#else
printf("System does not support job control\n");
#endif
#ifdef POSIX_SAVED_IDS
printf("System supports saved ids\n");
#else
printf("System does not support saved ids\n");
#endif
#ifdef POSIX_CHOWN_RESTRICTED
printf("System supports chown restricted\n");
#else
printf("System does not support chown restricted\n");
#endif
#ifdef POSIX_NO_TRUNC
printf("System supports no trunc\n");
#else
printf("System does not support no trunc\n");
#endif
#ifdef POSIX_VDISABLE
printf("System supports vdisable\n");
#else
printf("System does not support vdisable\n");
#endif
return 0;
}