summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* - Removes some incorrect error returns (errno was being overriden inrrs2007-07-021-4/+2
| | | | | | | | one of the functions) - Fixes the error return of sctp_get_opt, it was returning the errno not -1. Approved by: re@freebsd.org (Robert Watson) Obtained from: Weongyo Jeong (weongyo.jeong@gmail.com)
* Commit IPv6 support for FAST_IPSEC to the tree.gnn2007-07-0111-19/+18
| | | | | | | | This commit includes all remaining changes for the time being including user space updates. Submitted by: bz Approved by: re
* Merge fixes back from heimdal.dfr2007-06-305-63/+154
| | | | Approved by: re (kensmith)
* Fix sbrk.S to use _end symbol the same way brk.s was fixed some timekan2007-06-271-2/+2
| | | | | | | ago. sbrk.S should have gotten the same change then but was forgotten. Approved by: re (bmah) PR: kern/114049
* Fix 'bsdtar -t' on tape drives. Libarchive uses thekientzle2007-06-263-12/+45
| | | | | | | | | | | | | skip() callback to skip over data when reading uncompressed archives. This gets invoked, for example, during tar -t or tar -x with a filename argument. The revised code only calls [lf]seek() on regular files, instead of depending on the kernel to return an error. Thanks to: bde for explaining the implementation of lseek() Thanks to: Daniel O'Connor for testing Approved by: re (Ken Smith) MFC after: 5 days
* Add missing semi-colon.mjacob2007-06-261-1/+1
| | | | Approved by: re (not really, but it's better to have things compile than not for right now. Sorry)
* - Fix wrong error return (the errno was being returned and not placedrrs2007-06-251-10/+24
| | | | | | | | | in errno) - Found by Weongyo Jeong - Remove two extra un-needed memset() after calloc()'s - Found by Weongyo Jeong - Tightened up parameter requirement checking on input to bindx/connectx per socket api spec. Approved by: re@freebsd.org(Ken Smith)
* - Fix incorrect error return on sctp_getaddrlenrrs2007-06-221-3/+3
| | | | | | | | | - Fix a memory leak when a non v4/v6 address was passed in. - Take out strange line that copy's back to the src array incorrectly (corrupting the input array). Approved by: re(bmah@freebsd.org) Obtained from: Weongyo Jeong(weongyo.jeong@gmail.com)
* Ouch. I partially screwed up the last commit bykientzle2007-06-221-1/+0
| | | | | | | enabling a test that's not ready yet. <sigh> Pointy hat: /me Approved by: re@
* Support for writing the 'newc' cpio format, plus a minimal test harnesskientzle2007-06-227-0/+393
| | | | | | | for the cpio formats. Thanks to: Rudolf Marek Approved by: re@
* Clean up after previous commit: new sentence -> new line, no empty lines,brueffer2007-06-191-4/+6
| | | | | | .Fa macro usage. Approved by: re (blanket)
* - Fix the signature of sctp_connectx to match the function and adds somerrs2007-06-191-2/+6
| | | | | text about the last argument. Approved by: re (bmah@freebsd.org)
* - Bump share library version which were missed in last bumprafan2007-06-183-3/+3
| | | | | | Reported by: jhb Discussed with: deischen, des, doubg, harti Approved by: re (kensmith)
* Major cleanup: mdoc macros, style, typos etc.brueffer2007-06-1810-216/+320
|
* Add rewind() to the list of functions which may fail and set errnoache2007-06-181-1/+2
|
* Add mbstate clear missed in one of the cases.ache2007-06-181-5/+6
| | | | Move overflow check for fseek as early as needed.
* Fix library names.davidxu2007-06-1810-10/+10
|
* Track whether the current read stream supports seek(). For now, wekientzle2007-06-182-0/+22
| | | | | | | assume yes unless seek has previously failed, but I fear I'll have to avoid seeks under other circumstances. (For instance, tape drives on FreeBSD seem to return garbage from lseek().) Also, optimize away zero-byte skips.
* - Bump ncurses share library version for the coming RELENG_7rafan2007-06-161-1/+1
| | | | | Pointed out by: jhb Approved by: delphij (mentor)
* Add information about the implications of using mmap(2) instead of sbrk(2).jasone2007-06-151-1/+19
| | | | Submitted by: bmah, jhb
* Fix junk/zero filling for realloc(). Junk filling was missing in one case,jasone2007-06-151-36/+48
| | | | | | and zero filling was broken in a way that could cause memory corruption. Update comments.
* Re-enable raw dump format support on i386 and amd64 for /dev/fwmem.simokawa2007-06-154-18/+39
|
* Use an array of size NGROUP_MAX for the getgroups() call instead of NGRP.harti2007-06-141-2/+4
| | | | | When NGROUP_MAX is larger than NGRP the call used to fail. Now the call succeedes, but only the first NGRP groups are actually used for authentication.
* According to the documentation mech_type for gss_init_sec_context() mayharti2007-06-141-1/+9
| | | | | | | | | | be passed as GSS_C_NO_OID in which case a default mech should be used. This case was not handled and leads to core dumps when using nss_ldap. Now use the first mech in this case. When there is no mechanism available return an error (this part is taken from the PR). PR: 113266 Submitted by: Eirik Nygaard <eirikald@pvv.ntnu.no> (partly)
* Use the current user's login class for the decisions about whereyar2007-06-142-45/+59
| | | | | | | | | | the nologin(5) file is located and whether the user may bypass its restriction. Add some error checks. Approved by: des PR: bin/107612
* Document the quirks of ~/.login_conf and LOGIN_MECLASS.yar2007-06-141-57/+80
|
* Improve mdoc(7) markup.yar2007-06-141-76/+190
|
* Require users to provide a length information for inet_ntoa_r,delphij2007-06-142-5/+6
| | | | | | this is common on other platforms. Reported by: pointyhat via kris
* Update some comments, mostly regarding LOGIN_MECLASS and ~/.login_conf.yar2007-06-141-8/+18
|
* Oops, back out previous commit since it was backwards to a wrong branch.bde2007-06-141-1/+1
|
* MFC: 1.11: fix the threshold for (not) using the simple Taylor approximation.bde2007-06-141-1/+1
|
* Catch up with the code.brueffer2007-06-131-2/+2
| | | | Submitted by: peter
* Make 'ar' write test a tad more portable.kientzle2007-06-131-3/+3
|
* Read support for the new GNU tar sparse formats added in gtar 1.15 andkientzle2007-06-133-84/+570
| | | | gtar 1.16.
* Add some options to libarchive_test:kientzle2007-06-131-12/+50
| | | | | -k: like make -k, try to keep going after errors. -q: quiet
* Fix a broken function declaration.kientzle2007-06-131-1/+1
|
* Options spring cleanup:sepotvin2007-06-131-1/+0
| | | | | | | | | | - Add and document the KVM and KVM_SUPPORT options that are needed for the ifmcstats(3) makefile - Garbage collect unused variables - Add missing inclusion of bsd.own.mk where needed Approved by: kan (mentor) Reviewed by: ru
* Fix yet another (make install) stopper with wrong sourcefilter.3 linksache2007-06-121-2/+2
|
* Fix typo in filename from mismerged earlier rev of this file.bms2007-06-121-1/+1
|
* Fix a typo which crept in from an earlier version of this file.bms2007-06-121-2/+2
|
* Add missing userland support files from previous commit for the newbms2007-06-122-0/+587
| | | | multicast source filter API functions.
* Import rewrite of IPv4 socket multicast layer to support source-specificbms2007-06-122-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and protocol-independent host mode multicast. The code is written to accomodate IPv6, IGMPv3 and MLDv2 with only a little additional work. This change only pertains to FreeBSD's use as a multicast end-station and does not concern multicast routing; for an IGMPv3/MLDv2 router implementation, consider the XORP project. The work is based on Wilbert de Graaf's IGMPv3 code drop for FreeBSD 4.6, which is available at: http://www.kloosterhof.com/wilbert/igmpv3.html Summary * IPv4 multicast socket processing is now moved out of ip_output.c into a new module, in_mcast.c. * The in_mcast.c module implements the IPv4 legacy any-source API in terms of the protocol-independent source-specific API. * Source filters are lazy allocated as the common case does not use them. They are part of per inpcb state and are covered by the inpcb lock. * struct ip_mreqn is now supported to allow applications to specify multicast joins by interface index in the legacy IPv4 any-source API. * In UDP, an incoming multicast datagram only requires that the source port matches the 4-tuple if the socket was already bound by source port. An unbound socket SHOULD be able to receive multicasts sent from an ephemeral source port. * The UDP socket multicast filter mode defaults to exclusive, that is, sources present in the per-socket list will be blocked from delivery. * The RFC 3678 userland functions have been added to libc: setsourcefilter, getsourcefilter, setipv4sourcefilter, getipv4sourcefilter. * Definitions for IGMPv3 are merged but not yet used. * struct sockaddr_storage is now referenced from <netinet/in.h>. It is therefore defined there if not already declared in the same way as for the C99 types. * The RFC 1724 hack (specify 0.0.0.0/8 addresses to IP_MULTICAST_IF which are then interpreted as interface indexes) is now deprecated. * A patch for the Rhyolite.com routed in the FreeBSD base system is available in the -net archives. This only affects individuals running RIPv1 or RIPv2 via point-to-point and/or unnumbered interfaces. * Make IPv6 detach path similar to IPv4's in code flow; functionally same. * Bump __FreeBSD_version to 700048; see UPDATING. This work was financially supported by another FreeBSD committer. Obtained from: p4://bms_netdev Submitted by: Wilbert de Graaf (original work) Reviewed by: rwatson (locking), silence from fenner, net@ (but with encouragement)
* - Validate incoming addresses and sizes for connectx and bindx.rrs2007-06-111-5/+16
| | | | - For non-sys call version pass the msg_flags.
* Fix an aliasing bug which was finally detected by gcc-4.2. fdlibm hasbde2007-06-111-1/+1
| | | | | | | | | hundreds of similar aliasing bugs, but all except this one seem to have been fixed by Cygnus and/or NetBSD before the modified version of fdlibm was imported into FreeBSD in 1994. PR: standards/113147 Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>
* Add inet_ntoa_r, a reentrant version of inet_ntoa. This isdelphij2007-06-114-2/+23
| | | | | | available on a lot of platforms, as well as libkern for years. Submitted by: "MQ"
* Don't lose leading '/' for pathnames exactly 101 bytes long.kientzle2007-06-112-8/+25
| | | | Also, update the test harness to exercise this case.
* Diff reduction against other *BSDs: ANSIfy functiondelphij2007-06-114-141/+66
| | | | prototypes. No function changes.
* Merge NetBSD changes, among them:stefanf2007-06-105-117/+259
| | | | | | | | | | | | | | el.c 1.44, el.h 1.17, editline.3 1.53, histedit.h 1.31: # add EL_GETFP, and EL_SETFP. el.c 1.42, term.c 1.46, term.h 1.18, editline.3 1.52, histedit.h 1.29: # - Add more readline functions, enough for gdb-6.5 # - Make el_get varyadic, and implement EL_GETTC. # - XXX: the EL_SETTC api will change in the future. Note: The latter change breaks the ABI of the el_get() function. Approved by: re (kensmith)
* Now pam_nologin(8) will provide an account management functionyar2007-06-102-20/+11
| | | | | | | | | | | | | | | | | | | | | | | instead of an authentication function. There are a design reason and a practical reason for that. First, the module belongs in account management because it checks availability of the account and does no authentication. Second, there are existing and potential PAM consumers that skip PAM authentication for good or for bad. E.g., sshd(8) just prefers internal routines for public key auth; OTOH, cron(8) and atrun(8) do implicit authentication when running a job on behalf of its owner, so their inability to use PAM auth is fundamental, but they can benefit from PAM account management. Document this change in the manpage. Modify /etc/pam.d files accordingly, so that pam_nologin.so is listed under the "account" function class. Bump __FreeBSD_version (mostly for ports, as this change should be invisible to C code outside pam_nologin.) PR: bin/112574 Approved by: des, re
* Fix bogon in previous commit: <machine/cpu.h> is still needed.marcel2007-06-101-0/+1
|
OpenPOWER on IntegriCloud