summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Document additional aspects of libmemstat(3):rwatson2005-07-242-0/+171
| | | | | | | | - Short description of each memory type access method. - Descriptions of libmemstat(3) errors and memstat_mtl_geterror(3). MFC after: 1 day
* Introduce more formal error handling for libmemstat(3):rwatson2005-07-245-66/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Define a set of libmemstat(3) error constants, which are used by all libmemstat(3) methods except for memstat_mtl_alloc(), which allocates a memory type list and may return ENOMEM via errno. - Define a per-memory_type_list current error value, which is set when a call associated with a memory list fails. This requires wrapping a structure around the queue(9) list head data structure, but this change is not visible to libmemstat(3) consumers due to using access methods. - Add a new accessor method, memstat_mtl_geterror() to retrieve the error number. - Consistently set the error number in a number of failure modes where previously some combination of setting errno and printf'ing error descriptions was used. libmemstat(3) will now no longer print to stdio under any circumstances. Returns of NULL/-1 for errors remain the same. This avoids use of stdio, misuse of error numbers, and should make it easier to program a libmemstat(3) consumer able to print useful error messages. Currently, no error-to-string function is provided, as I'm unsure how to address internationalization concerns. MFC after: 1 day
* Better translation.pjd2005-07-231-1/+1
|
* Prefix two non-static libmemstat(3) internal functions with '_' symbols, torwatson2005-07-234-19/+12
| | | | | | | try and discourage use outside the library. Remove duplicate declaration of memstat_mtl_free() from memstat_internal.h, as it's not internal, and the memstat.h definition suffices.
* fix innetgr() returning false positives and negatives when reverse netgroupjon2005-07-221-54/+63
| | | | | | | matching is used. PR: 35506 MFC after: 3 days
* Remove padding for ABI compatibility of ai_addrlen memberume2005-07-221-3/+0
| | | | | from struct addrinfo. This change break ABI compatibility on 64 bit arch.
* Bump the shared library version number of all libraries that have notkensmith2005-07-2242-42/+42
| | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...)
* Add HISTORY section.tjr2005-07-211-1/+6
|
* Add cross-reference to nextwctype(3).tjr2005-07-211-1/+2
|
* Add COMPATIBILITY and HISTORY sections. Fix typo.tjr2005-07-211-2/+13
|
* Add COMPATIBILITY and HISTORY sections.jkoshy2005-07-211-0/+22
| | | | MFC after: 3 days
* Catch with the source code. Sort a list alphabetically. Add ajkoshy2005-07-211-6/+27
| | | | | | HISTORY section. MFC after: 3 days
* Drop useless with NO_PIC SHLIB_MAJOR.ru2005-07-201-3/+0
|
* UMA supports "secondary" zones, in which a second zone can be layeredrwatson2005-07-205-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | on top of a primary zone, sharing the same allocation "keg". When reporting statistics for zones, do not report the free items in the keg as part of the free items in the zone, or those free items will be reported more than once: for the primary zone, and then any secondary zones off the primary zone. Separately record and maintain a kegfree statistic, and export via memstat_get_kegfree(), which is available for use if needed. Since items free'd back to the keg are not fully initialized, and hence may not actually be available (since secondary zone ctor-time initialization can fail), this makes some amount of sense. This change corrects a bug made visible in the libmemstat(3) modifications to netstat: mbufs freed back to the keg from the packet zone would be counted twice, resulting in negative values being printed in the mbuf free count. Some further refinement of reporting relating to secondary zones may still be required. Reported by: ssouhlal MFC after: 3 days
* refer RFC 3542 rather than RFC 2292bis.ume2005-07-193-4/+4
| | | | | Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net> Obtained from: KAME
* fixed the validation code of routing header length in inet6_rth_getaddr().ume2005-07-191-4/+3
| | | | | | | reported by Delia Kecskemeti <delia.kecskemeti__at__windriver.com> Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net> Obtained from: KAME
* remove the supposed max of 2^31, it hasn't been this small in a veryjmg2005-07-181-4/+1
| | | | | | | | long time... i.e. since this file was imported... (ufs1 supports much larger files then this)... Submitted by: Ivan Voras MFC after: 1 week
* Bump MEMSTAT_MAXCALLER to 16. memtop(8) seems to be able to happilyrwatson2005-07-181-1/+1
| | | | | | | consume that many slots to track snapshot-to-snapshot changes and running totals. And 16 is a nice round number. MFC after: 1 week
* Add __BEGIN_DECLS and __END_DECLS to make libmemstat(3) more C++-friendly.rwatson2005-07-171-0/+2
| | | | MFC after: 1 week
* sync function prototype with reality.charnier2005-07-171-1/+6
|
* Remove confusing "single C char locales" phrase; arguments to thesetjr2005-07-1712-106/+44
| | | | | functions and must now be either an unsigned char or EOF, regardless of locale.
* Remove confusing "single C char locales" phrase; arguments to tolower()tjr2005-07-172-18/+6
| | | | | and toupper() must now be either an unsigned char or EOF, regardless of locale.
* Use better Korean translation for `trap'jkim2005-07-162-6/+6
| | | | | | Requested by: many Korean users from bsdforum.or.kr Submitted by: perky Approved by: anholt (mentor)
* Teach libmemstat(3) about UMA(9) failure statistics.rwatson2005-07-151-0/+1
| | | | | Requested by: victor cruceru <victor dot cruceru at gmail dot com> MFC after: 1 week
* Add -mno-sse3 for prescott/noconaache2005-07-151-0/+3
|
* Document the fact that if MAP_FIXED request has been successful itsobomax2005-07-151-0/+7
| | | | | | replaces any previous mapping to the same address. Obtained from: IEEE Std 1003.1, 2004 Edition
* Provide more documentation on caller-owned storage in struct memory_type,rwatson2005-07-151-7/+20
| | | | | | as well as documenting MEMSTAT_MAXCALLER. MFC after: 1 week
* Increase the number of caller memory storage slots from 2 or 4 torwatson2005-07-152-8/+12
| | | | | | | | | | | | MEMSTAT_MAXCALLER (8), and expose MEMSTAT_MAXCALLER via memstat.h so that applications can check their assumptions about how many slots are available. Remove 'spare' memory storage in struct malloc_type, since we now don't expose the data structure internals to applications and rely on accessor methods, this approach to ABI stability isn't required. MFC after: 7 days
* Add a section on the allocator name space and its interactions withrwatson2005-07-151-0/+22
| | | | | | memstat_mtl_find(). MFC after: 10 days
* Re-spell wronge less wrongly as wrong.rwatson2005-07-152-4/+4
| | | | | Submitted by: jkoshy MFC after: 1 week
* - Remove MLINKS to nonexistant manpagesbrueffer2005-07-141-1/+0
| | | | | | | - Change some section numbers to match reality - For MLINKS to manpages from ports, mention which port installs them MFC after: 3 days
* Properly combine per-CPU UMA cache allocation and free counts with therwatson2005-07-141-4/+5
| | | | | | global counters maintained in the zone. MFC after: 1 week
* Hook libmemstat(3) up to the build.rwatson2005-07-141-1/+1
|
* Add libmemstat(3), a library for use by debugging and monitoringrwatson2005-07-148-0/+1402
| | | | | | | | | | | | | | | | | | | | | applications in tracking kernel memory statistics. It provides an abstracted interface to uma(9) and malloc(9) statistics, wrapped around the recently added binary stream sysctls for the allocators. Using this interface, it is easy to build monitoring tools, query specific memory types for usage information, etc. Facilities are provided for binding caller-provided data to memory types, incremental updates of memory types, and queries that span multiple allocators. Support for additional allocators is (relatively) easy to add. The API for libmemstat(3) will probably change some over time as consumers are written, and requirements evolve. It is written to avoid encoding ABIs for data structure layout into consuming applications for this reason. MFC after: 1 week
* Cross-reference sem_getvalue(3) from several other semaphore-relatedrwatson2005-07-133-0/+3
| | | | | | functions. MFC after: 3 days
* Better memory handling:delphij2005-07-131-4/+7
| | | | | | | | | | | | - It is acceptable to call free(3) when the given pointer itself is NULL, so we do not need to determine NULL before passing a pointer to free(3) - Handle failure of malloc(3) MT6/5 Candidate Submitted by: Dan Lukes <dan at obluda cz> PR: bin/83352
* Fix a bug in pmclog_read() that causes it to return with a falsejkoshy2005-07-091-2/+15
| | | | | | error when a log record crosses an internal buffer boundary. Approved by: re (scottl)
* Missed one piece of the cluster's quirk. Need to override WARNS becausekensmith2005-07-081-0/+1
| | | | | | | | if _FREEFALL_CONFIG is set gcc bails since pam_sm_setcred() in pam_krb5.c no longer uses any of its parameters. Pointy hat: kensmith Approved by: re (scottl)
* - Add two new system calls: preadv() and pwritev() which are like readv()jhb2005-07-073-16/+48
| | | | | | | | | | | | | | | | | and writev() except that they take an additional offset argument and do not change the current file position. In SAT speak: preadv:readv::pread:read and pwritev:writev::pwrite:write. - Try to reduce code duplication some by merging most of the old kern_foov() and dofilefoo() functions into new dofilefoo() functions that are called by kern_foov() and kern_pfoov(). The non-v functions now all generate a simple uio on the stack from the passed in arguments and then call kern_foov(). For example, read() now just builds a uio and calls kern_readv() and pwrite() just builds a uio and calls kern_pwritev(). PR: kern/80362 Submitted by: Marc Olzheim marcolz at stack dot nl (1) Approved by: re (scottl) MFC after: 1 week
* Fix ptsname(3) by converting it to use devname(3) to obtain the name ofmarcus2005-07-071-3/+4
| | | | | | | | | | | | a tty device instead of the legacy minor number approach. This is known to fix gnome-vfs' sftp module as well as kio_sftp and kdesu on -CURRENT. Thanks to scottl for the snprintf() approach idea. Reviewed by: phk Tested by: pav mich Approved by: re (scottl)
* This is sort of an MFS. Peter made these changes to the RELENG_*kensmith2005-07-072-0/+7
| | | | | | | | | | | | | | | | | | | branches but missed HEAD. This patch extends his a little bit, setting it up via the Makefiles so that adding _FREEFALL_CONFIG to /etc/make.conf is the only thing needed to cluster-ize things (current setup also requires overriding CFLAGS). From Peter's commit to the RELENG_* branches: > Add the freebsd.org custer's source modifications under #ifdefs to aid > keeping things in sync. For ksu: > * install suid-root by default > * don't fall back to asking for a unix password (ie: be pure kerberos) > * allow custom user instances for things like www and not just root The Makefile tweaks will be MFC-ed, the rest is already done. MFC after: 3 days Approved by: re (dwhite)
* Correct a buffer overflow which occurred in the handling of somecperciva2005-07-061-1/+1
| | | | | | | particularly corrupt deflated data streams. Security: FreeBSD-SA-05:16.zlib Approved by: re (security blanket)
OpenPOWER on IntegriCloud