summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix build with WITHOUT_INET6.ume2014-06-261-0/+2
| | | | | Spotted by: bf MFC after: 1 week
* - Exclude loopback address rather than loopback interface.ume2014-06-261-13/+27
| | | | | | | | | | | - style(9) TODO: When AI_ADDRCONFIG is specified, getaddrinfo() can be quite slow for system with many interfaces. We should have some kernel sysctls to report IPv4/IPv6 status. Spotted by: melifaro MFC after: 1 week
* Document EINVAL as per POSIX.pluknet2014-06-262-2/+10
| | | | | | | | This also follows r124335-r124336, r225827. PR: 191382 MFC after: 1 week Sponsored by: Nginx, Inc.
* MFV r267843: update file/libmagic to 5.19.delphij2014-06-262-62/+127
| | | | MFC after: 2 weeks
* Catch up with many years of changes:wollman2014-06-241-13/+50
| | | | | | | | | | | | | | | | | | | o Document PF_LOCAL as being an alias for PF_UNIX o Document POSIX standardization of this interface using AF_* constants rather than PF_* constants, and note the three particular families which POSIX standardizes. o Note anticipated POSIX standardization of SOCK_CLOEXEC. o Delete from listing protocol families that FreeBSD doesn't support (in some cases, like PF_PUP, has never supported). o Add to listing some current protocol families that have been introduced in the last decade or so. o Document the correspondence of PF_* and AF_* constants. We should probably change the documentation to make the AF_* constants primary, but this commit does not do so. Reviewed by: kevlo@ MFC after: 1 month
* Provide APIs to directly get 'lowmem' and 'highmem' size directly.neel2014-06-242-0/+16
| | | | | | | | Previously the sizes were inferred indirectly based on the size of the mappings at 0 and 4GB respectively. This works fine as long as size of the allocation is identical to the size of the mapping in the guest's address space. However, if the mapping is disjoint then this assumption falls apart (e.g., due to the legacy BIOS hole between 640KB and 1MB).
* mdoc: remove superfluous paragraph macros.joel2014-06-237-9/+0
|
* Exclude IPv4 address from doing longest match.ume2014-06-231-1/+2
| | | | | | It prevented DNS based load balancing. MFC after: 1 week
* use .Mt to mark up email addresses consistently (part4)bapt2014-06-2387-111/+105
| | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
* use .Mt to mark up email addresses consistently (part3)bapt2014-06-2381-148/+120
| | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
* Merge intermediate OpenBSD v1.25 changes (almost identical to ours)ache2014-06-221-18/+12
| | | | | | to reduce diff and bump OpenBSD patch level to v1.26. MFC after: 2 weeks
* getopt(3): recognize option:: as GNU extension for "optional options".pfg2014-06-223-8/+22
| | | | | | | | | | Also ANSIfy a function declaration. While here update the OpenBSD patch level in getopt_long.c as we already have the corresponding change. Obtained from: NetBSD MFC after: 2 weeks
* Revert r267675:pfg2014-06-211-6/+6
| | | | | | | | The code doesn't really benefit of using reallocf() in this case. Also, the realloc() results being assigned temporary variable which makes blind replacement with reallocf() mostly useless. Pointed out by: stefanf, bde
* regex: Make use of reallocf().pfg2014-06-201-6/+6
| | | | | | | | | | | | Use of reallocf is useful in libraries as we are not certain the application will exit after NULL. This somewhat reduces portability but if since you are building this as part of libc it is likely you have our non-standard reallocf(3) already. Reviewed by: ache MFC after: 5 days
* Use SOCK_CLOEXEC.ume2014-06-191-1/+1
| | | | MFC after: 1 week
* Add MAP_EXCL flag for mmap(2). It should be combined with MAP_FIXED,kib2014-06-191-6/+27
| | | | | | | | | | | and prevents the request from deleting existing mappings in the region, failing instead. Reviewed by: alc Discussed with: jhb Tested by: markj, pho (previous version, as part of the bigger patch) Sponsored by: The FreeBSD Foundation MFC after: 1 week
* The time come to remove the wrapper, most likely, but tidy up it codekib2014-06-191-11/+6
| | | | | | | | instead for now. Remove spurious blank line, use C89 definition, wrap long line. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* strptime: add support for %t and %npfg2014-06-181-38/+20
| | | | | | | | | | | | | | | Posix strptime() requires support for %t and %n, which were added to the illumos port. Curiously we were skipping white spaces by default in most other cases making %t meaningless. We now skip spaces in the case of the %e specifier as strftime(3) explicitly adds a space for the single digit case. Reference: http://pubs.opengroup.org/onlinepubs/009695399/functions/strptime.html Obtained from: Illumos (Rev. a11c1571b6942161b0186d0588609448066892c2) MFC after: 3 weeks
* Fix syntax error.wblock2014-06-181-1/+1
| | | | | | PR: 191131 Submitted by: dan.mcgregor@usask.ca MFC after: 1 week
* Retooling addrconfig() to exclude addresses on loopback interfacesume2014-06-181-29/+62
| | | | | | | | | | | | | when looking for configured addresses. This change is based upon the code from the submitter, and made following changes: - Exclude addresses assigned on interfaces which are down, like NetBSD does. - Exclude addresses assigned on interfaces which are ifdisabled. PR: 190824 Submitted by: Justin McOmie MFC after: 1 week
* stdtime: style(9) fixes.pfg2014-06-183-184/+186
| | | | | Obtained from: illumos MFC after: 5 days
* Update license to strptime(3) implementation.pfg2014-06-161-28/+5
| | | | | | | | | | | | | | | | | | | | Our strptime(3) implementation was the base for the illumos implementation and after contacting the author, Kevin Rudy stated the code is under a 2-Clause BSD License [1] After reviewing our local changes to the file in question, the FreeBSD Foundation has agreed that their contributions to this file are not required to carry clause 3 or 4 so the file can be relicensed as in Illumos [2]. References: [1] https://www.illumos.org/issues/357 [2] Illumos Revision: 13222:02526851ba75 Approved: core (jhb) Approved: FreeBSD Foundation (emaste) MFC after: 4 days
* Fix destruction of character devices by passing correct pointer tohselasky2014-06-161-1/+1
| | | | | | kernel in IOCTL request. Submitted by: Andrey Zholos <aaz@q-fu.com>
* Create a mechanism for providing fine-grained build order dependenciesian2014-06-151-52/+63
| | | | | | | | | | | | | | | | | | | | | | | | during SUBDIR_PARALLEL builds. This augments the coarse .WAIT mechanism, which is still useful if you've got a situation such as "almost everything depends on A and B". Because the parallel subdir mechanism uses non-obvious mangling of target names, which should probably remain a private detail of the implementation, it's not easy to do things like "libfoo: libbar", so instead the new mechanism lets you set a variable that lists dependencies: SUBDIR_DEPEND_libfoo= libgroodah libpouet Note that while I'm using libraries as an example here, it really has nothing to do with the generated library files. This is really saying "build in directory libfoo after building in the libgroodah and libpouet directories." This updates lib/Makefile with dependency information based on the old almost-accurate comment block and by combing through lib/* makefiles looking for LDADD dependencies to other libraries within lib/*. Reviewed by: Jia-Shiun Li <jiashiun@gmail.com>
* Attach the CUSE library and kernel module to the default FreeBSDhselasky2014-06-131-0/+5
| | | | builds. Bump the FreeBSD version number.
* iconv_open: initialise ci_ilseq_invalid field of _citrus_iconv_sharedtijl2014-06-131-2/+3
| | | | | | struct after allocation with malloc. iconvlist: reduce a memory leak by copying strings only once.
* Replace malloc+memset with calloc.tijl2014-06-132-5/+2
|
* Replace malloc+memset with calloc.tijl2014-06-131-4/+2
|
* Fix path for zlib examples, this have no runtime effect and wasdelphij2014-06-111-0/+2
| | | | | | overlooked when I was doing zlib update. MFC after: 2 weeks
* Add a zlib pkg-config file (more and more ports requires it)bapt2014-06-112-0/+18
| | | | | Approved by: delphij MFC after: 1 week
* Use Mt macro to properly format mailto links (patch from Franco Fichtner ↵bapt2014-06-111-12/+12
| | | | | | | | | <franco@lastsummer.de> for Dragonfly) Reviewed by: des Approved by: des Obtained from: Dragonfly MFC after: 1 week
* In some scenarios, when generating llvm/clang .inc.h files, multipledim2014-06-101-32/+43
| | | | | | | | | source files could be passed to tblgen or clang-tblgen, leading to a "Too many positional arguments specified" error message. Fix this by replacing the too-generic ${.ALLSRC} sources with explicit paths. Reported by: rysto32@gmail.com, rodrigc MFC after: 3 days
* siglongjmp(): Preserve floating point exception flags on i386 and amd64.jilles2014-06-092-2/+0
| | | | | | | | | | Per POSIX, siglongjmp() shall be equivalent to longjmp() except that it must match sigsetjmp() instead of setjmp() and except for the effect on the signal mask. Therefore, it should preserve the floating point exception flags. This was fixed for longjmp() and _longjmp() in r180080 and r180081 for amd64 and i386 respectively.
* In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE.bdrewery2014-06-082-0/+4
| | | | | | | | | | | | | | | | This is currently an opt-in build flag. Once ASLR support is ready and stable it should changed to opt-out and be enabled by default along with ASLR. Each application Makefile uses opt-out to ensure that ASLR will be enabled by default in new directories when the system is compiled with PIE/ASLR. [2] Mark known build failures as NO_PIE for now. The only known runtime failure was rtld. [1] http://www.bsdcan.org/2014/schedule/events/452.en.html Submitted by: Shawn Webb <lattera@gmail.com> Discussed between: des@ and Shawn Webb [2]
* Add ioctl(VM_REINIT) to reinitialize the virtual machine state maintainedneel2014-06-072-0/+8
| | | | | | | by vmm.ko. This allows the virtual machine to be restarted without having to destroy it first. Reviewed by: grehan
* Homogenize libatf-* version numbers with upstream.jmmv2014-06-062-2/+2
| | | | | | | | | | | | The libatf-* major version numbers in FreeBSD were one version ahead of upstream because, when atf was first imported into FreeBSD, the upstream numbers were not respected. This is just confusing and bound to cause problems down the road. Fix this by taking advantage of the fact that libatf-* are now private and that atf is not yet built by default. However, and unfortunately, a clean build is needed for tests to continue working once "make delete-old-libs" has been run; hence the note in UPDATING.
* Mdoc cleanup, typo and grammar fixes.brueffer2014-06-061-157/+154
|
* Add missing MLINKs.brueffer2014-06-061-0/+5
|
* When building picobsd, define WITHOUT_OPENSSL and WITHOUT_KERBEROS andimp2014-06-061-2/+0
| | | | | | | | | remove the now-redundant checks for RELEASE_CRUNCH. This originally was defined for building smaller sysinstall images, but was later also used by picobsd builds for a similar purpose. Now that we've moved away from sysinstall, picobsd is the only remaining consumer of this interface. Adding these two options reduces the RELEASE_CRUNCH special cases in the tree by half.
* Add support for arbitrary http requestsbapt2014-06-053-2/+37
| | | | | | | Submitted by: Alex Hornung <alex@alexhornung.com> Reviewed by: des Obtained from: Dragonfly MFC after: 3 week
* Remove unnecessary semicolonsbapt2014-06-051-4/+4
| | | | | | | | Patch by Sascha Wildner <saw@online.de> for Dragonfly Reviewed by: des Obtained from: Dragonfly MFC after: 1 week
* Use NULL instead of 0bapt2014-06-051-2/+2
| | | | | | | | Patch by Sascha Wildner <saw@online.de> for Dragonfly Reviewed by: des Obtained from: Dragonfly MFC after: 1 week
* If HTTP_USER_AGENT is defined but empty, don't send User-Agent at all.des2014-06-052-4/+10
| | | | | | PR: 184507 Submitted by: jbeich@tormail.org (with modifications) MFC after: 1 week
* Update reported libusb version to 1.0.13emaste2014-06-051-1/+1
| | | | | | | QEMU libusb host support needs at least libusbx-1.0.13, and our in-tree libusb supports the required functionality. Exp-run in PR. PR: 181035
* For Xeon 7500 and 48XX (Nehalem EX and Westmere EX) variants of thekib2014-06-041-1/+45
| | | | | | | | | | | | | | Core i7 and Westmere processors, the uncore PMC subsystem is completely different from the uncore PMC on smaller versions of CPUs. Disable existing uncore hwpmc code for EX, otherwise non-existing MSRs are accessed. The cores PMCs seems to be identical for non-EX and EX, according to the SDM. Reviewed by: davide, fabient Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* - Return NULL and set errno to EINVAL if size is 0 (as required by POSIX).gahr2014-06-022-8/+18
| | | | | | | | | | Update the manpage to reflect this change. - Always set the current position to the first null-byte when opening in append mode. This makes the implementation compatible with glibc's. Update the test suite. Reported by: pho Approved by: cognet
* Activate vcpus from bhyve(8) using the ioctl VM_ACTIVATE_CPU instead of doingneel2014-05-312-1/+50
| | | | | | | | | | | it implicitly in vmm.ko. Add ioctl VM_GET_CPUS to get the current set of 'active' and 'suspended' cpus and display them via /usr/sbin/bhyvectl using the "--get-active-cpus" and "--get-suspended-cpus" options. This is in preparation for being able to reset virtual machine state without having to destroy and recreate it.
* style(9) requires an empty line when function have no local variables.hselasky2014-05-301-0/+2
| | | | | Suggested by: ae @ Sponsored by: DARPA, AFRL
* Add support for snprintf() to libstand.hselasky2014-05-302-6/+54
| | | | | Reviewed by: brooks @ Sponsored by: DARPA, AFRL
* Minor mdoc fixbjk2014-05-301-1/+1
| | | | | Submitted by: hrs Approved by: hrs (mentor, implicit)
OpenPOWER on IntegriCloud