summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Add the userland part of the NET_RT_IFMALIST sysctl MIB. A new function,bms2003-11-143-2/+322
| | | | | | getifmaddrs(), is added to retrieve current multicast group memberships. Reviewed by: harti
* u_int8_t cannot carry a number greater than 255.ume2003-11-141-3/+1
| | | | Reported by: nectar
* - Add documentation for EBUSY.alc2003-11-141-2/+4
| | | | | - Remove EIO. - Add a cross reference to mlock(2).
* - Use the magic for ___sigreturn in __sigset.jeff2003-11-141-3/+11
| | | | | | | | - In __sigreturn call sigprocmask() to restore our signal state rather than returning through sigreturn(). jmp to ___sigreturn to restore our register state following this. Requested by: pete
* Use __sfvwrite() instead of __sputc() via __fputwc() to write to faketjr2003-11-121-1/+30
| | | | | | | | string files (__SSTR flag set). This is necessary because __sputc() does not respect the __SALC flag, and crashes trying to flush the buffer instead of resizing it. PR: 59167
* - Markup fix-ups (add .Dq, and some hard line breaks at the endkensmith2003-11-111-4/+10
| | | | | | of sentences). Approved by: blackend (mentor)
* - Add a note about how jail(2) effects the securelevel.kensmith2003-11-111-0/+6
| | | | | Reviewed by: rwatson Approved by: blackend (mentor)
* Add information about the EVFILT_NETDEV filterbrueffer2003-11-111-0/+24
| | | | | | PR: docs/56872 (based on) Submitted by: Suleiman Souhlal <refugee@vt.edu> Reviewed by: hmp, jmg
* Fix a typo that caused mbrtowc() to always return 0.tjr2003-11-111-1/+1
|
* Add a section documenting the sysctl(8) tunables that influence thejkoshy2003-11-111-2/+15
| | | | | operation of ktrace(2). Add a cross-reference to sysctl(8). Make the language of rev 1.22 more consistent with the rest of the manual page.
* Improve the performance of radixsort() whenkientzle2003-11-111-0/+11
| | | | | | | | | | | | | sorting strings with common prefixes by noting when all the strings land in just one bin. Testing shows significant speedups (on the order of 30%) on strings with common prefixes and no slowdowns on any of my test cases. Submitted by: Markus Bjartveit Kruger <markusk@pvv.ntnu.no> PR: 58860 Approved by: gordon (mentor)
* Have utrace(2) return ENOMEM if malloc() fails. Document this errorjkoshy2003-11-111-4/+6
| | | | | | return in its manual page. Reviewed by: jhb
* Remove ',' accidentally added after ".Xr fork 2".ghelmer2003-11-101-1/+1
|
* Prevent abnormal termination of a child daemon process when createdghelmer2003-11-102-3/+35
| | | | | | | | | | by a parent that is a session leader (e.g., login shell) by ignoring SIGHUP in before calling fork(2) and then restoring SIGHUP's action after setsid(3). Based on the patch by Martin Kammerhofer <mkamm@gmx.net>. PR: bin/25462 Reviewed by: bde, alex.neyman@auriga.ru
* Document EINVAL for len == 0.des2003-11-101-1/+1
|
* Document KTR_DROP.jkoshy2003-11-101-0/+9
|
* Virtual addresses in headers of ELF files for dynamic objects needmarcel2003-11-081-6/+9
| | | | to be relocated before they can be used as pointers.
* Add one more cross-reference to gb2312(5).tjr2003-11-081-0/+1
|
* Add cross-references to new gb2312(5) manual page.tjr2003-11-082-0/+2
|
* Add a fairly simple manual page for the new GB2312 encoding.tjr2003-11-082-1/+58
|
* Remove unused #includes.tjr2003-11-085-11/+0
|
* Use __inline instead of inline.tjr2003-11-081-1/+1
|
* Refer to wide characters instead of runes. Remove redundant example locale.tjr2003-11-082-246/+36
| | | | | | Catch up with renaming of "Japanese" to "ja_JP.eucJP". Comment out the statement that EUC is provided for compatibility with UNIX-based systems; this is not a very good opening paragraph.
* Refer to wide characters instead of runes.tjr2003-11-082-4/+6
|
* Rephrase .Nd description to contain the keykientzle2003-11-061-1/+1
| | | | | | | words "pattern" and "test"; this should make it easier to find with "man -k" Approved by: gordon (mentor)
* Add gb2312 encoding.davidxu2003-11-053-1/+120
|
* Remove #include of spinlock.h from libc_private.h. Declare spinlocks asdeischen2003-11-052-5/+4
| | | | | | | struct _spinlock. Keep the typedef in for now; another set of changes may come around to clean up consumers of spinlocks. Requested by: bde
* Pass NULL instead of a pointer to a zeroed mbstate_t object.tjr2003-11-056-37/+17
|
* Pass NULL instead of a pointer to a zeroed mbstate_t object.tjr2003-11-052-10/+4
|
* Implement mbrtowc() and wcrtomb() directly (sync with big5.c).tjr2003-11-051-53/+50
|
* Externalize malloc's spinlock so that a thread library can takedeischen2003-11-042-0/+9
| | | | | | | | | | | it around an application's fork() call. Our new thread libraries (libthr, libpthread) can now have threads running while another thread calls fork(). In this case, it is possible for malloc to be left in an inconsistent state in the child. Our thread libraries, libpthread in particular, need to use malloc internally after a fork (in the child). Reviewed by: davidxu
* Pass mbrtowc() and wcrtomb() NULL instead of a pointer to a freshly zeroedtjr2003-11-043-9/+3
| | | | | | | mbstate_t object that they ignore. The zeroing is fairly expensive, and it will never be necessary in these functions; when we support state-dependent encodings, we will pass in a pointer to the file's mbstate_t object, and only zero it at the time the file gets opened.
* Add a reference to the new utrace(2) manual page.tjr2003-11-041-1/+2
|
* When printing ACLs, truncate user and group names if they're too long,rwatson2003-11-031-3/+5
| | | | | | | | | rather than generating an error. This is consistent with other tools printing user and group names, and means you can read the ACL using our tools rather than being up a creek. PR: 56991 Submitted by: Michael Bretterklieber <mbretter@a-quadrat.at>
* Convert the Big5, EUC, MSKanji and UTF-8 encoding methods to implementtjr2003-11-024-254/+233
| | | | | | mbrtowc() and wcrtomb() directly. GB18030, GBK and UTF2 are left unconverted; GB18030 will be done eventually, but GBK and UTF2 may just be removed, as they are subsets of GB18030 and UTF-8 respectively.
* Remove TODO comment about creating a macro version of towctrans().tjr2003-11-011-4/+0
| | | | Remove unnecessary inclusion of <ctype.h>.
* Fix a typo that caused the optimized single-byte locale path not to be taken.tjr2003-11-011-1/+1
|
* Add a manual page for the utrace() system call.tjr2003-11-012-1/+87
| | | | Obtained from: NetBSD
* Allow mbrtowc() and wcrtomb() to be implemented directly, instead oftjr2003-11-017-50/+204
| | | | | | | | | | | | | | | | | as wrappers around the deprecated 4.4BSD rune functions. This paves the way for state-dependent encodings, which the rune API does not support. - Add __emulated_sgetrune() and __emulated_sputrune(), which are implementations of sgetrune() and sputrune() in terms of mbrtowc() and wcrtomb(). - Rename the old rune-wrapper mbrtowc() and wcrtomb() functions to __emulated_mbrtowc() and __emulated_wcrtomb(). - Add __mbrtowc and __wcrtomb function pointers, which point to the current locale's conversion functions, or the __emulated versions. - Implement mbrtowc() and wcrtomb() as calls to these function pointers. - Make the "NONE" encoding implement mbrtowc() and wcrtomb() directly. All of this emulation mess will be removed, together with rune support, in FreeBSD 6.
* Don't bother passing a freshly-zeroed mbstate to mbsrtowcs() etc.tjr2003-10-314-75/+25
| | | | | | | when the current implementation won't use it, anyway. Just pass NULL. This will need to be changed when state-dependent encodings are supported, but there's no need to take the performance hit in the meantime.
* Implement fgetrune(), fungetrune() and fputrune() as wrappers aroundtjr2003-10-311-36/+8
| | | | fgetwc(), ungetwc() and fputwc().
* add destination address selection described in RFC3484.ume2003-10-301-7/+412
| | | | | | | | | in KAME implementation, even when no policy is installed into kernel, getaddrinfo(3) sorts addresses. Since it causes POLA violation, I modified to don't sort addresses when no policy is installed into kernel, Obtained from: KAME
* Add '#' to the characters VIS_GLOB encodes. This fixes a bug in mtree.phk2003-10-302-2/+3
|
* Add a new flag to vis(3): VIS_GLOB which encodes the glob(3) magicphk2003-10-302-2/+7
| | | | characters '*', '?' and '['.
* Remove incomplete support for running FreeBSD userland on old NetBSD kernelstjr2003-10-298-31/+4
| | | | lacking the issetugid() and utrace() syscalls.
* Make this part identical with NetBSD: Use recvlen instead of inlen.mbr2003-10-291-1/+1
| | | | | | No functionality change. Obtained from: NetBSD
* Don't compare NULL against a character.mbr2003-10-291-3/+3
| | | | Obtained from: NetBSD
* Don't use NULL to compare against a char.mbr2003-10-291-2/+2
| | | | Obtained from: NetBSD
* Don't use NULL to compare against a character.mbr2003-10-291-1/+1
| | | | Obtained from: NetBSD
* Don peril sensitive (ie: bikeshed sensitive) sunglasses and quietlypeter2003-10-282-408/+1
| | | | | | | | | | | send strhash(3) off to sleep with the fishes. Nothing in our tree uses it. It has no documentation. It is nonstandard and in spite of the filename strhash.c and strhash.h, it lives in application namespace by providing compulsory global symbols hash_create()/hash_destroy()/hash_search()/ hash_traverse()/hash_purge()/hash_stats() regardless of whether you #include <strhash.h> or not. If it turns out that there is a huge application for this after all, I can repocopy it somewhere safer and we can revive it elsewhere. But please, not in libc!
OpenPOWER on IntegriCloud