aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/fmtcheck.c
Commit message (Collapse)AuthorAgeFilesLines
* libc: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-251-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326193
* Remove names from some prototypesCraig Rodrigues2015-09-201-1/+1
| | | | Notes: svn path=/head/; revision=288028
* Add declarations to eliminate -Wmissing-prototypes warningsCraig Rodrigues2015-09-201-0/+1
| | | | Notes: svn path=/head/; revision=288008
* Use const instead of __const, and merge the license change from NetBSD.Xin LI2009-06-231-9/+3
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=194800
* Teach fmtcheck() about wint_t, intmax_t, char *, intmax_t *, andDavid Schultz2008-08-021-34/+98
| | | | | | | | | | | | wide string arguments. Also simplify the code that handles length modifiers and make it more conservative. For instance, be explicit about the modifiers allowed for %d, rather than assuming that anything other than L, q, t, or z implies an int argument. Notes: svn path=/head/; revision=181154
* Teach fmtcheck() about the ' (thousands separator) flag.David Schultz2005-03-211-1/+1
| | | | Notes: svn path=/head/; revision=143905
* When *printf() and *scanf() are compiled without floating-pointDavid Schultz2004-05-021-0/+4
| | | | | | | | support, fmtcheck() should not accept format strings that contain floating-point formats. Notes: svn path=/head/; revision=128818
* Teach fmtcheck(3) about the flags a, A, F, G, t, and z.David Schultz2003-06-291-8/+28
| | | | Notes: svn path=/head/; revision=117014
* Remove improper use of <namespace.h>.Daniel Eischen2002-06-271-6/+2
| | | | | | | Remove fmtcheck from application name space (fix the weak reference). Notes: svn path=/head/; revision=98908
* Fix SCM ID's.David E. O'Brien2002-02-011-6/+2
| | | | Notes: svn path=/head/; revision=90039
* Removed duplicate VCS ID tags, as per style(9).Ruslan Ermilov2001-08-131-1/+0
| | | | Notes: svn path=/head/; revision=81586
* Remove unnecessary #include <stdlib.h>Kris Kennaway2001-07-161-1/+0
| | | | | | | | Obtained from: NetBSD MFC After: 1 week Notes: svn path=/head/; revision=79779
* Add fmtcheck(), a function for checking consistency of format stringKris Kennaway2001-04-171-0/+253
arguments where the format string is obtained from user data, or otherwise difficult to verify statically. Example usage: printf(fmtcheck(user_format, standard_format), arg1, arg2); checks the format string user_format for consistency (same number/order/ type of format operators) with standard_format. If they differ, standard_format is used instead to avoid potential crashes or security violations. Obtained from: NetBSD Reviewed by: -arch Notes: svn path=/head/; revision=75578