summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix few typosemax2003-11-111-1/+1
| | | | | Reviewed by: imp, julian, ru Approved by: imp (mentor)
* 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
* Fix the build by adjusting the include directives. The problem washarti2003-11-102-4/+6
| | | | | that the sources use "..." includes to get at include files that later on reside in an include sub-directory.
* Link libbsnmp to the build.harti2003-11-101-1/+1
|
* Add build infrastructure for libbsnmp and the modules. Add theharti2003-11-1020-0/+3216
| | | | netgraph module for the SNMP daemon.
* Document EINVAL for len == 0.des2003-11-101-1/+1
|
* Document KTR_DROP.jkoshy2003-11-101-0/+9
|
* If a thread in critical region got a synchronous signal, according currentdavidxu2003-11-092-0/+4
| | | | | | signal handling mode, there is no chance to handle the signal, something must be wrong in the library, just call kse_thr_interrupt to dump its core. I have the code for a long time, but forgot to commit it.
* Use THR lock instead of KSE lock to avoid scheduler be blocked in spinlock.davidxu2003-11-082-34/+32
| | | | Reviewed by: deischen
* 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
|
* Build the layer 3 (signalling) stuff into the library and installharti2003-11-071-3/+9
| | | | the corresponding headers.
* 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
|
* style(9)deischen2003-11-052-80/+106
| | | | Reviewed by: bde
* Don't declare the malloc lock; use the declaration provided in libc.deischen2003-11-052-2/+12
| | | | Noticed by: bde
* 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
* - plug memory leak.ume2003-11-056-110/+150
| | | | | | | | | | - fixed a length of the sadb extension in the case of pfkey_send_x5(). - used getprotobynumber() for printing a upper layer protocol name. - modified the output format against the change of the setkey syntax about a icmp6 type/code. - don't enumerate reserved fields. use memset. Obtained from: KAME
* 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
|
* Add pthread_atfork() source code. Dan forgot to commit this file.davidxu2003-11-052-0/+112
|
* Add an implementation for pthread_atfork().deischen2003-11-0411-12/+144
| | | | | | | | Aside from the POSIX requirements for pthread_atfork(), when fork()ing, take the malloc lock to keep malloc state consistent in the child. Reviewed by: davidxu
* Add the ability to reinitialize libpthread's internal FIFO-queueingdeischen2003-11-044-30/+114
| | | | | | locks. Reviewed by: davidxu
* Add the ability to reinitialize a spinlock (libc/libpthreaddeischen2003-11-042-24/+34
| | | | | | internal lock, not a pthread spinlock). Reviewed by: davidxu
* s/foo()/foo(void)/deischen2003-11-042-4/+6
| | | | Add a blank line after a variable declaration.
* Libpthread uses the convention that all of its (non-weak) symbolsdeischen2003-11-042-10/+22
| | | | | begin with underscores and provide weak definitions without underscores. Make the pthread spinlock conform to this convention.
* Add the ability to reinitialize a mutex (internally, not a userlanddeischen2003-11-042-14/+40
| | | | | | API). Reviewed by: davidxu
* 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
|
* * Modify libpcap to work a bit better with our 802.11 code. This meansgreen2003-11-041-1/+3
| | | | | | | | | | | | tcpdump -y ieee802_11 will work in the basic senses, including the code compilation for filters (where you may specify "link[]" to refer to parts of the 802.11 header, as well as treat it like a normal Ethernet header). Previously, it was just too far off to do anything useful for us. * While I'm here, fix some compile problems that will result from lex and yacc namespace polution when linking with -lpcap. The namespace is now "pcapyy*" instead of "yy*", and it tests fine with world and some external applications that may or may not use "yy*".
* o Save a copy of the GPT entries for which there's a chunk with anmarcel2003-11-041-10/+55
| | | | | | | | | | | index referencing it. We need to know the original type and name so that we know what to put in the table when we reconstruct it. o Clear the table entries before we rebuild it to avoid that we end up with stale data. o Sequentially populate the table entries from the chunks. For the chunks that have an index (now referencing the saved copy) we use the saved type and name. This way we can handle unknown types better. In all cases we update the start and end LBAs.
* 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>
* Build address handling, traffic descriptor handling, encoding and decodingharti2003-11-031-5/+12
| | | | into the library.
OpenPOWER on IntegriCloud