Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Delete useless call to setlocale(3). | 2016-11-18 | 1 | -13/+9 | |
| | | | | | | | | | | | | While the C library function printf(3) is used here and is locale-dependent, the printf(1) utility does not use the locale dependent parts %lc and %ls. While POSIX requires LC_NUMERIC support, we intentionally don't implement that in printf(3). In summary, no functional change. While here, sort headers and use the usual __dead usage() idiom. Based on a patch from Jan Stary <hans at stare dot cz>. OK bentley@ | ||||
* | fix signed char extension bugs. from fade@cock.li. ok guenther. | 2016-07-27 | 1 | -4/+4 | |
| | | | | | | As a personal remark, I'll add that it's not necessary to cast a value to a function's return type. The compiler is happy to do that for you. But such casts can hide warnings and bugs. | ||||
* | Change all tame callers to namechange to pledge(2). | 2015-10-09 | 1 | -3/+3 | |
| | |||||
* | obvious tame "stdio". For those not keeping score, this is another | 2015-10-06 | 1 | -1/+5 | |
| | | | | | program which has had string mismanagement bugs before, probably of the exploitable fashion.. if used in the wrong kind of script.. | ||||
* | don't use plural "arguments" in SYNOPSIS, since "..." makes it | 2014-05-25 | 1 | -2/+2 | |
| | | | | | redundant; tweak the rest of the page to stop using both forms, and tweak usage(), which was wrong anyway, to match this; | ||||
* | Use errc/warnc to simplify code. | 2014-05-20 | 1 | -2/+2 | |
| | | | | | | Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@ | ||||
* | Handle passing zero to a variable fieldwidth or precision. | 2014-04-18 | 1 | -6/+9 | |
| | | | | ok deraadt@ | ||||
* | isxdigit() needs unsigned char cast for this specific argument | 2013-11-20 | 1 | -2/+2 | |
| | | | | ok ratchov | ||||
* | Warn and stop processing if the format string ends with an backslash. | 2011-06-18 | 1 | -1/+6 | |
| | | | | From Andres Perera (andres.p at zoho.com), ok otto@, millert@ | ||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | 2009-10-27 | 1 | -12/+1 | |
| | | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms | ||||
* | remove BUILTIN/SHELL cruft that used to be needed for sh, which is | 2009-07-19 | 1 | -30/+2 | |
| | | | | gone; and killed in csh w. rev. 1.7. ok millert@ | ||||
* | be more careful with parsing format string. we can't do multiple | 2009-07-17 | 1 | -11/+23 | |
| | | | | | | | widths or precisions. fixes crash reported by Maksymilian Arciemowicz, where printf(3) took more args from stack than printf(1) passed it. behavior consistent with linucses and ieee 1003.1-2001. ok millert@, otto@ | ||||
* | enable support for %a, %A, %F. ok theo | 2008-09-08 | 1 | -2/+5 | |
| | |||||
* | printf(1) does not take any options but still needs to ignore the "--" | 2008-06-19 | 1 | -2/+8 | |
| | | | | (end of options) flag. OK deraadt@ espie@ | ||||
* | zap unused variables, ok beck@ | 2004-05-31 | 1 | -3/+2 | |
| | |||||
* | Don't not use getopt() in printf(1) since it causes formats beginning | 2003-06-23 | 1 | -15/+4 | |
| | | | | | with a '-' to be interpreted as flags. Noticed by Alan Barrett. There is really no reason for this to be a builtin in csh... | ||||
* | mostly ansi cleanup; pval ok | 2003-06-10 | 1 | -23/+15 | |
| | |||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-03 | 1 | -7/+3 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | snprintf | 2003-03-30 | 1 | -3/+3 | |
| | |||||
* | We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft. | 2002-02-19 | 1 | -21/+2 | |
| | |||||
* | Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | 2002-02-16 | 1 | -14/+14 | |
| | |||||
* | kill more registers | 2001-11-19 | 1 | -6/+6 | |
| | | | | millert@ ok | ||||
* | repair same static buf oflow in printf(1) and printf(1) internal inside csh(1) | 2000-12-22 | 1 | -5/+29 | |
| | |||||
* | r?index -> strr?chr | 1997-01-17 | 1 | -6/+6 | |
| | |||||
* | rcsid | 1996-06-26 | 1 | -1/+3 | |
| | |||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+528 | |