aboutsummaryrefslogtreecommitdiff
path: root/src/stdio/ofl.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* split internal lock API out of libc.h, creating lock.h•••this further reduces the number of source files which need to include libc.h and thereby be potentially exposed to libc global state and internals. this will also facilitate further improvements like adding an inline fast-path, if we want to do so later. Rich Felker2018-09-121-1/+1
* revise the definition of multiple basic locks in the code•••In all cases this is just a change from two volatile int to one. Jens Gustedt2018-01-091-1/+1
* refactor stdio open file list handling, move it out of global libc struct•••functions which open in-memory FILE stream variants all shared a tail with __fdopen, adding the FILE structure to stdio's open file list. replacing this common tail with a function call reduces code size and duplication of logic. the list is also partially encapsulated now. function signatures were chosen to facilitate tail call optimization and reduce the need for additional accessor functions. with these changes, static linked programs that do not use stdio no longer have an open file list at all. Rich Felker2015-06-161-0/+16