Home | History | Annotate | Download | only in Modules

Lines Matching defs:fileno

1022 "Windows: mmap(fileno, length[, tagname[, access[, offset]]])\n\
1024 Maps length bytes from the file specified by the file handle fileno,\n\
1031 Unix: mmap(fileno, length[, flags[, prot[, access[, offset]]]])\n\
1033 Maps length bytes from the file specified by the file descriptor fileno,\n\
1042 To map anonymous memory, pass -1 as the fileno (both versions).");
1108 static char *keywords[] = {"fileno", "length",
1270 int fileno;
1274 static char *keywords[] = { "fileno", "length",
1279 &fileno, &map_size,
1315 XXX: fileno == 0 is a valid fd, but was accepted prior to 2.5.
1317 if (fileno == 0)
1321 if (fileno != -1 && fileno != 0) {
1322 /* Ensure that fileno is within the CRT's valid range */
1323 if (_PyVerify_fd(fileno) == 0) {
1327 fh = (HANDLE)_get_osfhandle(fileno);
1333 lseek(fileno, 0, SEEK_SET);