summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Make libc.a provide __stack_chk_fail_local weak alias. This iskan2009-09-171-0/+4
| | | | | | needed to satisfy static libraries that are compiled with -fpic and linked into static binary afterwards. Several libraries in gcc are examples of such static libs.
* Fix an off-by-one error in the marking of the O_CH operatordds2009-09-161-1/+1
| | | | | | | following an OOR2 operator. PR: 130504 MFC after: 2 weeks
* Add a couple of debugging statements.dds2009-09-161-0/+3
|
* Add EV_RECEIPT to kevents.sson2009-09-161-0/+9
| | | | | | | | EV_RECEIPT is useful to disambiguating error conditions when multiple events structures are passed to kevent(2). The error code is returned in the data field and EV_ERROR is set. Approved by: rwatson (co-mentor)
* Add the EV_DISPATCH flag to kevents.sson2009-09-161-0/+5
| | | | | | | | When the EV_DISPATCH flag is used the event source will be disabled immediately after the delivery of an event. This is similar to the EV_ONESHOT flag but it doesn't delete the event. Approved by: rwatson (co-mentor)
* Add EVFILT_USER to kevents.sson2009-09-161-1/+39
| | | | | | | | | Add user events support to kernel events which are not associated with any kernel mechanism but are triggered by user level code. This is useful for adding user level events to an event handler that may also be monitoring kernel events. Approved by: rwatson (co-mentor)
* Add two test cases from PR 130504.dds2009-09-151-0/+3
| | | | | | | | | | An additional one coming from http://www.research.att.com/~gsf/testregex/ was not added; at some point the entire AT&T regression test harness should be imported here. But that would also mean commitment to fix the uncovered errors. PR: 130504 Submitted by: Chris Kuklewicz
* Use explicit int values for the device states in order to allow,attilio2009-09-151-4/+4
| | | | | | | | if necessary, in the future, adds of new states without breaking ABI between revisions. Proposed by: kib Approved by: imp
* Improve the way failure of pthread_key_create() gets detected.edwin2009-09-141-2/+9
| | | | | | PR: threads/138603 Submitted by: Mikulas Patocka MFC after: 1 week
* ANSIfy, whitespace and comment adjustments, to simplify comparing theseemaste2009-09-133-108/+65
| | | | files with NetBSD / OpenBSD versions.
* Bump our namespace version for 9.0.deischen2009-09-131-1/+11
| | | | | Add a comment about keeping the private namespace at the end of the dependency chain.
* Add simple embedded RADIUS server support to libradius, by extending existingmav2009-09-114-90/+334
| | | | | | | | | API, keeping backward compatibility. First consumer for this functionality is going to become forthcoming MPD-5.4, supporting CoA and DR of RFC 3576: Dynamic Authorization Extensions to RADIUS. MFC after: 1 month
* Make the description of `b' a little better.ed2009-09-091-1/+1
| | | | | | | If you have a one-byte sequence, `w', `b' is the second character. Not the third. Submitted by: Christoph Mallon
* Revert r196976, now that <machine/param.h> behaves predictably.phk2009-09-091-1/+0
|
* - Teach vesa(4) and dpms(4) about x86emu. [1]delphij2009-09-091-0/+1
| | | | | | | | | | - Add vesa kernel options for amd64. - Connect libvgl library and splash kernel modules to amd64 build. - Connect manual page dpms(4) to amd64 build. - Remove old vesa/dpms files. Submitted by: paradox <ddkprog yahoo com> [1], swell k at gmail.com (with some minor tweaks)
* cr_groups is no longer embedded in struct ucred and is instead storedbrooks2009-09-081-1/+1
| | | | | | | | | | | in a seperate array. As such we need to use kvm_read rather than bcopy to populate the ki_groups field. This fixes a crash when running ps -ax on a coredump. Reported by: brucec Tested by: brucec MFC after: 3 days
* Add necessary includephk2009-09-081-0/+1
|
* Fiz /usr/bin/unzip: A bug deep in libarchive's read-ahead logickientzle2009-09-082-3/+6
| | | | | | | | | | | | (incorrect handling of zero-length reads before the copy buffer is allocated) is masked by the iso9660 taster. Tar and cpio both enable that taster so were protected from the bug; unzip is susceptible. This both fixes the bug and updates the test harness to exercise this case. Submitted by: Ed Schouten diagnosed the bug and drafted a patch MFC after: 7 days
* Update tests to match r195873, which corrected how hardlinked fileskientzle2009-09-083-18/+40
| | | | | | on iso9660 images were returned. While I'm poking around, update some comments around this area to try to clarify what's going on and what still remains to be improved.
* Synchornize description in manual page with strerror() output.pjd2009-09-061-2/+2
|
* Handle zero size for posix_memalign. Return NULL or unique addresskib2009-09-051-0/+9
| | | | | | | according to the 'V' option. PR: standards/138307 MFC after: 1 week
* Let the armchair generals handle this one.des2009-09-0422-218/+22
|
* Document the need for a cast when passing a char to a ctype function.des2009-09-0322-22/+218
| | | | MFC after: 2 weeks
* Use (unsigned char) cast for ctype macroache2009-09-021-1/+1
|
* Fix regression introduced with NFSv4 ACL support - make acl_to_text(3)trasz2009-09-012-11/+12
| | | | | | | | | and acl_calc_mask(3) return error instead of crashing when acl passed to them is NULL. Submitted by: markus Reviewed by: rwatson MFC after: 3 days
* Prevents pam_lastlog from segfaulting on session close when tty is null.jon2009-08-301-0/+5
| | | | MFC after: 1 month
* Style: Remove trailing whitespace.kientzle2009-08-291-11/+11
|
* Consider flag == 0 as the same of flag == R_NEXT. This change will restoredelphij2009-08-241-2/+2
| | | | | a historical behavior that has been changed by revision 190491, and has seen to break exim.
* Our implementation of granpt(3) could be valid in the future.ed2009-08-241-15/+11
| | | | | | | | | | | | | | | | | | | | | When I wrote the pseudo-terminal driver for the MPSAFE TTY code, Robert Watson and I agreed the best way to implement this, would be to let posix_openpt() create a pseudo-terminal with proper permissions in place and let grantpt() and unlockpt() be no-ops. This isn't valid behaviour when looking at the spec. Because I thought it was an elegant solution, I filed a bug report at the Austin Group about this. In their last teleconference, they agreed on this subject. This means that future revisions of POSIX may allow grantpt() and unlockpt() to be no-ops if an open() on /dev/ptmx (if the implementation has such a device) and posix_openpt() already do the right thing. I'd rather put this in the manpage, because simply mentioning we don't comply to any standard makes it look worse than it is. Right now we don't, but at least we took care of it. Approved by: re (kib) MFC after: 3 days
* Use a more appropriate choice of words.jkoshy2009-08-231-1/+1
| | | | Submitted by: danfe
* Use US spellings, fix typos.jkoshy2009-08-233-18/+18
|
* Fix typos.jkoshy2009-08-231-7/+7
|
* Fix a typo.jkoshy2009-08-231-1/+1
|
* Fix typos, use American English spellings.jkoshy2009-08-234-22/+22
|
* Fix typos.jkoshy2009-08-231-9/+9
|
* Correct typos.jkoshy2009-08-231-2/+2
|
* Correct grammar.jkoshy2009-08-231-2/+2
|
* Fix a typo.jkoshy2009-08-231-1/+1
| | | | Reported by: John McCullough <jmccullo at cs.ucsd.edu>
* Fix typos.jkoshy2009-08-233-4/+4
| | | | Reported by: Harald Servat <redcrash at gmail dot com>
* Rather than replicating the maths from the kernel, use thebz2009-08-131-1/+1
| | | | | | | | | value the kernel calculated directly as we already read it with struct vnet. This will make kvm_vnet.c more resilent in case of possible kernel changes. Reviewed by: rwatson Approved by: re (kib)
* Update posix1e-related man pages, especially as relates to MAC, to morerwatson2009-08-127-156/+129
| | | | | | accurately reflect the last ten years of work. Approved by: re (kib)
* Merge the remainder of kern_vimage.c and vimage.h into vnet.c andrwatson2009-08-011-1/+0
| | | | | | | | | | vnet.h, we now use jails (rather than vimages) as the abstraction for virtualization management, and what remained was specific to virtual network stacks. Minor cleanups are done in the process, and comments updated to reflect these changes. Reviewed by: bz Approved by: re (vimage blanket)
* LibUSB v1.0:alfred2009-07-309-1531/+1356
| | | | | | | | | - Significantly improve libusb10 support. - Many minor issues fixed. - P4 ID: 166189, 165853, 165991, 166052, 166069 Submitted by: hps Approved by: re
* The parser for Rockridge symlinks tended to insertkientzle2009-07-261-8/+8
| | | | | | | | extra slashes at the beginning of absolute targets. Thanks to Jung-uk Kim for pointing this out to me. Approved by: re (kib)
* Eliminate a stale paragraph from the BUGS section. This "bug" wasalc2009-07-261-8/+1
| | | | | | eliminated in r195693. Approved by: re (kensmith)
* Libarchive recognizes hardlinked files on ISO images,kientzle2009-07-251-0/+1
| | | | | | | | | | | but returned them incorrectly, causing tar to actually erase the resulting file while trying to restore the link. This one-line fix corrects the hardlink descriptions to avoid this problem. Thanks to Jung-uk Kim for pointing this out. Approved by: re (kib)
* Some jail parameters (in particular, "ip4" and "ip6" for IP addressjamie2009-07-252-60/+89
| | | | | | | | | restrictions) were found to be inadequately described by a boolean. Define a new parameter type with three values (disable, new, inherit) to handle these and future cases. Approved by: re (kib), bz (mentor) Discussed with: rwatson
* Revert the changes to struct kinfo_proc in r194498. Instead, fillbrooks2009-07-241-2/+8
| | | | | | | | | | in up to 16 (KI_NGROUPS) values and steal a bit from ki_cr_flags (all bits currently unused) to indicate overflow with the new flag KI_CRF_GRP_OVERFLOW. This fixes procstat -s. Approved by: re (kib)
* Make libkvm work on live systems and crashdumps with andbz2009-07-234-9/+412
| | | | | | | | | | | | | | | | | | without VIMAGE virtualization in the kernel. If we cannot resolve a symbol try to see if we can find it with prefix of the virtualized subsystem, currently only "vnet_entry" by identifying either the vnet of the current process for a live system or the vnet of proc0 (or of dumptid if compiled in a non-default way). The way this is done currently allows us to only touch libkvm but no single application. Once we are going to virtualize more subsystems we will have to review this decision for better scaling. Submitted by: rwatson (initial version of kvm_vnet.c, lots of ideas) Reviewed by: rwatson Approved by: re (kib)
* It is believed the last subsystem that limited ID sizes to somethingkensmith2009-07-221-7/+18
| | | | | | | | | | other than the current system-wide size (32-bits) has been updated so for now just cautiously turn the check off. While here fix the check for IDs being too large which doesn't work due to type mis-matches. Reviewed by: jhb (previous version) Approved by: re (kib) MFC after: 1 month (type mis-match fixes only)
OpenPOWER on IntegriCloud