summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* db: Use O_CLOEXEC instead of separate fcntl() call.jilles2013-08-132-8/+3
|
* Expose _citrus_bcs_trunc_rws_len for libintl's use.peter2013-08-131-0/+1
| | | | Submitted by: Jan Beich <jbeich@tormail.org>
* Turn off warns for this do-nothing file. clang noticed.peter2013-08-131-0/+2
|
* The iconv in libc did two things - implement the standard APIs, the GNUpeter2013-08-136-17/+41
| | | | | | | | | | | | | | | | | | | | | | | | extensions and also tried to be link time compatible with ports libiconv. This splits that functionality and enables the parts that shouldn't interfere with the port by default. WITH_ICONV (now on by default) - adds iconv.h, iconv_open(3) etc. WITH_LIBICONV_COMPAT (off by default) adds the libiconv_open etc API, linker symbols and even a stub libiconv.so.3 that are good enough to be able to 'pkg delete -f libiconv' on a running system and reasonably expect it to work. I have tortured many machines over the last few days to try and reduce the possibilities of foot-shooting as much as I can. I've successfully recompiled to enable and disable the libiconv_compat modes, ports that use libiconv alongside system iconv etc. If you don't enable the WITH_LIBICONV_COMPAT switch, they don't share symbol space. This is an extension of behavior on other system. iconv(3) is a standard libc interface and libiconv port expects to be able to run alongside it on systems that have it. Bumped osreldate.
* db/hash: Use O_CLOEXEC instead of separate fcntl() call.jilles2013-08-111-2/+1
| | | | | | In particular, a hash db is used by getpwnam() and getpwuid(). MFC after: 1 week
* Fix the return value when we found a symbol in .dynstr. This nasty bug wasrpaulo2013-08-101-0/+1
| | | | preventing a lot of symbol lookups in dtruss -s, for example.
* Add mkostemp() and mkostemps().jilles2013-08-094-21/+106
| | | | | These are like mkstemp() and mkstemps() but allow passing open(2) flags like O_CLOEXEC.
* According to POSIX \ in the fnmatch(3) pattern should escapeache2013-08-081-2/+0
| | | | | | | | | | any character including '\0', but our version replace escaped '\0' with '\\'. I.e. fnmatch("\\", "\\", 0) should not match while fnmatch("\\", "", 0) should (Linux and NetBSD does the same). Was vice versa. PR: 181129 MFC after: 1 week
* Our libc iconv (unlike gnu iconv and the citrus code in NetBSD) has apeter2013-08-081-0/+13
| | | | | | | | bypass mode when src == dst. Unfortunately, there are tools in ports that pass byte streams through iconv to determine if the encodings are valid. eg: gettext-0.18.3+. Disable the optimization and behave like the other implementations.
* Update Bind to 9.8.5-P2erwin2013-08-065-1/+343
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New Features Adds a new configuration option, "check-spf"; valid values are "warn" (default) and "ignore". When set to "warn", checks SPF and TXT records in spf format, warning if either resource record type occurs without a corresponding record of the other resource record type. [RT #33355] Adds support for Uniform Resource Identifier (URI) resource records. [RT #23386] Adds support for the EUI48 and EUI64 RR types. [RT #33082] Adds support for the RFC 6742 ILNP record types (NID, LP, L32, and L64). [RT #31836] Feature Changes Changes timing of when slave zones send NOTIFY messages after loading a new copy of the zone. They now send the NOTIFY before writing the zone data to disk. This will result in quicker propagation of updates in multi-level server structures. [RT #27242] "named -V" can now report a source ID string. (This is will be of most interest to developers and troubleshooters). The source ID for ISC's production versions of BIND is defined in the "srcid" file in the build tree and is normally set to the most recent git hash. [RT #31494] Response Policy Zone performance enhancements. New "response-policy" option "min-ns-dots". "nsip" and "nsdname" now enabled by default with RPZ. [RT #32251] Approved by: delphij (mentor) Sponsored by: DK Hostmaster A/S
| * Vendor import of BIND 9.8.5-P2erwin2013-07-311-1/+1
| | | | | | | | | | Approved by: delphij (mentor, implicit) Sponsored by: DK Hostmaster A/S
| * Vendor import of Bind 9.8.5-P1erwin2013-07-24160-1747/+5376
| | | | | | | | | | Approved by: delphij (mentor) Sponsored by: DK Hostmaster A/S
* | After r253839, which modifies ld's behaviour to not automatically pulldim2013-08-032-0/+3
| | | | | | | | | | | | | | in needed libraries, change libc++.so into a linker script, so it can automatically pull in libcxxrt.so. MFC after: 1 week
* | Include an Accept header in requests.des2013-07-302-3/+18
| | | | | | | | | | PR: kern/180917 MFC after: 1 week
* | Restore the longer form of the _Generic. The short form does not work in C++.theraven2013-07-291-2/+11
| |
* | Reenable the isnan(double) / isinf(double) declarations when targeting C89 + ↵theraven2013-07-291-0/+15
| | | | | | | | SUSv2 mode.
* | Revert r253748,253749avg2013-07-282-0/+2
| | | | | | | | | | | | This WIP should not have been committed yet. Pointyhat to: avg
* | remove needless inclusion of machine/cpu.h in userlandavg2013-07-282-2/+0
| | | | | | | | MFC after: 21 days
* | Implement certificate verification, and many other SSL-relateddes2013-07-264-16/+632
| | | | | | | | | | | | | | | | imrovements; complete details in the PR. PR: kern/175514 Submitted by: Michael Gmelin <freebsd@grem.de> MFC after: 1 week
* | Remove define and documentation for vm_pageout_algorithm missed in r253587zont2013-07-261-4/+0
| |
* | Enhance the description of NOTE_TRACK:jhb2013-07-251-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - NOTE_TRACK has never triggered a NOTE_TRACK event from the parent pid. If NOTE_FORK is set, the listener will get a NOTE_FORK event from the parent pid, but not a separate NOTE_TRACK event. - Explicitly note that the event added to monitor the child process preserves the fflags from the original event. - Move the description of NOTE_TRACKERR under NOTE_TRACK as it is not a bit for the user to set (which is what this list pupports to be). Also, explicitly note that if an error occurs, the NOTE_CHILD event will not be generated. MFC after: 1 week
* | Add pkgconf files for libusb.rpaulo2013-07-254-0/+41
| | | | | | | | Reviewed by: hselasky
* | wordexp(): Fix syntax validation for backslashes in single-quotes.jilles2013-07-231-1/+2
| |
* | Document EINVAL error return from PT_LWPINFOemaste2013-07-221-1/+9
| |
* | Teach siglongjmp about the VFP version of the setjmp buffer.andrew2013-07-211-3/+5
| | | | | | | | | | This fixes a bug where a call to sigsetjmp followed by siglongjmp may fail when run on a machine with VFP enabled.
* | Use the correct request syntax for proxied (tunneled) HTTPS requests.des2013-07-211-1/+1
| | | | | | | | | | PR: bin/180666 MFC after: 3 days
* | Since there's no defined schema for the XML that's generated by thescottl2013-07-192-0/+6
| | | | | | | | | | | | | | | | | | kern.geom.confxml sysctl, it's silly to warn about tags in libgeom, especially since libgeom exists simply to build a tree out of the conf information. Obtained from: Netflix MFC after: 3 days
* | [fix to r253380] __setenv: be explicit about placing '=' after nameavg2013-07-171-2/+1
| | | | | | | | | | | | | | | | | | | | This should a regression introduced in r253380 if malloc'ed memory happens to have '=' at the right place. Reported by: ache Pointyhat to: me (avg) MFC after: 1 day X-MFC with: r253380
* | libc: name passed into __setenv is not necessarily NUL-terminatedavg2013-07-161-1/+1
| | | | | | | | | | | | That's particularly true when __setenv is called from __merge_environ. MFC after: 4 days
* | Add some missing definitions to build a working FreeBSD's libusb under Linux.hselasky2013-07-144-55/+67
| |
* | Cleaner support for type qualifiers.theraven2013-07-131-11/+2
| | | | | | | | Submitted by: Pasi Parviainen
* | Ensure that the _Generic() macro in math.h works with qualified types.theraven2013-07-131-17/+26
| | | | | | | | tgmath.h contains the same bugs and so should be fixed in the same way.
* | Fix mdoc syntax.hrs2013-07-131-7/+7
| | | | | | | | Pointed out by: joeld
* | Typo corrected.schweikh2013-07-121-1/+1
| |
* | Prefix the alias macros for members of struct __mcontext with an underscoremarius2013-07-123-14/+14
| | | | | | | | in order to avoid a clash in the net80211 code.
* | Add a leaf node CTL_NET.PF_ROUTE.0.AF.NET_RT_DUMP.0.FIB. This returnshrs2013-07-121-9/+9
| | | | | | | | routing table with the specified FIB number, not td->td_proc->p_fibnum.
* | Fix the build with C++ where __builtin_types_compatible_p is not allowed.theraven2013-07-121-2/+3
| |
* | Revert r253247. This change should be improved based on a lesson learnthrs2013-07-121-2/+2
| | | | | | | | | | | | from r233646 first. Pointed out by: jmallett
* | Use strtoumax() instead of strtoul() for id/ref attr in XML elements.hrs2013-07-121-2/+2
| | | | | | | | | | | | This improves compatibility when running an ILP32 binary on LP64 kernel. Spotted by: gjb
* | Fix some typoes in math.h cleanup.theraven2013-07-111-3/+3
| |
* | Cleanups to math.h that prevent namespace conflicts with C++.theraven2013-07-111-28/+49
| | | | | | | | | | Reviewed by: bde MFC after: 3 days
* | In r227839, when removing libkvm dependency on procfs(5),trociny2013-07-102-2/+1
| | | | | | | | | | | | | | | | | | | | | | kvm_uread() function, used for reading from /proc/pid/mem, was removed too. But the function declaration remained in kvm.h public header and the soname was not bumped. Remove kvm_uread() from kvm.h and bump the soname. Reported by: rmh Discussed on: arch
* | Fix the handling of SCTP_CURRENT_ASSOC and SCTP_ALL_ASSOC intuexen2013-07-091-0/+5
| | | | | | | | | | | | sctp_opt_info(). MFC after: 3 days
* | Fix a bug where SCTP_ENABLE_STREAM_RESET is not handled bytuexen2013-07-091-0/+3
| | | | | | | | | | | | sctp_opt_info(). MFC after: 3 days
* | Update references.hrs2013-07-092-12/+11
| |
* | mktemp(3): Add standards section. Prefer standard header.jilles2013-07-051-4/+29
| | | | | | | | | | | | mktemp(), mkstemp() and mkdtemp() are available in standard <stdlib.h> and also in <unistd.h>. Encourage use of the former by listing it in the synopsis.
* | Style fix noted by bde@ache2013-07-041-4/+8
| |
* | After fixing ranges restore POSIX requirement: rand() call withoutache2013-07-041-1/+6
| | | | | | | | | | srand() must be the same as srand(1); rand(); (yet one increment)
* | In addition to prev. commit, for repeated rand_r(3) calls don't forgetache2013-07-031-1/+5
| | | | | | | | | | | | | | to compensate back at the end incremented at the start internal state. MFC after: 2 weeks
* | 1) POSIX requires rand(3) return values to be in the [0, RAND_MAX] range,ache2013-07-031-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | but ACM formula we use have internal state (and return value) in the [1, 0x7ffffffe] range, so our RAND_MAX (0x7fffffff) is never reached because it is off by one, zero is not reached too. Correct both RAND_MAX and rand(3) return value, shifting last one to the 0 by 1 subtracted, resulting POSIXed [0, 0x7ffffffd(=new RAND_MAX)] range. 2) Add a checks for not overflowing on too big seeds. It may happens on the machines, where sizeof(unsigned int) > 32 bits. Reviewed by: bde [1] MFC after: 2 weeks
OpenPOWER on IntegriCloud