summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Add fabs() to arm64 libcemaste2015-05-143-1/+36
| | | | | Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2532
* Remove redundant csu subdir logicemaste2015-05-121-11/+1
| | | | | | | | | The appropriate subdirectories are handled by lib/csu/Makefile. There's no need to duplicate this logic in Makefile.inc1 and lib/Makefile. Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2523
* Teach bits of libc about Thumb. This adds the if-then instructions neededandrew2015-05-125-4/+48
| | | | | | | | | to handle the ARM conditional execution. While here fix a bug found by this in the hard-float code, cc is the opposite of cs. The former is used for 'less than' in floating-point code and is executed when the C (carry) bit is clear, the latter is used when greater than, equal, or unordered, and is executed when the C bit is set.
* Revert r282775 for now. The added dependency would cause problems fordelphij2015-05-123-5/+12
| | | | | | e.g. ports-mgmt/pkg and we would like to do an exp-build. Requested by: bdrewery
* Use the GOT_* macros to help simplify the code, these work with both picandrew2015-05-112-26/+9
| | | | and non-pic code, and to build for Thumb.
* Revert r281372, it's no longer needed after r282726 (fix for PR 199119) as thedelphij2015-05-113-12/+5
| | | | symbol conflict between libmd and libcrypto have been solved.
* Unbreak MIPS build following rev. 282726thomas2015-05-118-6/+49
| | | | | | | | Introduce further adjustments to the renaming of libmd symbols: make sure that we do not generate dangling weak aliases, as this causes build failures on MIPS. Tested by: sbruno
* Unbreak build following rev. 282726thomas2015-05-106-0/+130
| | | | | | | | | | | | | | (Makefile.inc1): add dependency of xinstall on libmd to avoid failure of parallel bootstrap. (lib/libmd/*.h): do not redefine symbols if already defined as macros (libcrypt uses the same sources internally, redefining symbols with a prefix of its own). Fixes build failures caused by previous change to libmd. Reported by: ian Pointy hat to: thomas
* recv(),send(): Directly call interposing entry instead of going through PLT.jilles2015-05-102-2/+10
| | | | | | recv() and send()'s calls to recvfrom() and sendto() are much like waitpid()'s call to wait4(), and likewise need not allow PLT interposing on the called function.
* Ensure libmd symbols do not clash with libcryptothomas2015-05-1014-1/+195
| | | | | | | | | | | | | Add a prefix to all symbols in libmd to avoid incompatibilites with same-named, but not binary compatible, symbols from libcrypto. Also introduce Weak aliases to avoid the need to rebuild dependent binaries and a major version bump. PR: 199119 Differential Revision: D2216 Reviewed by: roberto, delphij MFC after: 2 weeks
* Tweak the comment here some more. In particular, the previous openingjhb2015-05-061-7/+7
| | | | | | sentence was a bit confusing. Noted by: kib
* Deprecate the 3-way return values from vm_gla2gpa() and vm_copy_setup().neel2015-05-062-26/+19
| | | | | | | | | | | | | | | | | | Prior to this change both functions returned 0 for success, -1 for failure and +1 to indicate that an exception was injected into the guest. The numerical value of ERESTART also happens to be -1 so when these functions returned -1 it had to be translated to a positive errno value to prevent the VM_RUN ioctl from being inadvertently restarted. This made it easy to introduce bugs when writing emulation code. Fix this by adding an 'int *guest_fault' parameter and setting it to '1' if an exception was delivered to the guest. The return value is 0 or EFAULT so no additional translation is needed. Reviewed by: tychon MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D2428
* Remove the note about seekdir() removing telldir() cookies. That wasjhb2015-05-061-7/+1
| | | | | | removed back in r269204. MFC after: 3 days
* A few style fixes and expand the comment a bit on what _fixtelldir() isjhb2015-05-061-6/+10
| | | | doing.
* Tweak seekdir, telldir and readdir so that when htere are deletes going on,julian2015-05-055-1/+65
| | | | | | | | | | | as seek to teh last location saved will still work. This is needed for Samba to be able to correctly handle delete requests from windows. This does not completely fix seekdir when deletes are present but fixes the worst of the problems. The real solution must involve some changes to the API for eh VFS and getdirentries(2). Obtained from: Panzura inc MFC after: 1 week
* Fix major copy/paste and other style errors.pluknet2015-05-051-5/+10
|
* Rework PRIVATELIBbapt2015-05-042-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Now when a lib is marked as PRIVATELIB it is renamed into libprivate$foo instead of being installed in /usr/lib/private and playing with rpath. Also allow to install headers for PRIVATELIBS in that case the headers will be installed in /usr/include/private/$foo Keep the headers under a private namespace to prevent third party build system to easily find them to ensure they are only used on purpose. This allows for non base applications to statically link against a library in base which is linked to a privatelib Treating PRIVATELIBS as regular libraries allows to push them into our current compatX packages if needed. While here finish promotion of libevent as PRIVATELIB Install header for bsdstat and libucl Differential Revision: https://reviews.freebsd.org/D2365 Reviewed by: brooks, des Discussed with: imp
* Various updates to the ftruncate(2) documentation:jhb2015-05-041-7/+19
| | | | | | | | | | | | | | | | | - Note that ftruncate(2) can operate on shared memory objects and cross reference shm_open(2). - Note that ftruncate(2) does not change the file position pointer (aka seek pointer) of the file descriptor. - ftruncate(2) will fail with EINVAL for all sorts of other fd types than just sockets, so instead note that it fails for all but regular files and shared memory objects. - Note that ftruncate(2) also appeared in 4.2BSD along with truncate(2). (Or at least the manpage for both appeared in 4.2, I did not check the kernel code itself to see if either predated 4.2.) PR: 199472 (2) Submitted by: andrew@ugh.net.au (2) MFC after: 1 week
* Partially revert r255486, the first argument to socketpair() is a socketjhb2015-05-041-4/+4
| | | | | | | | | domain, not a file descriptor. Use 'domain' instead of the original 'd' for this argument to match socket(2). PR: 199491 Reported by: sp55aa@qq.com MFC after: 1 week
* Add test case for unpack with diffrent flags.oshogbo2015-05-021-0/+35
| | | | Approved by: pjd (mentor)
* Introduce the NV_FLAG_NO_UNIQUE flag. When set, it allows to storeoshogbo2015-05-021-0/+2
| | | | | | | | | | | | multiple values using the same key in a nvlist. Approved by: pjd (mentor) Obtained from: WHEEL Systems (http://www.wheelsystems.com) Update man page. Reviewed by: AllanJude Approved by: pjd (mentor)
* Approved, oprócz użycie RESTORE_ERRNO() do ustawiania errno.oshogbo2015-05-0213-39/+87
| | | | | | | | | | | | | | | | | Change the nvlist_recv() function to take additional argument that specifies flags expected on the received nvlist. Receiving a nvlist with different set of flags than the ones we expect might lead to undefined behaviour, which might be potentially dangerous. Update consumers of this and related functions and update the tests. Approved by: pjd (mentor) Update man page for nvlist_unpack, nvlist_recv, nvlist_xfer, cap_recv_nvlist and cap_xfer_nvlist. Reviewed by: AllanJude Approved by: pjd (mentor)
* fork(2): Add a note to the effect that kqueue descriptors, unlike othermarkj2015-05-021-2/+5
| | | | | | | descriptor types, are not inherited from the parent process. Reported by: kmacy MFC after: 1 week
* Apply the copyright the the same owners as the original malloc(3) where most ofbapt2015-05-011-2/+3
| | | | | | | | the text here comes from Reported by: many Discussed with: miod@OpenBSD.org Pointyhat to: bapt
* libc now has reallocarraybapt2015-05-011-2/+0
|
* Import reallocarray(3) from OpenBSDbapt2015-05-014-2/+182
| | | | | | | | | Add a manpage for it, assign the copyright to the OpenBSD project on it since it is mostly copy/paste from OpenBSD manpage. style(9) fixes Differential Revision: https://reviews.freebsd.org/D2420 Reviewed by: kib
* Add nvlist_flags() function, which returns nvlist's public flags.oshogbo2015-05-012-1/+11
| | | | Approved by: pjd (mentor)
* Sort MLINKS alphabetically.oshogbo2015-05-011-46/+46
| | | | Approved by: pjd (mentor)
* Unreak DNS usage through libcapsicum, which broke, e.g., ping in r282252bz2015-05-011-1/+1
| | | | | | with what looks like a copy and paste error. Sponsored by: DARPA/AFRL
* Remove the nvlist_.*[fv] functions.oshogbo2015-04-291-82/+0
| | | | | | | | | | | | | | | | Those functions are problematic, because there is no way to report memory allocation problems without complicating the API, so we can either abort or potentially return invalid results. None of which is acceptable. In most cases the caller knows the size of the name, so he can allocate buffer on the stack and use snprintf(3) to prepare the name. After some discussion the conclusion is to removed those functions, which also simplifies the API. Discussed with: pjd, rstone Approved by: pjd (mentor)
* Remove the use of nvlist_.*[fv] functions from tests.oshogbo2015-04-292-48/+24
| | | | Approved by: pjd (mentor)
* Remove the use of nvlist_.*[vf] functions from libcapsicum and replaceoshogbo2015-04-293-20/+59
| | | | | | them with snprintf(3). Assert the results of snprintf(3). Approved by: pjd (mentor)
* The presence/absence of CPU features should be tested withimp2015-04-281-1/+3
| | | | | | | MACHINE_CPUARCH or MACHINE_ARCH, not MACHINE. The latter is for kernel only things. Also, I think this should be unconditional since all our architectures have long double support, but I don't have time to test that thoroughly so just add a comment to that effect.
* Remove per-architecture checks for enabling HAVE_FENV_Hngie2015-04-271-4/+1
| | | | | | | | | | | | | | The conditional came from NetBSD, where only select architectures have this header/support All architectures on FreeBSD have the necessary support though, so the conditional's completely unnecessary make tinderbox done on all architectures (including arm64, where the issue occurred before) this time X-MFC with: r282057, r282092 MFC after: 6 days
* Upgrade libxo to 0.3.2.marcel2015-04-271-0/+2
| | | | | | | | Obtained from: https://github.com/Juniper/libxo/tree/0.3.2 Requested by: Phil Shafer <phil@juniper.net> This import incorporates local change 279966. Local change 276260 has been merged-in.
* Correct the spelling of MACHINE_CPUARCH, MACHINE_CPU is not set on arm64.andrew2015-04-271-1/+1
|
* Disable the tests that use makecontext on arm64, it still needs to beandrew2015-04-272-0/+4
| | | | written.
* Build/install libc, librt, libthr, and msun NetBSD test suites on allngie2015-04-2712-52/+12
| | | | | | architectures MFC after: 1 week
* mdoc: fix function declarationbapt2015-04-261-2/+2
|
* mdoc: remove empty linebapt2015-04-261-1/+0
|
* Remove end of line whitespacebapt2015-04-261-3/+3
|
* mdoc: remove end of line whitespacebapt2015-04-261-1/+1
|
* mdoc: rendering fixesbapt2015-04-262-4/+8
|
* Use mdoc(7) macros to handle parenthesisbapt2015-04-261-1/+1
|
* mdoc: fix functions declarationsbapt2015-04-261-1/+1
|
* Escape "Ed"bapt2015-04-2611-11/+11
|
* Escape "Ed"bapt2015-04-261-1/+1
|
* Do not modify localesbapt2015-04-261-1/+1
|
* libarchive: Allow setting nanosecond timestamps.jilles2015-04-251-0/+7
|
* Assuming a system has /bin/csh on it is a bad idea (especially it beingngie2015-04-251-0/+1
| | | | | | optional on FreeBSD). Look for /bin/cat instead MFC after: 3 days
OpenPOWER on IntegriCloud