summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Reinstate the ptrace patch to restore the 'gp' register after callingneel2010-02-041-0/+3
| | | | | | | | | | a function. I made a mistake in assuming that the .cprestore directive will cause the assembler to automatically restore 'gp' after the 'jalr'. The .cprestore directive does its magic only after 'jal' and 'bal' instructions - not the 'jalr'. Pointed out by: c.jayachandran@gmail.com
* -White space cleanup (missing spaces in new line)rrs2010-02-031-5/+2
| | | | | | -Remove extra tab. -Took out the duplicate code that cprestore does. All suggested by Neel.
* Placate new binutils, by using 16-bit %ax instead of 32-bit %eax as ankib2010-02-034-22/+34
| | | | | | | | | argument for fnstsw. Explicitely specify sizes for the XMM control and status word and X87 control and status words. Reviewed by: das Tested by: avg MFC after: 2 weeks
* Also add a cross-reference to NetBSD updlastlogx().ed2010-02-031-1/+3
|
* This fixes a bug found and fixed by JC. Basicallyrrs2010-02-031-1/+13
| | | | | | | no save was being done of the ra and gp pointers before we call the __error function. Obtained from: JC (c.jayachandran@gmail.com)
* Bump .Dd, forgotten in r203393gavin2010-02-021-1/+1
| | | | | Approved by: ed (mentor, implicit) MFC after: 1 week
* The multiplicand a = 0x5deece66d = 25214903917, not 0xfdeece66d.gavin2010-02-021-1/+1
| | | | | | | | | This bug in the man page has gone unnoticed for over 15 years! PR: docs/143461 Submitted by: Jeremy Huddleston jeremyhu apple.com Approved by: ed (mentor, implicit) MFC after: 1 week
* Implement strndup(3) using strnlen(3).ed2010-02-021-3/+1
| | | | | This makes the implementation a bit more consistent with strdup(3), which uses strlen(3).
* Respect passwordtime from login.conf if set.des2010-02-021-2/+9
| | | | | | PR: bin/93473 Submitted by: Björn König <bkoenig@cs.tu-berlin.de> MFC after: 1 week
* Finally, document libgpib.joerg2010-02-012-0/+757
| | | | MFC after: 3 days
* Fix bugs:jasone2010-01-314-1352/+2256
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix a race in chunk_dealloc_dss(). * Check for allocation failure before zeroing memory in base_calloc(). Merge enhancements from a divergent version of jemalloc: * Convert thread-specific caching from magazines to an algorithm that is more tunable, and implement incremental GC. * Add support for medium size classes, [4KiB..32KiB], 2KiB apart by default. * Add dirty page tracking for pages within active small/medium object runs. This allows malloc to track precisely which pages are in active use, which makes dirty page purging more effective. * Base maximum dirty page count on proportion of active memory. * Use optional zeroing in arena_chunk_alloc() to avoid needless zeroing of chunks. This is useful in the context of DSS allocation, since a long-lived application may commonly recycle chunks. * Increase the default chunk size from 1MiB to 4MiB. Remove feature: * Remove the dynamic rebalancing code, since thread caching reduces its utility.
* Remove extra semicolon.brucec2010-01-311-1/+1
| | | | Approved by: rrs (mentor)
* Fix typo of ENOTCONN.brucec2010-01-314-3/+5
| | | | | | Add missing RETURN VALUES section in sctp_opt_info(3). Approved by: rrs (mentor)
* The EFI vendor UUID for FreeBSD variables is called EFI_FREEBSD_VARIABLEmarcel2010-01-311-1/+1
| | | | and not EFI_FREEBSD_VENDOR (cf. EFI_GLOBAL_VARIABLE).
* Perform some cleanups to devname(3).ed2010-01-311-13/+10
| | | | | | | | | | | - Make sure the mode argument is either a character or a block device. - Use S_IS*() instead of checking S_IF*-flags by hand. - Don't use kern.devname when the argument is already NODEV. - Always call snprintf with the proper amount of arguments corresponding with the format. - Perform some whitespace fixes. Tabs instead of 4 spaces, missing space for return statement. - Remove unneeded includes.
* Introduce libefi -- a library around EFI runtime services and protocols.marcel2010-01-309-2/+634
| | | | | | | | | | | | | This first commit brings 3 functions for enumerating, retrieving, adding, removing and modifying EFI variables. The immediate use of these include the insertion of a new boot option as part of the installation process. This library uses ioctl(2) requests implemented by io(4) to pass the requests down through the kernel to EFI. These ioctl requests are only implemented on ia64, so libefi is currently only enabled on ia64. The interface is generic and io(4) on mad64/i386 can easily be taught to handle these once EFI support has been added to the kernel there.
* - Fix some style(9) bugsgabor2010-01-291-17/+16
| | | | Pointed out by: bde
* You must include fcntl.h (in practice) to be able to do anything usefulrwatson2010-01-291-0/+1
| | | | | | with shm_open(2), as otherwise the O_ flags are undefined. MFC after: 3 days
* Add a function to check if the usb devices is still connected.thompsa2010-01-295-0/+44
| | | | Submitted by: Hans Petter Selasky
* Correct a bunch of typos.schweikh2010-01-276-9/+9
|
* Add missing return, in a rare case where we can't allocate memory inemaste2010-01-271-0/+1
| | | | | | | deallocate. Submitted by: Ryan Stone (rysto32 at gmail dot com) Approved by: jasone
* Remove pseudo-terminals from ttys(5).ed2010-01-271-36/+1
| | | | | | | | | | | | When we had utmp(5), we had to list all the psuedo-terminals in ttys(5) to make ttyslot(3) function properly. Now that pututxline(3) deals with slot allocation internally (not based on TTY names), we don't need to list all the TTYs on the system in ttys(5) to make user accounting work properly. This patch removes all the entries from the /etc/ttys files, but also the pts(4) entries that were appended implicitly, which was added in r154838.
* Add information about when nmount(2) was introduced.trasz2010-01-261-1/+5
|
* Document HTTP digest authentication support.des2010-01-261-8/+14
| | | | | | Mention some prominent past contributors: Hajimu Umemoto (ipv6), Henry Whincup (https), Jukka Ukkonen (if-modified-since) and Jean-François Dockes (digest auth)
* Correct the HISTORY section of these man pages to show when the function,gavin2010-01-2636-72/+72
| | | | | | | not the "manual page example" was introduced. Approved by: ed (mentor, implicit) MFC after: 1 week
* Bump .Dd, forgotten in r203025gavin2010-01-2617-17/+17
| | | | | Approved by: ed (mentor, implicit) MFC after: 1 week
* Correct the HISTORY section of these man pages to show when the function,gavin2010-01-2617-17/+17
| | | | | | | not the "manual page example" was introduced. Approved by: ed (mentor, implicit) MFC after: 1 week
* - style(9)gabor2010-01-251-25/+25
| | | | Approved by: delphij
* Cache failing and opened catalogs in catopen() and related functions.gabor2010-01-251-17/+131
| | | | | | | | | | | | | Continuous catopen() calls cause 4 failig stat(2) each, which means a lot of overhead. It is also a good idea to keep the opened catalogs in the memory to speed up further catopen() calls to the same catalog since these catalogs are not big at all. In this case, we count references and only free() the allocated space when the reference count reaches 0. The reads and writes to the cache are syncronized with an rwlock when these functions are called from a threaded program. Requested by: kib Approved by: delphij
* Connect smbfs related libraries and tool on sparc64.yongari2010-01-251-0/+4
| | | | Reviewed by: marius
* Commit copyright-only changes to generated files as part of thedougb2010-01-254-4/+4
| | | | 9.6.1-P3 update
* Improve the ttyname(3) manual page.ed2010-01-241-20/+5
| | | | | | - Remove unrelated references to tty(5). - Remove unneeded relation with FILE *. - Add better cross references.
* Make strsignal(3) thread-safe.ume2010-01-241-4/+48
| | | | MFC after: 2 weeks
* EMPTY records don't have a timestamp.ed2010-01-231-1/+2
|
* Reapply r201145 to lib/libc/gen/sem.cantoine2010-01-231-1/+1
|
* Just ignore the timestamps given to pututxline().ed2010-01-233-23/+12
| | | | | | | | | | | | | I've noticed many applications do a bad job at timekeeping, for several reasons: - Applications like screen(1) don't update time records when restoring the old user login record. - Many applications only set ut_tv.tv_sec, not ut_tv.tv_usec. This causes many problems for tools such as ac(8), which require the timestamps to be properly ordered. This is why I've decided to let the utmpx code obtain valid timestamps itself.
* Don't try to hardlink block or character device nodes that come outkientzle2010-01-231-2/+4
| | | | of cpio archives.
* Use a simpler memory-management strategy for the file objects.kientzle2010-01-231-46/+23
| | | | | | | Instead of trying to reference-count them and free them as soon as they are no longer needed, we now just keep them around and free them all when we release the archive object. This fixes a number of minor memory leaks, especially when reading damaged archives.
* If we can't stat a file, return the correct ARCHIVE_FAILED (this entry can'tkientzle2010-01-231-7/+16
| | | | | | be processed any further) and a suitable error string. In particular, this improves the error-reporting when cpio -o is given a nonexistent filename.
* Initialize the allocated 'struct zip'.kientzle2010-01-231-1/+1
|
* Fix a memory leak when a filter fails to initialize.kientzle2010-01-231-16/+27
|
* English nitpicking.ed2010-01-221-1/+1
| | | | Submitted by: jmallett
* Describe why pututxline() doesn't entirely conform to standards.ed2010-01-221-2/+20
|
* Remove comments about breaking the specification.ed2010-01-221-2/+0
| | | | | | | | | | | | | | | I've discussed this issue with the Austin Group and it will be fixed in future revisions of the specification. The issue was that ut_line fields weren't supposed to be valid for LOGIN_PROCESS entries, while getutxline() would try to match these records anyway. They also agreed on our way of implementing pututxline() without getutxid() (which other operating systems also do), but unfortunately they disagreed with our way of replacing DEAD_PROCESS entries, which is a pity. The current specification allows the utmpx database to become infinitely big over time. See also: http://austingroupbugs.net/view.php?id=213#c378
* Remove stale references to utmp(5) and its corresponding filenames.ed2010-01-211-7/+2
| | | | I removed utmp and its manpage, but not other manpages referring to it.
* Remove libulog from the bootstrap again.ed2010-01-211-5/+4
| | | | | | libulog now only provides functions that are used by various packages from the ports tree, namely the libutempter ones. There is no reason to link it into the crunch/fixit binaries anymore.
* Correct comment typo.emaste2010-01-211-1/+1
|
* - Update Galician cataloggabor2010-01-211-0/+46
|
* The waitpid(2) function needs neither sys/time.h nor sys/resource.h.pjd2010-01-201-2/+2
|
* Style: reword comment.ache2010-01-201-1/+1
| | | | Submitted by: bde
OpenPOWER on IntegriCloud