summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Fix appending -O0 to CFLAGSngie2016-04-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The previous method would completely nerf CFLAGS once bsd.progs.mk had recursed into the per-PROG logic and make the CFLAGS for tap testcases to -O0, instead of appending to CFLAGS for all of the tap testcases. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
| * | libc: cleanup unnecessary semicolons (part 2).pfg2016-04-112-2/+2
| | | | | | | | | | | | Found with devel/coccinelle.
| * | libc: cleanup unnecessary semicolons.pfg2016-04-111-7/+7
| | | | | | | | | | | | Found with devel/coccinelle.
* | | MFHgjb2016-04-125-13/+14
| | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
* | | MFHgjb2016-04-1186-183/+255
|\ \ \ | |/ / | | | | | | Sponsored by: The FreeBSD Foundation
| * | libc: replace 0 with NULL for pointers.pfg2016-04-1022-52/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | While here also cleanup some surrounding code; particularly drop some malloc() casts. Found with devel/coccinelle. Reviewed by: bde (previous version - all new bugs are mine)
| * | USB: replace 0 with NULL for pointers.pfg2016-04-093-6/+6
| | | | | | | | | | | | | | | | | | Found with devel/coccinelle. Reviewed by: hselasky
| * | libedit: replace 0 with NULL for pointers.pfg2016-04-092-4/+4
| | | | | | | | | | | | | | | | | | Found with devel/coccinelle. Reviewed by: Christos Zoulas
| * | libpam: replace 0 with NULL for pointers.pfg2016-04-092-3/+3
| | | | | | | | | | | | | | | | | | Found with devel/coccinelle. Reviewed by: des
| * | libfetch: replace 0 with NULL for pointers.pfg2016-04-091-1/+1
| | | | | | | | | | | | | | | | | | Found with devel/coccinelle. Reviewed by: des
| * | Use __FBSDID() for .c files from lib/libthr/thread.kib2016-04-0852-112/+158
| | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | Use ANSI C function definitions, fix spelling in a comment.kib2016-04-083-4/+5
| | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | Assert that the lock objects put into the off-page, fit into the page.kib2016-04-085-0/+15
| | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | Follow-up r295924: Only sync hash-based db files open for writing when closing.bdrewery2016-04-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a major performance regression when reading db files such as the pw database during a 'pkg install'. MFC after: 1 week Tested by: bapt Reviewed by: bapt Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D5868
| * | Revert a change that sneeked with 297619andrew2016-04-061-3/+1
| | |
| * | Disable support for compat syscalls on arm64. These symbols were neverandrew2016-04-065-1/+15
| | | | | | | | | | | | | | | | | | | | | shipped since arm64 exists only on 11+. Submitted by: brooks Reviewed by: emaste, imp
* | | MFHgjb2016-04-0455-217/+499
|\ \ \ | |/ / | | | | | | Sponsored by: The FreeBSD Foundation
| * | SJIS encoding don't have single byte characters >= 224ache2016-04-041-1/+1
| | | | | | | | | | | | MFC after: 1 week
| * | Remove unused variable. It was write-only before r297139.kib2016-04-042-2/+0
| | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week
| * | EUC-type encodings don't have single byte characters >= 128ache2016-04-041-3/+3
| | | | | | | | | | | | | | | | | | This change should not be MFCed until new collate will be MFCed first, because our old EUC tables have some hacks for missing codesets.
| * | Document KTRFAC_FAULT and KTRFAC_FAULTEND.brooks2016-03-311-1/+3
| | | | | | | | | | | | | | | | | | Obtained from: CheriBSD (9d70f563f1b033e6a9b51eaf3b145a8cbbc6617c) MFC after: 1 week Sponsored by: DARPA, AFRL
| * | WITHOUT_TOOLCHAIN: Skip building of h_raw.bdrewery2016-03-311-1/+1
| | | | | | | | | | | | | | | | | | | | | -fsanitize does not seem to work when a --sysroot is specified and there is no <sysroot>/usr/lib/clang/3.8.0/lib/freebsd/libclang_rt.ubsan_standalone-*.a. Sponsored by: EMC / Isilon Storage Division
| * | 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
OpenPOWER on IntegriCloud