Lines Matching refs:fileno
1147 "Windows: mmap(fileno, length[, tagname[, access[, offset]]])\n\
1149 Maps length bytes from the file specified by the file handle fileno,\n\
1156 Unix: mmap(fileno, length[, flags[, prot[, access[, offset]]]])\n\
1158 Maps length bytes from the file specified by the file descriptor fileno,\n\
1167 To map anonymous memory, pass -1 as the fileno (both versions).");
1224 static char *keywords[] = {"fileno", "length",
1398 int fileno;
1402 static char *keywords[] = { "fileno", "length",
1407 &fileno, &map_size,
1413 fileno, map_size, access, offset) < 0) {
1448 XXX: fileno == 0 is a valid fd, but was accepted prior to 2.5.
1450 if (fileno == 0)
1455 if (fileno != -1 && fileno != 0) {
1456 /* Ensure that fileno is within the CRT's valid range */
1457 fh = _Py_get_osfhandle(fileno);
1462 lseek(fileno, 0, SEEK_SET);