summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Style issue: Don't include <wchar.h> where it is not actually needed.kientzle2005-09-106-10/+49
| | | | | | | | | (wchar_t is defined in stddef.h, and only two files need more than that.) Portability: Since the wchar requirements are really quite modest, it's easy to define basic replacements for wcslen, wcscmp, wcscpy, etc, for use on systems that lack <wchar.h>. In particular, this allows libarchive to be used on older OpenBSD systems.
* Add mkfifo(2) to the man page SEE ALSO list for umask(2) -- it'srwatson2005-09-101-0/+1
| | | | | | mentioned in the description. MFC after: 2 days
* Fix some errors in archive_read_data that caused failures in bsdtar'skientzle2005-09-101-12/+11
| | | | | | | pass-through filtering. Thanks to: Bjoern Koenigönig PR: bin/82878
* Add an MLINK for devname_r().stefanf2005-09-101-0/+1
|
* The header and the man page say that sethostid() returns void, so make thestefanf2005-09-101-4/+4
| | | | definition match. Include <unistd.h>.
* Fix parameter types of close and get members in DB.stefanf2005-09-101-2/+2
|
* Fix fallout from the previous commit:yar2005-09-091-4/+7
| | | | | | | We shouldn't call chmod() if we've just used fchmod() OK on the same file. Approved by: kientzle
* Terminate metadata restore early only on failure, not success.kientzle2005-09-051-2/+4
| | | | In particular, this bug was preventing the restore of fflags.
* Remove references to nonexistent "FreeBSD Security Architecture" document.tjr2005-09-055-25/+0
|
* Include needed headers that were obtained through <pthread.h>. Sort headersstefanf2005-09-0111-9/+28
| | | | while here.
* Add __BEGIN_DECLS/__END_DECLS so that this header can be included in C++rodrigc2005-08-311-0/+9
| | | | | | | | programs. Also, add include guards. PR: bin/44277 Submitted by: Alex Zepeda <freebsd at blarf dot homeip dot net> MFC after: 1 day
* Remove getino(3) manpage. It doesn't document what is here, what is here shouldjmallett2005-08-311-116/+0
| | | | | | | not get documented, and what it does document isn't going to come to CVS any time in the immediate future. Patience of a saint: trhodes
* Disconnect getino.3 and remove MLINK I added.trhodes2005-08-311-2/+1
| | | | Discussed with: jmallett
* Allocate a thread's tcb last so it is easier to handle failures todeischen2005-08-302-40/+42
| | | | | | malloc() siginfo. PR: 85468
* Added a sentence to explain what "span" means.garys2005-08-292-1/+15
| | | | | | | PR: docs/84850 Submitted by: garys MFC after: 3 days Approved by: keramida
* Handle failure to malloc() part of the thread structure.deischen2005-08-292-6/+8
| | | | PR: 83457
* Don't attempt to initialize the rtld lock if it can't be malloc()'d.deischen2005-08-292-10/+14
| | | | PR: 83452
* - Document the fact that the real length of listen queue is 1.5 moreglebius2005-08-291-1/+16
| | | | | | | | | | than the value of backlog argument. - Document the fact that a subsequent listen(2) calls on the listening socket change the backlog argument. - Note that current listen queue lengths can be queried using netstat(1). Submitted by: Igor Sysoev <is rambler-co.ru> Wording by: gnn
* Add the function memmem(3) as found in glibc and others.andre2005-08-256-5/+159
| | | | | | | | | | It is the binary equivalent to strstr(3). void *memmem(const void *big, size_t big_len, const void *little, size_t little_len); Submitted by: Pascal Gloor <pascal.gloor at spale.com> MFC after: 3 days
* Hook getino.3 up to the build and link it to putino.3.trhodes2005-08-251-1/+2
| | | | PR: 83820
* Add a family of functions for reliable pidfiles handling.pjd2005-08-244-3/+498
| | | | | Idea from: jmg Discussed on: arch@
* - Fix checking range of strings of struct iconv_add_in in libsmb and libkiconv,imura2005-08-241-1/+1
| | | | | | - Add checking range of strings to iconv_sysctl_add(). Submitted by: Rudolf Cejka
* Ignore HTTP_PROXY if it is defined but empty. This was already handleddes2005-08-241-1/+1
| | | | | | | | | | correctly in the case of FTP_PROXY, because an empty FTP_PROXY has a specific meaning ("don't use any proxy at all for ftp, even if HTTP_PROXY is defined"), while an empty HTTP_PROXY has no meaning at all. PR: bin/85185 Submitted by: Conall O'Brien <conallob=freebsd@maths.tcd.ie> MFC after: 2 weeks
* 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.
OpenPOWER on IntegriCloud