Lines Matching refs:namebuf
2298 char namebuf[MAX_PATH+5]; /* Overallocate for \\*.*\0 */ in posix_listdir() local
2299 char *bufptr = namebuf; in posix_listdir()
2300 Py_ssize_t len = sizeof(namebuf)-5; /* only claim to have space for MAX_PATH */ in posix_listdir()
2387 char ch = namebuf[len-1]; in posix_listdir()
2389 namebuf[len++] = SEP; in posix_listdir()
2390 strcpy(namebuf + len, "*.*"); in posix_listdir()
2397 hFindFile = FindFirstFile(namebuf, &FileData); in posix_listdir()
2404 return win32_error("FindFirstFile", namebuf); in posix_listdir()
2431 win32_error("FindNextFile", namebuf); in posix_listdir()
2439 return win32_error("FindClose", namebuf); in posix_listdir()
2452 char namebuf[MAX_PATH+5]; in posix_listdir()
2464 strcpy(namebuf, name); in posix_listdir()
2465 for (pt = namebuf; *pt; pt++) in posix_listdir()
2468 if (namebuf[len-1] != SEP) in posix_listdir()
2469 namebuf[len++] = SEP; in posix_listdir()
2470 strcpy(namebuf + len, "*.*"); in posix_listdir()
2475 rc = DosFindFirst(namebuf, /* Wildcard Pattern to Match */ in posix_listdir()
2493 strcpy(namebuf, ep.achName); in posix_listdir()
2498 v = PyString_FromString(namebuf); in posix_listdir()