summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vfscanf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* include float.h for the LDBL_MAX_EXP cpp test in floatio.hjsg2016-10-301-1/+2
|
* Delete casts to off_t and size_t that are implied by assignmentsguenther2016-09-211-2/+2
| | | | | | | or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@
* Add framework for resolving (pun intended) libc namespace issues, usingguenther2015-08-311-1/+2
| | | | | | | | | | | | wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here. tests clean on i386, amd64, sparc64, powerpc, and mips64 naming feedback from kettenis@ and millert@ ok kettenis@
* It's still safe to assumed 'signed' existsguenther2014-03-191-3/+3
|
* add some prototypes, casts, includes, parenthesis, and whatnot totedu2013-04-171-1/+2
| | | | silence some warnings.
* Add support for C99 %ls, %lc, and %l[ format directives to scanf(3).stsp2012-01-181-1/+169
| | | | | | Based on code from FreeBSD. Tested by myself (full release/install cycle on i386 and sparc64) and ajacoutot. Man page help from jmc.
* Make __svfscanf() the unlocked, core of vfscanf() and use it inguenther2011-11-081-13/+15
| | | | | | sscanf()/vsscanf() where locking is unnecessary. ok millert@
* Recognize %a, %A format specifiers, per C99.martynas2011-07-031-7/+5
|
* Properly implement the long double (%Lf) scanf without the precisionmartynas2011-07-031-8/+10
| | | | loss.
* Fix the handle locking in stdio to use flockfile/funlockfilekurt2009-11-091-3/+9
| | | | | | | | | | | | | internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is threaded to obtain the necessary locking. A private mutex is added to protect __sglue, the internal list of FILE handles, and another to protect the one-time initialization. Some routines in libc that use getc() change to use getc_unlocked() as they're either protected by their own lock or aren't thread-safe routines anyway. committing on behalf of and okay guenther@ now that we have install media space available.
* Back out previous commit, as it caused too much growth for the installguenther2009-10-221-9/+3
| | | | media to fit
* Fix the handle locking in stdio to use flockfile/funlockfileguenther2009-10-211-3/+9
| | | | | | | | | | | | internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is threaded to obtain the necessary locking. A private mutex is added to protect __sglue, the internal list of FILE handles, and another to protect the one-time initialization. Some routines in libc that use getc() change to use getc_unlocked() as they're either protected by their own lock or aren't thread-safe routines anyway. ok kurt@, earlier version tested by sthen@ and jj@
* accept %F, which actually behaves the same as %f. per C99martynas2009-04-051-1/+2
| | | | ok millert@
* Pull in inttypes.h, not stdint.h so we get the prototypes formillert2006-01-131-4/+4
| | | | strtoimax/strtoumax.
* Use long long and intmax_t instead of quad_t throughout. Adapted inmillert2006-01-131-40/+57
| | | | part from FreeBSD.
* Fix the handling of negative hexadecimal numbers in integer formats.millert2006-01-081-10/+16
| | | | From NetBSD.
* Adapt things to use __type_t instead of _BSD_TYPE_T_millert2006-01-061-2/+2
| | | | | Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
* Do not overlap flags; problem introduced when new escapes were added.millert2006-01-031-7/+7
|
* Add %hhd to *printf and *scanf as well as %z to *scanf. This wasmillert2005-12-191-10/+30
| | | | | sent out and approved about 6 months ago and has been rotting in my tree ever since.
* zap remaining rcsid.espie2005-08-081-4/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* next citrus step.espie2005-06-171-1/+3
| | | | | reviewed by millert, otto, kevlo, naddy, kettenis... libc+libstdc++ bump
* Use '\0' not 0 when storing as a char, part from Andrey Matveev.millert2005-05-281-5/+5
|
* let vfscanf be a real function. Use a weak_alias on systems where thisespie2005-05-111-2/+6
| | | | | | | | is feasible. Okay millert@ There's a major libc bump coming that is going to cover this as well...
* make sure the implementation matches the prototype..pat2005-03-311-2/+2
| | | | | | char const * -> const char * ok otto@ deraadt@
* deregister + ansify, no change in object code. ok deraadt@ millert@otto2004-09-281-17/+12
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-5/+1
|
* a first pass at -Wallderaadt2001-07-091-1/+2
|
* Better fix for %n and whitespace. Chris Torek <torek@bsdi.com>millert1998-01-201-12/+3
|
* Ignore whitespace separating a conversion and %n. There may bemillert1998-01-191-2/+7
| | | | a cleaner way to do this.
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-2/+2
|
* Remove dead codetholo1996-09-151-3/+3
| | | | | | Remove unused variables Silence some warnings lint(1) is your friend
* Fix RCS idstholo1996-08-191-6/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+766