@@ -101,10 +101,15 @@ PMMap doAnonymous(LazyPythonClass clazz, @SuppressWarnings("unused") int fd, int
101
101
}
102
102
103
103
@ Specialization (guards = {"fd >= 0" , "isNoValue(access)" , "isNoValue(offset)" })
104
- PMMap doIt (LazyPythonClass clazz , int fd , int length , Object tagname , @ SuppressWarnings ("unused" ) PNone access , @ SuppressWarnings ("unused" ) PNone offset ) {
104
+ PMMap doFile (LazyPythonClass clazz , int fd , int length , Object tagname , @ SuppressWarnings ("unused" ) PNone access , @ SuppressWarnings ("unused" ) PNone offset ) {
105
105
return doFile (clazz , fd , length , tagname , ACCESS_DEFAULT , 0 );
106
106
}
107
107
108
+ @ Specialization (guards = {"fd >= 0" , "isNoValue(offset)" })
109
+ PMMap doFile (LazyPythonClass clazz , int fd , int length , Object tagname , int access , @ SuppressWarnings ("unused" ) PNone offset ) {
110
+ return doFile (clazz , fd , length , tagname , access , 0 );
111
+ }
112
+
108
113
// mmap(fileno, length, tagname=None, access=ACCESS_DEFAULT[, offset])
109
114
@ Specialization (guards = "fd >= 0" )
110
115
PMMap doFile (LazyPythonClass clazz , int fd , int length , @ SuppressWarnings ("unused" ) Object tagname , @ SuppressWarnings ("unused" ) int access , long offset ) {
0 commit comments