File tree Expand file tree Collapse file tree 1 file changed +23
-22
lines changed Expand file tree Collapse file tree 1 file changed +23
-22
lines changed Original file line number Diff line number Diff line change 9
9
except :
10
10
pass
11
11
12
+ R_OK = const (4 )
13
+ W_OK = const (2 )
14
+ X_OK = const (1 )
15
+ F_OK = const (0 )
16
+
17
+ O_ACCMODE = 0o0000003
18
+ O_RDONLY = 0o0000000
19
+ O_WRONLY = 0o0000001
20
+ O_RDWR = 0o0000002
21
+ O_CREAT = 0o0000100
22
+ O_EXCL = 0o0000200
23
+ O_NOCTTY = 0o0000400
24
+ O_TRUNC = 0o0001000
25
+ O_APPEND = 0o0002000
26
+ O_NONBLOCK = 0o0004000
27
+
28
+ error = OSError
29
+ name = "posix"
30
+ sep = "/"
31
+ curdir = "."
32
+ pardir = ".."
33
+ environ = {"WARNING" : "NOT_IMPLEMENTED" }
34
+
12
35
13
36
libc = ffilib .libc ()
14
37
@@ -50,28 +73,6 @@ def errno_(val=None):
50
73
execvp_ = libc .func ("i" , "execvp" , "PP" )
51
74
getenv_ = libc .func ("s" , "getenv" , "P" )
52
75
53
- R_OK = const (4 )
54
- W_OK = const (2 )
55
- X_OK = const (1 )
56
- F_OK = const (0 )
57
-
58
- O_ACCMODE = 0o0000003
59
- O_RDONLY = 0o0000000
60
- O_WRONLY = 0o0000001
61
- O_RDWR = 0o0000002
62
- O_CREAT = 0o0000100
63
- O_EXCL = 0o0000200
64
- O_NOCTTY = 0o0000400
65
- O_TRUNC = 0o0001000
66
- O_APPEND = 0o0002000
67
- O_NONBLOCK = 0o0004000
68
-
69
- error = OSError
70
- name = "posix"
71
- sep = "/"
72
- curdir = "."
73
- pardir = ".."
74
- environ = {"WARNING" : "NOT_IMPLEMENTED" }
75
76
76
77
77
78
def check_error (ret ):
You can’t perform that action at this time.
0 commit comments