summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/ap/stdio/_IO_newfile.c
AgeCommit message (Collapse)Author
2014-05-29ape/stdio: set errno to EMFILE when running out of streamscinap_lenrek
2013-03-11ape/stdio: make fopen() quasi threadsafe for pythoncinap_lenrek
python uses processes sharing memory. it requires at least fopen() to be called by multiple threads at once so we introduce _IO_newfile() which allocates the FILE structure slot under a lock.