summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Include <sys/types.h> and <limits.h> ourselves, don't assume they are includedstefanf2005-08-205-0/+5
| | | | | | | | | | through <pthread.h>. gen/sem.c: Prerequisite for <_semaphore.h> net/getprotoent.c: USHRT_MAX net/getservent.c: USHRT_MAX stdio/ungetwc.c: MB_LEN_MAX stdio/vfwscanf.c: MB_LEN_MAX
* - Prefix MUTEX_TYPE_MAX with PTHREAD_ to avoid namespace pollution.stefanf2005-08-198-12/+12
| | | | | | - Remove the macros MUTEX_TYPE_FAST and MUTEX_TYPE_COUNTING_FAST. OK'ed by: deischen
* Fix a boundary condition error in slow() and fast() in multibyte locales:tjr2005-08-171-6/+7
| | | | | we must allow the character beginning at "p" to be converted to a wide character for the purposes of EOL processing and word-boundary matching.
* Document the fact that word-boundary matching does not worktjr2005-08-171-1/+3
| | | | properly in multibyte locales.
* The "Mbuf" zone was renamed "mbuf" to improve consistency, but the coderwatson2005-08-151-4/+4
| | | | | | | | | example in libmemstat.3 was not updated to take this rename into account. Update the example. PR: 84946 Submitted by: Wojciech A. Koszek <dunstan at freebsd dot czest dot pl> MFC after: 1 day
* Add an implementation of the semi-standard wcsdup() function, as foundtjr2005-08-133-4/+53
| | | | on Microsoft and GNU systems.
* Change OUT from -2 to CHAR_MIN-1, making it impossible for it totjr2005-08-131-1/+1
| | | | | | | | | inadvertently match a negative char in the RE being compiled. This fixes compilation of "\376" (as an ERE) and "\376\376" (as a BRE). PR: 84740 MFC after: 1 week
* Add missing links from getgrent_r.3, getgrnam_r.3, and getgrgid_r.3 tosimon2005-08-121-1/+2
| | | | | | | getgrent.3. Submitted by: Ulf Lilleengen <lulf@kerneled.org> MFC after: 3 days
* Change directory one level at a time, and use CDUP to back out. This is ades2005-08-121-29/+152
| | | | | | | work in progress; it partially fixed bin/83278 and is a prerequisite to fixing bin/83277. PR: bin/83277, bin/83278
* Record an error message if there are write errors when extracting thekientzle2005-08-101-1/+4
| | | | content of an archive entry to a file descriptor.
* Minor configuration fix to disable ACL support on MacOS X (whichkientzle2005-08-102-4/+13
| | | | | | lacks ACL_USER). Thanks to: Marcus Geiger, Joe Esch, and Markus Slopianka
* Move <sys/cdefs.h> up to reduce diff to NetBSD.stefanf2005-08-101-2/+2
|
* Submitted to and merged from NetBSD (rev. 1.23 and 1.24):stefanf2005-08-101-6/+7
| | | | | | - Don't delete the current line when typing `yy'. - Don't use a possibly stale pointer in cv_paste(). -
* Remove a reference to compute_stats(), since it is no longer documented atken2005-08-101-4/+1
| | | | | | | least. Submitted by: osa MFC after: 1 week
* Document kvm(3)-related error constants, and correct minor formattingrwatson2005-08-091-2/+20
| | | | nits.
* NetBSD merged our typo fixes, update $NetBSD$.stefanf2005-08-096-6/+6
|
* Merge a change I missed in the last commit.stefanf2005-08-091-1/+1
|
* Merge NetBSD's 1.25 which fixes a small bug introduced in 1.24.stefanf2005-08-091-1/+3
|
* Include <term.h> before #undef'ing key_clear.stefanf2005-08-081-0/+2
|
* Fix a few typos.stefanf2005-08-082-4/+4
|
* Don't forget to copy the sentinel into the `help' array. It's expected tostefanf2005-08-081-2/+2
| | | | | | | be there. Submitted by: Björn König PR: 82381
* Sync libedit with recent NetBSD developments. Including improvements to thestefanf2005-08-0738-1482/+2374
| | | | | | | vi-mode, removal of clause 3, cleanups and the export of the tokenization functions. Not included: config.h, filecomplete.{c,h}
* Revert the replacement of realloc() with reallocf() (el.h:1.2, map.c:1.5 andstefanf2005-08-073-5/+3
| | | | | | tokenizer.c:1.3). Contrary to the commit log there were no memory leaks, but the change introduced a bug because the free'd pointer was not zeroed and calling the appropriate _end() function would call free() a second time.
* Respect the YES_HESIOD build variable.phk2005-08-062-3/+9
|
* Teach libmemstat(3) how to extract malloc(9) statistics using kvm(3),rwatson2005-08-064-7/+190
| | | | | | | | | so that libmemstat can be used to view full memory statistics from kernel core dumps and /dev/mem. This is provided via a new query function, memstat_kvm_malloc(), which is also automatically invoked by memstat_kvm_all(). A kvm handle must be passed in. This will allow malloc(9)-specific code to be removed from vmstat(8).
* Use char * when doing pointer arithmetics.stefanf2005-08-051-3/+4
|
* Define LIBMEMSTAT so that vm_page.h won't perform a nested include ofrwatson2005-08-041-9/+1
| | | | | | | | | opt_vmpage.h. Remove definition of _KERNEL, it is no longer required in order to include uma_int.h, as the sensitive parts of uma_int.h (a number of inlines depending on kernel-only constants) are now protected by _KERNEL.
* Add usleep to the map files.deischen2005-08-032-0/+4
| | | | Noticed by: davidxu
* Add a cancellation point for usleep().deischen2005-08-032-2/+32
|
* Add a cancellation point for usleep().deischen2005-08-031-0/+19
| | | | | While here, fix sleep() so that it is also a cancellation point (a missing weak reference prevented that).
* Make syslog() use the internal (non-cancellation point) _usleep().deischen2005-08-031-1/+1
| | | | | Prior to this it was calling the cancellable usleep() while holding a lock.
* Make usleep() overridable by the thread libraries so they can providedeischen2005-08-031-1/+4
| | | | | | cancellation points. Noticed by: phk
* Add namespace #defines for usleep.deischen2005-08-032-0/+2
|
* Generate default fake "device" and "inode" numbers for entrieskientzle2005-08-021-0/+25
| | | | | | | | | extracted from tar archives. Otherwise, converting tar archives to cpio format (with "bsdtar -cf out.cpio @in.tar") convert every entry into a hard link to a single file. This simple logic breaks hard links, but that's better than the alternative. MFC after: 7 days
* When copying time values from the main entry header to be used in thekientzle2005-08-021-10/+19
| | | | | | | | header of the pax extension entry, clip them to ustar limits. In particular, this prevents an internal panic for very old files. Thanks to: Chris Spiegel MFC after: 7 days
* Correct a few minor mis-statements (libarchive does support readingkientzle2005-08-021-5/+6
| | | | | | | | GNU tar sparse files, people have extended cpio) and clarify an important detail about pax format (that ustar-compliant archivers can mostly read pax archives correctly). MFC after: 7 days
* Add memstat_kvm_uma(), an implementation of a libmemstat(3) query routinerwatson2005-08-015-2/+248
| | | | | | | | | | | | that knows how to extract UMA(9) allocator statistics from a core dump or live memory image using kvm(3). The caller is expected to provide the necessary kvm_t handle, which is then used by libmemstat(3). With these changes, it is trivially straight forward to re-introduce vmstat -z support on core dumps, which was lost when UMA was introduced. In the short term, this requires including vm/ include files that are not intended for extra-kernel use, requiring in turn some ugliness.
* Correct two libmemstat(3) bugs:rwatson2005-08-014-4/+12
| | | | | | | | | | | | | | | | | | - Move memory_type_list flushing logic from memstat_mtl_free() to _memstat_mtl_empty(), a libmemstat-internal function that can be called from other parts of the library. Invoke _memstat_mtl_empty() from memstat_mtl_free(), which also frees the containing list structure. Invoke _memstat_mtl_empty() instead of memstat_mtl_free() in various error cases in memstat_malloc.c and memstat_uma.c, which previously resulted in the list being freed prematurely. - Reverse the order of updating the mt_kegfree and mt_free fields of the memory_type in memstat_uma.c, otherwise keg free items won't be counted properly for non-secondary zones. MFC after: 3 days
* Fix all the spelling mistakes I could find in the man pages for wordskeramida2005-07-3110-19/+19
| | | | | | | | that have at least 3 characters. MFC after: 1 week Thanks to: Music band ``Chingon'' for keeping me company while searching for these.
* Remove an unused variable.deischen2005-07-292-2/+0
|
* Catch up with the atomic_FOO_ptr() changes and silence a few warnings.deischen2005-07-292-14/+28
|
* Document the ECONNRESET errno value.dds2005-07-292-0/+7
|
* Cast to uintptr_t to avoid compiler warning, it was broken bydavidxu2005-07-281-6/+12
| | | | the recent atomic_ptr() change.
* don't accept invalid form of an address like 1:2:3:4:5:6:7::8.ume2005-07-271-0/+4
| | | | | | PR: bin/84106 Obtained from: BIND9 MFC after: 2 days
* Correct a buffer overflow which can occur when decompressing acperciva2005-07-271-4/+4
| | | | | | | | | carefully crafted deflated data stream. [1] Correct problems in the AES-XCBC-MAC IPsec authentication algorithm. [2] Submitted by: suz [2] Security: FreeBSD-SA-05:18.zlib [1], FreeBSD-SA-05:19.ipsec [2]
* Move initialization above point of first possible reference tomdodd2005-07-251-3/+4
| | | | | | | avoid overwriting ty_status values set from the 'type' field. Previously TTY_DIALUP and TTY_NETWORK flags did not match specified type.
* Disable thread support in BIND. It appears to reduce performance ratherdes2005-07-255-29/+28
| | | | | | | | than increase it, and seems to be the cause of the memory leaks which some users have reported. Requested by: dougb MFC after: 5 days
* If a retrieved UMA zone is a secondary zone, don't report keg free items,rwatson2005-07-251-1/+10
| | | | | | | as they actually belong to the primary zone, and maye otherwise be reported more than once. MFC after: 1 day
* Speed up __wcsconv() (and hence the printf() %ls format):tjr2005-07-241-34/+30
| | | | | - use wcsrtombs() instead of a wcrtomb() loop where possible. - avoid wcrtomb() loop when output precision is small.
* Having decided not to provide a libmemstat(3) error number to textrwatson2005-07-244-3/+38
| | | | | | | | | | | | | conversion routine, now change my mind and add one, memstat_strerror(3), which returns a const char * pointer to a string describing the error, to be used on the results of memstat_mtl_geterror(). While here, also correct a minor typo in the HISTORY man page. Pointers on improving ease of internationalization would be appreciated. MFC after: 1 day
OpenPOWER on IntegriCloud