summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * | WITHOUT_TOOLCHAIN: Fix build of rtld.bdrewery2016-03-311-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MK_TOOLCHAIN==no disables building and installing of pic archives. c_pic.a is still needed for rtld though so force it to build in lib/libc and link directly to the objdir version of it for rtld. Somehow this has been broken since r148725. Sponsored by: EMC / Isilon Storage Division
| * | libc: stop exporting cerroremaste2016-03-305-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | i386 stopped exporting .cerror in r240152, and likewise for amd64 in r240178. It is not used by other libraries on any platform, so apply the same change to the remaining architectures. Reviewed by: jhibbits, jilles Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5774
| * | freopen(3): prevent uninitialized errno.pfg2016-03-301-1/+0
| | | | | | | | | | | | | | | | | | | | | Revert completley r297408 (and r297407): this ends up touching errno, which we are not allowed to do. Pointed out by: ache, bde
| * | freopen(3): prevent uninitialized errno.pfg2016-03-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Revert r297407 and redo it cleanly. Pointed out by: Jukka A. Ukkonen CID: 1018720 MFC after: 1 week
| * | freopen(3): prevent uninitialized errno.pfg2016-03-301-1/+2
| | | | | | | | | | | | | | | | | | | | | The case doesn't look very likely but clean the possibility nevertheless CID: 1018720 MFC after: 1 week
| * | Fix parsing of a 1GB page table entry.jhb2016-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Use 'pdpe' to extract the PA of the 1GB page instead of 'pde' (which was a copy and paste bug from the 2MB page case further down). CID: 1341467 Reported by: pfg
| * | Fix bunch of .Xrs.trasz2016-03-283-4/+3
| | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * | Compile libcxxrt as C++11, since it is only really used in combinationdim2016-03-271-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with libc++, which is also C++11. Also change one _Static_assert (which is really C11) back into static_assert, like upstream. This should help when compiling libcxxrt with newer versions of gcc, which refuse to recognize any form of static assertions, if not compiling for C++11 or higher. While here, add -nostdinc++ to CFLAGS, to prevent picking up any C++ headers outside the source tree.
| * | Implement (ACFLAGS|CFLAGS|CXXFLAGS).SRC globally.bdrewery2016-03-266-7/+0
| | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division
| * | CCACHE_BUILD: Don't use ccache when generating some files with CC -E.bdrewery2016-03-241-3/+3
| | | | | | | | | | | | | | | | | | | | | At least for ncurses this fixes a build error due to it trying to run 'ccache --version' to work around a gcc 5 bug using the fix in r287205. Sponsored by: EMC / Isilon Storage Division
| * | Don't reset CC away from full-pathed gcc.bdrewery2016-03-241-0/+3
| | | | | | | | | | | | | | | | | | This was breaking the build when using CROSS_TOOLCHAIN=powerpc64-gcc Sponsored by: EMC / Isilon Storage Division
| * | Replace the CloudABI system call table by a machine generated version.ed2016-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The type definitions and constants that were used by COMPAT_CLOUDABI64 are a literal copy of some headers stored inside of CloudABI's C library, cloudlibc. What is annoying is that we can't make use of cloudlibc's system call list, as the format is completely different and doesn't provide enough information. It had to be synced in manually. We recently decided to solve this (and some other problems) by moving the ABI definitions into a separate file: https://github.com/NuxiNL/cloudabi/blob/master/cloudabi.txt This file is processed by a pile of Python scripts to generate the header files like before, documentation (markdown), but in our case more importantly: a FreeBSD system call table. This change discards the old files in sys/contrib/cloudabi and replaces them by the latest copies, which requires some minor changes here and there. Because cloudabi.txt also enforces consistent names of the system call arguments, we have to patch up a small number of system call implementations to use the new argument names. The new header files can also be included directly in FreeBSD kernel space without needing any includes/defines, so we can now remove cloudabi_syscalldefs.h and cloudabi64_syscalldefs.h. Patch up the sources to include the definitions directly from sys/contrib/cloudabi instead.
| * | libc: stop exporting curbrk and minbrk in the private namespaceemaste2016-03-249-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | They are not used anywhere else in the base system and are an internal implementation detail that does not need to be exposed. Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5728
| * | Correct comment.bz2016-03-221-1/+1
| | | | | | | | | | | | MFC after: 2 weeks
| * | Apparently there are some popular programs around which assume that itkib2016-03-222-2/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is safe to call pthread_mutex_init() on the same shared mutex several times. POSIX claims that the behaviour in this case is undefined. Make this working by only allowing one caller to initialize the mutex. Other callers either see already completed initialization and do nothing, or busy-loop yielding while designated initializer finishes. Also make the API requirements loose by initializing mutexes on other pthread_mutex*() calls if they see uninitialized shared mutex. Only mutexes provide the hack for now, but it could be also implemented for other process shared primitives from libthr. Reported and tested by: "Oleg V. Nauman" <oleg@opentransfer.com> Sponsored by: The FreeBSD Foundation
| * | Fully handle size_t lengths in AIO requests.jhb2016-03-212-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, update the return types of aio_return() and aio_waitcomplete() to ssize_t. POSIX requires aio_return() to return a ssize_t so that it can represent all return values from read() and write(). aio_waitcomplete() should use ssize_t for the same reason. aio_return() has used ssize_t in <aio.h> since r31620 but the manpage and system call entry were not updated. aio_waitcomplete() has always returned int. Note that this does not require new system call stubs as this is effectively only an API change in how the compiler interprets the return value. Second, allow aio_nbytes values up to IOSIZE_MAX instead of just INT_MAX. aio_read/write should now honor the same length limits as normal read/write. Third, use longs instead of ints in the aio_return() and aio_waitcomplete() system call functions so that the 64-bit size_t in the in-kernel aiocb isn't truncated to 32-bits before being copied out to userland or being returned. Finally, a simple test has been added to verify the bounds checking on the maximum read size from a file.
| * | If the dhcp server delivers an interface-mtu option, parse it and storeian2016-03-214-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | the value in a new global intf_mtu for use by the application. These changes were inspired by the patch provided by Robert Blayzor in PR 187094, and will allow loader(8) to propagate the value to the kernel along with the other nfs_diskless parms delivered via environment vars.
| * | Actually garbage collect the unused code, as mentioned in r297147, whichian2016-03-211-57/+0
| | | | | | | | | | | | this change should have been part of.
| * | Garbage collect the bswap routines from libstand. The declaration wasian2016-03-212-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wrapped in an i386 ifdef with a comment questioning their usefulness even there. It turns out they aren't referenced anywhere, but their presence prevents using sys/endian.h in libstand code. These days, sys/endian.h provides much better support for such things, using compiler builtins and inline functions (and creating connections between libstand code and header files from sys/ would not be breaking new ground).
| * | Lock pshared_lock shared around fork, to ensure that the COW snapshotkib2016-03-214-2/+22
| | | | | | | | | | | | | | | | | | | | | of the pshared hash in child is consistent and can be safely used. Reported and tested by: "Oleg V. Nauman" <oleg@opentransfer.com> Sponsored by: The FreeBSD Foundation
| * | Provide more information on failing checks in mutex_assert_is_owned()kib2016-03-211-4/+16
| | | | | | | | | | | | | | | | | | | | | and mutex_assert_not_owned(). snprintf() use in this context should be safe. Sponsored by: The FreeBSD Foundation
| * | From libthr, remove special and strange code to set up session andkib2016-03-212-22/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | control terminal, activated when running with pid 1. It is application duty to handle this, and unsuspecting init replacements which are linked with libthr would be broken by this. The pre-resolving of getpid() is restored, just in case. Reviewed by: jilles Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
| * | Implement process-shared spinlocks.kib2016-03-211-48/+59
| | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | Fix typo.kib2016-03-211-1/+1
| | | | | | | | | | | | MFC after: 3 days
| * | Update fetch.1 and fetch.3 to reflect libfetch's actual use of CA bundlesgrembo2016-03-191-10/+17
| | | | | | | | | | | | | | | | | | | | | Reviewed by: wblock Approved by: wblock MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D5558
| * | Use the right argumant namejulian2016-03-181-1/+1
| | | | | | | | | | | | | | | MFC after: 1 week Sponsored by: Panzura inc
| * | Bump libdevinfo SHLIB_MAJOR, forgotten in r297000.jhibbits2016-03-181-0/+2
| | | | | | | | | | | | Spotted by: bapt
| * | xo_config.h no longer in contrib, so -I's neededsjg2016-03-171-2/+1
| | | | | | | | | | | | | | | PR: /homes/sjg/commit-logs/freebsd/libxo/xo_config.diff Reviewed by: jkim
| * | We need libutilsjg2016-03-171-1/+7
| | | | | | | | | | | | and make it feasible to at least build the tests in situ
| * | Move generated file from contrib to build directory.phil2016-03-162-1/+248
| | | | | | | | | | | | | | | Reviewed by: obrien Approved by: sjg
| * | libc: don't build compat functions if building WITHOUT_SYMVERemaste2016-03-155-8/+20
| | | | | | | | | | | | | | | | | | | | | WITHOUT_SYMVER necessarily implies building a system without symver backwards compatability. Sponsored by: The FreeBSD Foundation
* | | MFHgjb2016-03-1412-25/+20
|\ \ \ | |/ / | | | | | | Sponsored by: The FreeBSD Foundation
| * | Use the newly minted Makefile.libcompat to implement libsoft librariesimp2016-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | for the armv6 ABI switch. This also make WITH_LIBSOFT functional on the arm platform. As a transition thing, this seems to work even without switching the ABI (we basically build the same libraries twice when MK_LIBSOFT=yes until the ABI cut over next month). MK_LIBSOFT remains default no.
| * | Fix handling of umtxp resource limit in sh(1)/ulimit(1), limits(1), addkib2016-03-123-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | login.conf(5) support. Reviewed by: jilles Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D5610
| * | Remove Symbol.map entries for old AIO system calls for FreeBSD 6 compat.jhb2016-03-121-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These entries should have never been present since they only exist for compat with FreeBSD 6.x (and older) binaries. This was missed in r296572. Technically this breaks the ABI by removing versioned symbols. However, no binaries should be linked against these symbols. No release has shipped with a header that contained a prototype for these functions. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D5615
| * | DIRDEPS_BUILD: Update dependencies.bdrewery2016-03-111-2/+0
| | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division
| * | Add missing CLEANFILES.bdrewery2016-03-111-0/+1
| | | | | | | | | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
| * | Remove bogus .ORDER.bdrewery2016-03-111-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | This is not SUBDIR_PARALLEL and if it were this .ORDER would not work since the targets are <target>_subdir_<subdir> not <subdir>. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
| * | Add to CFLAGS, rather than replacing.jhibbits2016-03-111-1/+1
| | | | | | | | | | | | This allows additional CFLAGS, as set in bsd.cpu.mk, to go through.
| * | Not ready for level 6 yet due to -Wredundant-decls.des2016-03-111-0/+1
| | |
| * | Define __bounded__ to fix the gcc build. While there, raise WARNS.des2016-03-112-2/+4
| | |
| * | Use the new bmake .dinclude feature to make these safe.bdrewery2016-03-111-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | At least FAST_DEPEND won't even run 'make depend', so the code was potentially broken with FAST_DEPEND anyhow. The .dinclude directive will ignore missing files rather than make them be fatal. Sponsored by: EMC / Isilon Storage Division
| * | Upgrade to OpenSSH 7.2p2.des2016-03-111-3/+0
| |\ \
* | \ \ MFHgjb2016-03-10128-127/+1096
|\ \ \ \ | |/ / / | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | | DIRDEPS_BUILD: Connect MK_TESTS.bdrewery2016-03-0945-0/+902
| | | | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division
| * | | Fix and connect setjmp test.bdrewery2016-03-091-0/+1
| | | | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division
| * | | Fix spelling of MAXNAMLEN.trasz2016-03-091-2/+2
| | | | | | | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * | | DIRDEPS_BUILD: Update clang dependencies after r296417.bdrewery2016-03-0879-125/+189
| | | | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division
| * | | libc/{i386,amd64}: Do not export .cerror when building WITHOUT_SYMVERemaste2016-03-082-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Further to r240152 (i386) and r240178 (amd64), hide the .cerror symbol so that it is not exported if symbol versioning is not in use. Without this change WITHOUT_SYMVER libc contains .text relocations for .cerror, as described in LLVM PR 26813 (http://llvm.org/pr26813). This is a no-op for the regular build as the symbol version script already controls .cerror visibility. PR: 207712 Submitted by: Rafael EspĂ­ndola Reviewed by: jilles, kib Differential Revision: https://reviews.freebsd.org/D5571
* | | | MFHgjb2016-03-0745-685/+725
|\ \ \ \ | |/ / / | | | | | | | | Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud