summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* - 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)
* 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)
* 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
|
* 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.
* 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.
* 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
* Catch up with the code.brueffer2007-06-131-2/+2
| | | | Submitted by: peter
* 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.
* 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"
* Diff reduction against other *BSDs: ANSIfy functiondelphij2007-06-114-141/+66
| | | | prototypes. No function changes.
* Fix bogon in previous commit: <machine/cpu.h> is still needed.marcel2007-06-101-0/+1
|
* The definition of CACHELINESIZE moved from <machine/cpu.h> tomarcel2007-06-101-1/+1
| | | | <machine/md_var.h>.
* Document getaddrinfo(3)'s AI_ADDRCONFIGremko2007-06-061-6/+67
| | | | | | | PR: docs/78357 Submitted by: Matthias Andree <matthias dot andree at gmx dot de> Patch by: asmodai MFC after: 1 week
* Expose __stack_chk_fail_local() so -fstack-protector-all works.des2007-06-052-3/+1
|
* Merge BIND 9.4.1 into main chunk.ume2007-06-031-2/+7
| | | | MFC after: 2 weeks
* Merge BIND 9.4.1 into main chunk.ume2007-06-0329-341/+396
| | | | MFC after: 2 weeks
* This commit was generated by cvs2svn to compensate for changes in r170242,ume2007-06-038-110/+133
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of BIND 9.4.1ume2007-06-0337-452/+530
| |
* | Export quad symbols. They were previously commented out. These symbolsdeischen2007-05-311-6/+6
| | | | | | | | | | | | | | | | | | really shouldn't be exported since they should be pulled from libgcc, but the build of some applications is broken and they expect to see them in libc. glibc exports these symbols, although Solaris doesn't appear to, so export them for compatibility's sake. After discussion with: kan
* | Some libc symbol map cleanups.deischen2007-05-3111-31/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | net: endhostdnsent is named _endhostdnsent and is private to netdb family of functions. posix1e: acl_size.c has been never compiled in, so there's no "acl_size". rpc: "getnetid" is a static function. stdtime: "gtime" is #ifdef'ed out in the source. some symbols are specific only to some architectures, e.g., ___tls_get_addr is only defined on i386. __htonl, __htons, __ntohl and __ntohs are no longer functions, they are now (internal) defines in <machine/endian.h>. Submitted by: ru
* | Correct spelling errors in comments.rwatson2007-05-281-2/+2
| |
* | Precede symbol names consistently with tabs rather than spaces.rwatson2007-05-281-14/+14
| |
* | Const'ify and ANSIfy the internal interfaces of regex(3).delphij2007-05-251-109/+100
| | | | | | | | | | This is the final change that makes libc to compile with WERROR on my amd64 crashbox.
* | ANSIfy function definitions, reduces diff against OpenBSD.delphij2007-05-251-17/+8
| |
* | Also fix the misspelling of hes_resolve().ru2007-05-251-1/+1
| | | | | | | | Submitted by: Danny Braniss
* | The usage of "info" in init_hash() is read-only, so constifydelphij2007-05-251-3/+3
| | | | | | | | | | the internal interface instead of casting away the constant constraint upon calling.
* | hesiod_resolv -> hesiod_resolveru2007-05-241-1/+1
| | | | | | | | Submitted by: Danny Braniss
* | Backout 1.5 as requested by deischenjon2007-05-221-1/+0
| |
* | __cleanup() is needed for ports/devel/valgrind, export it.jon2007-05-221-0/+1
| |
* | Use LDADD to add -lgcc to the end of linker command line. Using LDFLAGSkan2007-05-191-1/+2
| | | | | | | | puts it before library's object files, making the whole constuct useless.
* | Use __mcount() instead of _mcount() to reduce diffs with NetBSD.cognet2007-05-191-1/+1
| |
* | Use built-in _end symbol insteadof 'end' for consistency with otherkan2007-05-191-2/+2
| | | | | | | | architectures. Linker defines end is synonym for _end.
* | Do not declare float_detect_tininess as external if it will be re-delaredkan2007-05-191-0/+2
| | | | | | | | as static later.
* | Make sure GCC will not try to link libc with itself.kan2007-05-191-0/+5
| |
* | Follow NetBSD, OpenBSD and DragonfyBSD project and add BSD-licensedkan2007-05-193-1/+124
| | | | | | | | | | SSP functions into FreeBSD libc. Use the same file name and location for consistency with other projects.
* | Move nss_compat symbols from r1.11 to private section of symbol map.jon2007-05-181-10/+10
| | | | | | | | Suggested by: deischen
* | __nss_compat_* from net/nss_compat.c are needed by ports/net/nss_ldap, so ↵jon2007-05-181-0/+10
| | | | | | | | export them.
* | endrpcent belongs with rpc name service db, not services.jon2007-05-171-1/+1
| | | | | | | | MFC after: 1 week
* | fix memory leak from reading nsswitch.confjon2007-05-172-0/+7
| | | | | | | | MFC after: 1 week
* | -Fix so getoptinfo() is in conformance with socket api (itrrs2007-05-161-32/+33
| | | | | | | | | | | | can be used on any read socketopt). -Clean up of sendmsg call and make it conformant when no syscall is available.
OpenPOWER on IntegriCloud