-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patherror.h-externerrno
More file actions
34 lines (31 loc) · 1.06 KB
/
Copy patherror.h-externerrno
File metadata and controls
34 lines (31 loc) · 1.06 KB
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
#include <stdio.h>
extern int errno;
int main(){
errno = 0;
printf("/* Public domain. */\n\n");
printf("#ifndef _ERROR_H____\n");
printf("#define _ERROR_H____\n\n");
printf("extern int errno;\n\n");
printf("extern int error_intr;\n");
printf("extern int error_nomem;\n");
printf("extern int error_noent;\n");
printf("extern int error_txtbsy;\n");
printf("extern int error_io;\n");
printf("extern int error_exist;\n");
printf("extern int error_timeout;\n");
printf("extern int error_inprogress;\n");
printf("extern int error_wouldblock;\n");
printf("extern int error_again;\n");
printf("extern int error_pipe;\n");
printf("extern int error_perm;\n");
printf("extern int error_acces;\n");
printf("extern int error_nodevice;\n");
printf("extern int error_proto;\n");
printf("extern int error_isdir;\n");
printf("extern int error_connrefused;\n\n");
printf("extern int error_notdir;\n\n");
printf("extern const char *error_str(int);\n");
printf("extern int error_temp(int);\n\n");
printf("#endif /* _ERROR_H____ */\n");
return 0;
}