summaryrefslogtreecommitdiffstats
path: root/sys/libkern/iconv.c
Commit message (Collapse)AuthorAgeFilesLines
* Switch to our preferred 2-clause BSD license.joel2010-04-071-7/+1
| | | | Approved by: bp
* Split tolower/toupper code from usual xlat16 kiconv table, and make itdelphij2009-06-221-0/+18
| | | | | | | | possible to do tolower/toupper independently without code conversion. Submitted by: imura (but bugs are mine) Obtained from: http://people.freebsd.org/~imura/kiconv/ (1_kiconv_wctype_kern.diff, 1_kiconv_wctype_user.diff)
* Add simple locking for the in-kernel iconv code. Translation operationsjhb2008-12-051-5/+27
| | | | | | | | | | do not need any locking. Opening and closing translators is serialized using an sx lock. Note: This depends on the earlier fix to kern_module.c to properly order MOD_UNLOAD events. MFC after: 2 months
* Normalize a significant number of kernel malloc type names:rwatson2005-10-311-2/+2
| | | | | | | | | | | | | | | | | | | - Prefer '_' to ' ', as it results in more easily parsed results in memory monitoring tools such as vmstat. - Remove punctuation that is incompatible with using memory type names as file names, such as '/' characters. - Disambiguate some collisions by adding subsystem prefixes to some memory types. - Generally prefer lower case to upper case. - If the same type is defined in multiple architecture directories, attempt to use the same name in additional cases. Not all instances were caught in this change, so more work is required to finish this conversion. Similar changes are required for UMA zone names.
* - Fix checking range of strings of struct iconv_add_in in libsmb and libkiconv,imura2005-08-241-0/+6
| | | | | | - Add checking range of strings to iconv_sysctl_add(). Submitted by: Rudolf Cejka
* Temporary restore a part of rev 1.6.imura2005-07-231-4/+2
| | | | | | | | | We must not increase a capability of buffer size here, because codes which call these functions expect that dst and src are the same size. This will cause problem when someone convert a character whose length is different between charsets on smbfs which was changed to use xlat16 converter.
* /* -> /*- for copyright notices, minor format tweaks as necessaryimp2005-01-071-1/+1
|
* Convert the vfsconf list to a TAILQ.phk2004-07-271-8/+3
| | | | | | | | Introduce vfs_byname() function to find things on it. Staticize vfs_nmount() function under the name vfs_donmount(). Various cleanups.
* - Support for multibyte charsets in LIBICONV.fjoe2003-09-261-5/+50
| | | | | | | | - CD9660_ICONV, NTFS_ICONV and MSDOSFS_ICONV kernel options (with corresponding modules). - kiconv(3) for loadable charset conversion tables support. Submitted by: Ryuichiro Imura <imura@ryu16.org>
* Use __FBSDID().obrien2003-06-111-2/+4
|
* Back out M_* changes, per decision of the TRB.imp2003-02-191-2/+2
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-2/+2
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Fix a bunch of s/int */size_t */.mux2002-10-061-2/+4
|
* Convert GNU variadic macros to the ISO 9X variety.markm2002-07-151-1/+3
|
* Add function prototypes and base module for kernel side iconv library.bp2001-04-091-0/+479
Add simple "xlat" converter which performs 8to8 table based conversion. Unicode converter will be added in the near future. Reviewed by: silence on arch@ Files placement reviewed by: bde Obtained from: smbfs
OpenPOWER on IntegriCloud