@@ -101,10 +101,15 @@ PMMap doAnonymous(LazyPythonClass clazz, @SuppressWarnings("unused") int fd, int
101101 }
102102
103103 @ 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 ) {
105105 return doFile (clazz , fd , length , tagname , ACCESS_DEFAULT , 0 );
106106 }
107107
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+
108113 // mmap(fileno, length, tagname=None, access=ACCESS_DEFAULT[, offset])
109114 @ Specialization (guards = "fd >= 0" )
110115 PMMap doFile (LazyPythonClass clazz , int fd , int length , @ SuppressWarnings ("unused" ) Object tagname , @ SuppressWarnings ("unused" ) int access , long offset ) {
0 commit comments