mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-04 11:42:28 +00:00
Get Python compiler working
It turns out we needed a file length field.
This commit is contained in:
parent
38aece42ba
commit
cabb0a7ede
6 changed files with 6370 additions and 41 deletions
|
@ -26,8 +26,13 @@
|
|||
* @asyncsignalsafe
|
||||
*/
|
||||
int __zipos_fstat(const struct ZiposHandle *h, struct stat *st) {
|
||||
ZTRACE("__zipos_fstat(%`'.*s)",
|
||||
ZIP_CFILE_NAMESIZE(__zipos_get()->map + h->cfile),
|
||||
ZIP_CFILE_NAME(__zipos_get()->map + h->cfile));
|
||||
return __zipos_stat_impl(__zipos_get(), h->cfile, st);
|
||||
int rc;
|
||||
if (!(rc = __zipos_stat_impl(__zipos_get(), h->cfile, st))) {
|
||||
ZTRACE("__zipos_fstat(%`'.*s) → %ld",
|
||||
ZIP_CFILE_NAMESIZE(__zipos_get()->map + h->cfile),
|
||||
ZIP_CFILE_NAME(__zipos_get()->map + h->cfile), st->st_size);
|
||||
return 0;
|
||||
} else {
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue