summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/findfp.c
AgeCommit message (Collapse)Author
2012-03-27- widen the internal read and write calls to match the syscallschristos
- add funopen2() which provides access to flush() and the wider calls. - make use of the new flush call in fmemopen()
2012-03-15- ansify, knf.christos
- no functional changes
2012-01-22From tnozaki@: make fpos_t a complex object that keeps track of the parsechristos
state of the stream. Change argument of the seek function to funopen() from fpos_t to off_t. Make f{g,s}etpos() use the new fpos_t struct, while providing backwards compatible entry points. Approved by releng@
2010-09-06add dprintf and vdprintfchristos
2010-01-11Use a proper char */size_t pair in __sfileext to keep track of the linejoerg
buffer for fgetln and fgetwln. Simplifies code by dropping the INT_MAX related logic. Drop conditionals around FREELB, free(NULL) is valid.
2006-10-07Grr, adjust last so that it works with our busted lint(1).thorpej
2006-10-07Use explicit initializers in STDEXTthorpej
2006-10-04fix gcc -Werror -Wmissing-braces problemtnozaki
mbstate_t(this is opaque object)'s initializer should be ``{ 0 }'', so changed 1st field of union from character array to integer.
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-07-18Add fields to struct __sfileext to track how many times the lock has beennathanw
taken by internal stdio functions, and what the cancellation state was when the first such lock was taken.
2003-02-01Revert the conversion to libpthread's recursive mutexes. Too muchnathanw
trouble is caused by the memory allocation in the mutex initialization, and uncontested mutexes and condition variables have become faster in the meantime.
2003-01-21Use recursive mutexes from libpthread rather than implementingnathanw
our own with normal mutexes and condition variables.
2003-01-18Merge the nathanw_sa branch.thorpej
2002-03-12fully initialize the structure to avoid gcc complaints.christos
2001-12-07- make FILE structure extensible without breaking binary-compatibility.yamt
- add fputwc, fgetwc, fwide and related functions. - add hooks needed to maintain the orientation of file stream.
2000-01-21Just call fflush() from _cleanup(), since it does the right locking.mycroft
1998-11-15delintchristos
1998-10-18Replace use of getdtablesize() with (the non-deprecated) sysconf(), hence nokleink
need for an internal name for the former any more; suggested by Matthew Green.
1998-10-16Need "namespace.h" for getdtablesize().kleink
1998-02-03remove obsolete register declarationsperry
1998-01-22Use rwlocks as appropriate.jtc
1997-07-13Fix RCSID'schristos
Fix gcc warnings. Add prototypes for functions that were declared in more than one place to local.h or extern.h and use that instead.
1995-02-02Merged with 4.4lite.jtc
Changed to conform to NetBSD's new RCS Id convention.
1994-12-08fix pr 594, pointed out by Chuck Silvers. fix taken from 4.4-Lite, rathercgd
than his patch. (functionally identical, though...)
1993-12-31Add explicit return types to function definitions.jtc
1993-08-26Declare rcsid strings so they are stored in text segment.jtc
1993-08-01Add RCS identifiers.mycroft
1993-03-21initial import of 386bsd-0.1 sourcescgd