summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Rewrap; this was getting painful. Translators can ignore this.des2009-06-201-59/+36
| | | | MFC after: 1 week
* Reword.des2009-06-201-4/+2
| | | | MFC after: 1 week
* Fix "tar --options=iso9660:joliet" and other useskientzle2009-06-201-4/+5
| | | | of format-specific options.
* Rework the credential code to support larger values of NGROUPS andbrooks2009-06-193-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NGROUPS_MAX, eliminate ABI dependencies on them, and raise the to 1024 and 1023 respectively. (Previously they were equal, but under a close reading of POSIX, NGROUPS_MAX was defined to be too large by 1 since it is the number of supplemental groups, not total number of groups.) The bulk of the change consists of converting the struct ucred member cr_groups from a static array to a pointer. Do the equivalent in kinfo_proc. Introduce new interfaces crcopysafe() and crsetgroups() for duplicating a process credential before modifying it and for setting group lists respectively. Both interfaces take care for the details of allocating groups array. crsetgroups() takes care of truncating the group list to the current maximum (NGROUPS) if necessary. In the future, crsetgroups() may be responsible for insuring invariants such as sorting the supplemental groups to allow groupmember() to be implemented as a binary search. Because we can not change struct xucred without breaking application ABIs, we leave it alone and introduce a new XU_NGROUPS value which is always 16 and is to be used or NGRPS as appropriate for things such as NFS which need to use no more than 16 groups. When feasible, truncate the group list rather than generating an error. Minor changes: - Reduce the number of hand rolled versions of groupmember(). - Do not assign to both cr_gid and cr_groups[0]. - Modify ipfw to cache ucreds instead of part of their contents since they are immutable once referenced by more than one entity. Submitted by: Isilon Systems (initial implementation) X-MFC after: never PR: bin/113398 kern/133867
* In preparation for raising NGROUPS and NGROUPS_MAX, change basebrooks2009-06-195-20/+42
| | | | | | | | | | | | | | | | | | | | | | system callers of getgroups(), getgrouplist(), and setgroups() to allocate buffers dynamically. Specifically, allocate a buffer of size sysconf(_SC_NGROUPS_MAX)+1 (+2 in a few cases to allow for overflow). This (or similar gymnastics) is required for the code to actually follow the POSIX.1-2008 specification where {NGROUPS_MAX} may differ at runtime and where getgroups may return {NGROUPS_MAX}+1 results on systems like FreeBSD which include the primary group. In id(1), don't pointlessly add the primary group to the list of all groups, it is always the first result from getgroups(). In principle the old code was more portable, but this was only done in one of the two places where getgroups() was called to the overall effect was pointless. Document the actual POSIX requirements in the getgroups(2) and setgroups(2) manpages. We do not yet support a dynamic NGROUPS, but we may in the future. MFC after: 2 weeks
* Re-do r192913 in less intrusive way. Only do IP_RECVDSTADDR/IP_SENDSRCADDRkan2009-06-182-21/+36
| | | | | | | | | | | | | dace for UPDv4 sockets bound to INADDR_ANY. Move the code to set IP_RECVDSTADDR/IP_SENDSRCADDR into svc_dg.c, so that both TLI and non-TLI users will be using it. Back out my previous commit to mountd. Turns out the problem was affecting more than one binary so it needs to me addressed in generic rpc code in libc in order to fix them all. Reported by: lstewart Tested by: lstewart
* Retire the unused stub for the nfsclnt() system call.jhb2009-06-171-3/+0
|
* - Allow a higher value for the number of heads. Its better to do this and allowlulf2009-06-171-1/+1
| | | | a few bad systems to run than to be completely strict about it.
* Add revoke(1).ed2009-06-151-1/+2
| | | | | | | | While hacking on TTY code, I often miss a small utility to revoke my own (pseudo-)terminals. This small utility is just a small wrapper around the revoke(2) call, so you can destroy your very own login sessions. Approved by: re
* Add a new 'void closefrom(int lowfd)' system call. When called, it closesjhb2009-06-154-1/+58
| | | | | | | | | | | | | | | | | | | | any open file descriptors >= 'lowfd'. It is largely identical to the same function on other operating systems such as Solaris, DFly, NetBSD, and OpenBSD. One difference from other *BSD is that this closefrom() does not fail with any errors. In practice, while the manpages for NetBSD and OpenBSD claim that they return EINTR, they ignore internal errors from close() and never return EINTR. DFly does return EINTR, but for the common use case (closing fd's prior to execve()), the caller really wants all fd's closed and returning EINTR just forces callers to call closefrom() in a loop until it stops failing. Note that this implementation of closefrom(2) does not make any effort to resolve userland races with open(2) in other threads. As such, it is not multithread safe. Submitted by: rwatson (initial version) Reviewed by: rwatson MFC after: 2 weeks
* - The maximum number of heads is 255, not 256.lulf2009-06-151-1/+1
| | | | Pointed out by: marcel
* - Remove old and add new valid flags for the chunk structure.lulf2009-06-151-8/+5
| | | | Submitted by: randi
* - Relax sanitazion requirements in libdisk, as a previous commit enabling thislulf2009-06-151-9/+1
| | | | | | | | sanitization broke sysinstall on some disks. This was due to the disks reporting a geometry that was incorrectly sanitized by sysinstall. This makes the sanitization consistent with fdisk. Tested by: randi
* Note that the structures are defined in <sys/user.h> in the text (usingjhb2009-06-152-4/+4
| | | | | | language from stat(2)) rather than in the synopsis. Requested by: bde
* Include <stdio.h> for asprintf().ed2009-06-141-0/+1
| | | | Submitted by: Pawel Worach
* Fix missing includes of <string.h>, to silence some compiler warnings.ed2009-06-147-2/+7
| | | | Submitted by: Pawel Worach
* - Note that these interfaces require <sys/user.h> for the structurejhb2009-06-122-2/+12
| | | | | | | definitions. - Note that these functions return NULL on failure. MFC after: 3 days
* Cleanup claim/release interface code, which is specific to libusb v0.1. Removethompsa2009-06-126-124/+12
| | | | | | claim and release interface support from libusb v2.0, because it is not useful. Submitted by: Hans Petter Selasky
* Allow libufs(3) functions to operate on a regular file. This makes it ↵jmallett2009-06-112-2/+5
| | | | | | | | | possible to use almost anything that uses libufs(3) against a file as an unprivileged user, e.g. tunefs(8) and dumpfs(8) against a makefs(8)-created image. Prodded by: kensmith
* Use the documented machine constraint for SSE registers.ed2009-06-111-1/+1
| | | | | | | | The amd64-specific bits of msun use an undocumented constraint, which is less likely to be supported by other compilers (such as Clang). Change the code to use a more common machine constraint. Obtained from: /projects/clangbsd/
* Revert r181651, which changed the ABI, and use a temp variable instead.des2009-06-092-2/+4
| | | | Suggested by: attilio
* Spacing fixes. No actual change.delphij2009-06-091-2/+2
|
* Document the fact that some Core2 family CPUs lack fixed-function counters.jkoshy2009-06-091-3/+4
|
* Fix parsing of Core2 event qualifiers.jkoshy2009-06-091-7/+7
| | | | Submitted by: Nikola K <laladelausanne at gmail dot com>
* Do not attempt to set source address on outgoing messageskan2009-06-081-2/+2
| | | | on UDP socket if we do not have a valid IP address.
* Revert (once again, and hopefully for the last time) to flock(2) locks.des2009-06-062-23/+14
| | | | | | The problem with fcntl(2) locks is that they are not inherited by child processes. This breaks pidfile(3), where the common idiom is to open and lock the PID file before daemonizing.
* Add missing .Ppdes2009-06-061-0/+1
|
* Use ISO C99 style inline semantics in msun.ed2009-06-036-15/+30
| | | | | Because we use ISO C99 nowadays, we can just get rid of enforcing GNU89-style inlining.
* Add libusb20_tr_get_length to get the transfer length.thompsa2009-06-023-4/+39
| | | | Submitted by: Hans Petter Selasky
* Add support for the build options that are currently in the port:dougb2009-06-011-0/+13
| | | | | | | WITH_BIND_IDN WITH_BIND_LARGE_FILE WITH_BIND_SIGCHASE WITH_BIND_XML
* Document EINVAL for bind(2).pjd2009-06-011-0/+3
| | | | | Reviewed by: rwatson Obtained from: SuSv3
* Fix minor issues in libstand.ed2009-05-312-2/+2
| | | | | | | - Don't call tftp_makereq() with too many arguments. - Don't forget to close one of the comments. Submitted by: Pawel Worach
* Update BIND to version 9.6.1rc1. This version has better performance anddougb2009-05-3116-1090/+555
|\ | | | | | | | | | | | | | | | | | | | | | | | | lots of new features compared to 9.4.x, including: Full NSEC3 support Automatic zone re-signing New update-policy methods tcp-self and 6to4-self DHCID support. More detailed statistics counters including those supported in BIND 8. Faster ACL processing. Efficient LRU cache-cleaning mechanism. NSID support.
| * Vendor import of BIND 9.6.1rc1dougb2009-05-31655-5661/+28627
| |
| * In preparation for the BIND 9.6.1rc1 import, remove this directory.dougb2009-05-30209-59367/+0
| | | | | | | | | | The libbind library is no longer distributed as part of the main BIND package, and we never built it in any case.
| * Vendor import of BIND 9.4.3-P2dougb2009-03-211-12/+67
| |
| * Vendor import of BIND 9.4.3-P1dougb2009-01-094-9/+8
| |
| * Vendor import of BIND 9.4.3dougb2008-12-232-0/+70
| |
| * Vendor import of BIND 9.4.3dougb2008-12-2398-1626/+4925
| |
| * This directory was added to src/contrib/bind9 prior to the svn move sodougb2008-12-231-81/+0
| | | | | | | | | | | | that BIND 9.4.1 could compile and run on the ARM platform, but is not part of the vendor source. It will remain in src/contrib/bind9 since it is a local modification.
| * Vendor import of BIND 9.4.2-P2dougb2008-09-0119-104/+393
| |
| * These files are unused, and due to a more thorough FREEBSD-Xlistdougb2008-07-123-33888/+0
| | | | | | | | are no longer updated.
| * Add a patch from ISC to fix named-checkconf. The error condition was notdougb2008-07-121-2/+2
| | | | | | | | | | | | being properly tested for, so it would not report the error in some cases. This fix (or similar) will be in version 9.4.3.
| * Vendor import of BIND 9.4.2-P1dougb2008-07-124-492/+283
| |
| * Flatten bind9 vendor work areapeter2008-07-12837-0/+292145
|
* Use GCC's __SOFTFP__ to test whether we're being compiledmarcel2009-05-314-11/+9
| | | | | with softfloat or not. Now -msoft-float can be overridden more easily.
* Print the returned port number when RPC_DEBUG is defined.marcel2009-05-301-4/+11
| | | | This improves debugging.
* Include libmd and libcrypto in DPADDkientzle2009-05-301-3/+4
|
* Link libarchive against -lmd and -lcrypto.kientzle2009-05-301-1/+2
| | | | Thanks to Ed Schouten for the clue.
* Document how to enable strict RFC 1034 enforcements.delphij2009-05-291-1/+14
| | | | PR: kern/129477
OpenPOWER on IntegriCloud