#
300265 |
|
20-May-2016 |
truckman |
MFC r299524
Use strlcpy() instead of strncpy() when copying the encoding value to ensure that the destination is NUL terminated. Length truncation of one more character should not be an issue since encoding values that long are not supported by libc. The destination string is treated as a NUL terminated string, but it is only passed to strcmp() for comparison to a set of shorter, fixed length strings, so this is not a serious problem.
Reported by: Coverity CID: 974769
|
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
216370 |
|
11-Dec-2010 |
joel |
Remove the advertising clause from UCB copyrighted files in usr.bin. This is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
Also add $FreeBSD$ to a few files to keep svn happy.
Discussed with: imp, rwatson
|
#
201227 |
|
29-Dec-2009 |
ed |
ANSIfy almost all applications that use WARNS=6.
I was considering committing all these patches one by one, but as discussed with brooks@, there is no need to do this. If we ever need/want to merge these changes back, it is still possible to do this per application.
|
#
200462 |
|
13-Dec-2009 |
delphij |
Revert most part of 200420 as requested, as more review and polish is needed.
|
#
200420 |
|
11-Dec-2009 |
delphij |
Remove unneeded header includes from usr.bin/ except contributed code.
Tested with: make universe
|
#
195676 |
|
14-Jul-2009 |
ed |
Make mklocale work again, now that fwrite()'s return codes are different.
Submitted by: Navdeep Parhar <nparhar gmail com> Approved by: re (kib)
|
#
175556 |
|
21-Jan-2008 |
ache |
Understand newly introduced "ASCII" encoding
|
#
172261 |
|
20-Sep-2007 |
kevlo |
Use NULL instead of 0 for the return value of fopen().
Approved by: re (kensmith)
|
#
166529 |
|
06-Feb-2007 |
kevlo |
getopt(3) returns -1, not EOF.
|
#
146261 |
|
16-May-2005 |
ru |
Make <runefile.h> internal to libc.
Suggested by: phantom
|
#
142582 |
|
26-Feb-2005 |
ru |
Make the format of LC_CTYPE files architecture independent by introducing the disk formats for _RuneLocale and friends.
The disk formats do not have (useless) pointers and have 32-bit quantities instead of rune_t and long. (htonl(3) only works with 32-bit quantities, so there's no loss).
Bootstrap mklocale(1) when necessary. (Bootstrapping from 4.x would be trivial (verified), but we no longer provide pre-5.3 source upgrades and this is the first commit to actually break it.)
|
#
136605 |
|
17-Oct-2004 |
tjr |
Use <runetype.h> instead of <rune.h> since the latter is going away.
|
#
136602 |
|
16-Oct-2004 |
tjr |
Remove explicit support for generating LC_CTYPE data files that specify the obsolete "UTF2" encoding.
|
#
130961 |
|
23-Jun-2004 |
tjr |
Prefix the names of members of _RuneLocale and its sub-structures with ``__'' to avoid polluting the namespace. This doesn't change the documented rune interface at all, but breaks applications that accessed _RuneLocale directly.
|
#
122145 |
|
05-Nov-2003 |
davidxu |
Add gb2312 encoding.
|
#
118147 |
|
29-Jul-2003 |
ache |
Allow GB18030 locale
|
#
116502 |
|
17-Jun-2003 |
charnier |
Bump WARNS to 6. Add usage(). Use provided xmalloc() instead of malloc(). Use err().
|
#
115776 |
|
03-Jun-2003 |
ache |
Change fatal to warnx() for unknown encoding
|
#
115722 |
|
02-Jun-2003 |
ache |
Hardcore supported encodings list
|
#
108158 |
|
21-Dec-2002 |
tjr |
Mark the INVALID keyword as being deprecated since the concept of "invalid runes" is useless without the rest of the deprecated rune interface.
|
#
105589 |
|
20-Oct-2002 |
ache |
Use more verbose diagnostics for wrong DIGIT range
|
#
105548 |
|
20-Oct-2002 |
ache |
Add checks for DIGIT set consistency to prevent common misinterpretation automatically. Remove output file on error. Staticize functions declared as static.
|
#
99984 |
|
14-Jul-2002 |
alfred |
WARNS=4
|
#
99982 |
|
14-Jul-2002 |
alfred |
WARNS=2, de-__P()
|
#
95643 |
|
28-Apr-2002 |
markm |
Declarations cleanup; make sure externs are in a common header. Fix declarations, casts and return values.
|
#
95258 |
|
22-Apr-2002 |
des |
Usage style sweep: spell "usage" with a small 'u'. Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
|
#
90868 |
|
18-Feb-2002 |
mike |
o Move NTOHL() and associated macros into <sys/param.h>. These are deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland.
Tested on: alpha, i386 Reviewed by: bde, jake, tmm
|
#
81606 |
|
13-Aug-2001 |
peter |
Initialize fp in main()
|
#
57035 |
|
08-Feb-2000 |
obrien |
There is a problem in that one cannot use ctype.h at the same time as parts of the C++ stdlib. Our ctype.h uses symbols of the form _<X> to denote the various character classes. Our ctype.h also extends the usual ctype.h offering by adding the "_T" (special) class. Problem is parts of the STL also use the symbol "_T" as its parameterized type. These two uses are incompatible.
Thus change the form of the symbols used in ctype to something that fixes the current problem and is less likely to cause conflicts in the future.
Requested by: Tomoaki NISHIYAMA <tomoaki@biol.s.u-tokyo.ac.jp> Ok'ed by: JKH
|
#
38022 |
|
02-Aug-1998 |
bde |
Fixed printf format errors.
|
#
33648 |
|
20-Feb-1998 |
jb |
Add #include <string.h> to get prototypes.
|
#
21393 |
|
07-Jan-1997 |
ache |
Fix bugs in runes data handling
Should go into 2.2 Submitted by: Mitsuru IWASAKI <iwasaki@pc.jaring.my>
|
#
2509 |
|
05-Sep-1994 |
bde |
u_long -> unsigned long so that we don't depend on namespace pollution in <stdio.h>.
|
#
1591 |
|
27-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1590, which included commits to RCS files with non-trunk default branches.
|
#
1590 |
|
27-May-1994 |
rgrimes |
BSD 4.4 Lite Usr.bin Sources
|