History log of /src/lib/libc/stdio/local.h |
Revision | | Date | Author | Comments |
1.38 |
| 18-Jun-2014 |
christos | add mkostemp, mkostemps, mkstemps from FreeBSD.
|
1.37 |
| 04-Oct-2013 |
christos | branches: 1.37.2; avoid linker warning for compat symbols that are used internally in libc, by introducing a hidden compat_foo() function, using that internally in libc, and exposing foo as a strong alias to compat_foo(). I am open for better ideas.
|
1.36 |
| 19-Apr-2013 |
joerg | Add scanf_l and wscanf_l families.
|
1.35 |
| 19-Apr-2013 |
joerg | Add explicit locale versions for the printf family. Replace asprintf, snprintf and sprintf with simple wrappers around the corresponding va_list functions to reduce code duplication.
|
1.34 |
| 27-Mar-2012 |
christos | branches: 1.34.2; - widen the internal read and write calls to match the syscalls - add funopen2() which provides access to flush() and the wider calls. - make use of the new flush call in fmemopen()
|
1.33 |
| 15-Mar-2012 |
christos | fix signature.
|
1.32 |
| 15-Mar-2012 |
christos | ansi prototypes.
|
1.31 |
| 22-Jan-2012 |
christos | From tnozaki@: make fpos_t a complex object that keeps track of the parse 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@
|
1.30 |
| 17-Jul-2011 |
joerg | branches: 1.30.2; Retire varargs.h support. Move machine/stdarg.h logic into MI sys/stdarg.h and expect compiler to provide proper builtins, defaulting to the GCC interface. lint still has a special fallback. Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and derive va_list as required by standards.
|
1.29 |
| 24-Oct-2010 |
tron | Replace _FPOS_OVERFLOW() macro with a static inline function called __fpos_overflow() that doesn't cause any lint warnings.
|
1.28 |
| 23-Oct-2010 |
christos | tell lint to shut up.
|
1.27 |
| 22-Oct-2010 |
christos | not that it can happen, but make the test more robust.
|
1.26 |
| 22-Oct-2010 |
christos | implement EOVERFLOW
|
1.25 |
| 06-Sep-2010 |
christos | add dprintf and vdprintf
|
1.24 |
| 11-Jan-2010 |
joerg | Use a proper char */size_t pair in __sfileext to keep track of the line buffer for fgetln and fgetwln. Simplifies code by dropping the INT_MAX related logic. Drop conditionals around FREELB, free(NULL) is valid.
|
1.23 |
| 02-Dec-2009 |
roy | Reinstate __getdelim which does no locking. Callers are now required to FLOCKFILE so they can operate on fp as well.
|
1.22 |
| 01-Dec-2009 |
roy | Remove __getdelim and just use getdelim. fgetstr now works with strings up to SSIZE_MAX as a result, but may reallocate buffers needlessly just like it used to when the buffer size exceeds INT_MAX. fgetstr converts errno EOVERFLOW to EINVAL on getdelim error.
|
1.21 |
| 24-Sep-2009 |
roy | __getdelim works on strings up to SIZE_MAX - 2 and returns 0 on EOF. getdelim works on strings up to SSIZE_MAX and returns -1 on EOF. __fgetstr is now just a wrapper around __getdelim and ensures that the buffer doesn't overflow the one provided by FILE. __slbexpand is now static in fgetwln as it is the only consumer of that func.
|
1.20 |
| 14-May-2005 |
christos | Add the missing wide char support functions from freebsd. XXX: long double support is missing until we get gdtoa, and add the necessary wide functions.
|
1.19 |
| 09-Feb-2005 |
kleink | A little libc namespace housekeeping exercise: * Make vfprintf_unlocked() an internal function, c.f. __svfscanf_unlocked(). * Add internal names for arc4random(), endnetpath(), fhstatvfs(), fstatvfs(), mkstemp(), shquote(), statvfs(), taddr2uaddr(), uaddr2taddr(), uuid_create_nil(), uuid_is_nil(), and wcwidth(). * Include namespace.h where supposed to.
|
1.18 |
| 10-May-2004 |
drochner | After discussion with christos, turn fgetstr() into an internal function. Its API in inherently non-threadsafe (and it depends on certain properties of the underlying stdio implementation), so it shouldn't be a first-class function for general use, polluting the application namespace. Also remove the FLOCKFILE() code from it - this is under control of the calling function now. (XXX I'm not sure whether the FLOCKFILE() should be kept in fgetln(), this function cannot be used in multiple threads anyway. It doesn't hurt much, and it might prevent corruption of internal FILE structures.)
|
1.17 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
|
1.16 |
| 18-Jul-2003 |
nathanw | Move guts of flockfile()/funlockfile() to __flockfile_internal(), which takes an additional argument indicating whether this is an internal caller taking the lock or an external (application) caller. When making an internal lock, save the current thread cancellation state and disable cancellation until the matching unlock. This should prevent canccelled threads from exiting inside of stdio while holding a file lock and potentially leaving other parts of the FILE structure in an inconsistent state.
|
1.15 |
| 07-Mar-2003 |
tshiozak | add fgetws() and fputws() (lib/20576).
Note: fgetws.c, fgetws.3, fputws.c and fputws.3 are obtained from FreeBSD, and fitted by sigsegv@infoseek.jp and me.
|
1.14 |
| 01-Feb-2003 |
nathanw | Revert the conversion to libpthread's recursive mutexes. Too much trouble is caused by the memory allocation in the mutex initialization, and uncontested mutexes and condition variables have become faster in the meantime.
|
1.13 |
| 21-Jan-2003 |
nathanw | Use recursive mutexes from libpthread rather than implementing our own with normal mutexes and condition variables.
|
1.12 |
| 18-Jan-2003 |
thorpej | Merge the nathanw_sa branch.
|
1.11 |
| 24-May-2002 |
thorpej | * Move the prototype of __svfscanf from <stdio.h> to libc/stdio/local.h. * Add prototype for vfscanf to <stdio.h>. * Remove #define of vfscanf to __svfscanf from <stdio.h>. * Include local.h in libc files which need __svfscanf. * Add vfscanf weak alias to __svfscanf.
Fixes standards/16997.
NOTE: libc minor not bumped -- ride on the bump to 12.84 made by itojun today.
|
1.10 |
| 07-Dec-2001 |
yamt | - make FILE structure extensible without breaking binary-compatibility. - add fputwc, fgetwc, fwide and related functions. - add hooks needed to maintain the orientation of file stream.
|
1.9 |
| 27-Jul-1998 |
mycroft | branches: 1.9.12; Add a mktempdir(), like mkstemp(), but it creates a directory.
|
1.8 |
| 27-Jul-1998 |
mycroft | If AUDIT, do not compile certain functions.
|
1.7 |
| 02-Feb-1998 |
perry | merge lite-2
|
1.6 |
| 13-Jul-1997 |
christos | Fix RCSID's 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.
|
1.5 |
| 02-Feb-1995 |
jtc | Merged with 4.4lite. Changed to conform to NetBSD's new RCS Id convention.
|
1.4 |
| 04-Jan-1994 |
cgd | rename fgetline()
|
1.3 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.2 |
| 07-May-1993 |
cgd | update with new files from Chris Torek
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.3 |
| 02-Feb-1998 |
perry | import lite-2
|
1.1.1.2 |
| 02-Feb-1995 |
jtc | imported from 44lite
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.9.12.2 |
| 21-Jun-2002 |
nathanw | Catch up to -current.
|
1.9.12.1 |
| 28-Jan-2002 |
nathanw | Catch up to -current.
|
1.30.2.2 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.30.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.34.2.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.34.2.1 |
| 23-Jun-2013 |
tls | resync from head
|
1.37.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|