summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* clock_gettime(2),gettimeofday(2): Remove [EFAULT] error.jilles2015-12-202-8/+2
| | | | | | | | | | | Depending on system configuration and parameters, clock_gettime() and gettimeofday() may not be system calls. If so, passing an invalid pointer will cause a signal and not an [EFAULT] error. From a standards perspective, this is OK since passing an invalid pointer is undefined behaviour. MFC after: 1 week
* Fix lockf(3) cancellation behaviour.kib2015-12-201-3/+8
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Integrate the remaining tools/regression/lib/msun testcases into thengie2015-12-208-1/+1978
| | | | | | | | FreeBSD test suite under lib/msun/tests MFC after: 3 weeks X-MFC with: r292328 Sponsored by: EMC / Isilon Storage Division
* Create libstand version of uuid_from_string and uuid_to_string. Theimp2015-12-193-1/+244
| | | | | | | | | | | normal libc versions of these functions use asprintf and sscanf, both of which aren't available in the libstand world. It's easier to rewrite these than to try to claw those functions into libstand. Also include uuid_create_nil, since it's safe to include. These were written from scratch, except for bits of comments that I got from the libc version, which are acknowledged in the source. Differential Revision: https://reviews.freebsd.org/D4540
* Use _map_v4v6_address().ume2015-12-181-4/+3
| | | | | Suggested by: hrs MFC after: 1 week
* Add AI_V4MAPPED and AI_ALL support for getaddrinfo(3).ume2015-12-182-28/+174
| | | | | PR: 198092 MFC after: 1 week
* Add au_notify.2 and MLINKs (added in OpenBSM 1.2 alpha 4).brueffer2015-12-181-0/+4
| | | | MFC after: 2 weeks
* pxeboot: make the tftp loader use the option root-path directivebapt2015-12-161-3/+17
| | | | | | | | | | | | | | | | | | | | pxeboot in tftp loader mode (when built with LOADER_TFTP_SUPPORT) now prefix all the path to open with the path obtained via the option 'root-path' directive. This allows to be able to use the traditional content /boot out of box. Meaning it now works pretty much like all other loaders. It simplifies hosting hosting multiple version of FreeBSD on a tftp server. As a consequence, pxeboot does not look anymore for a pxeboot.4th (which was never provided) Note: that pxeboot in tftp loader mode is not built by default. Reviewed by: rpokala Relnotes: yes Sponsored by: Gandi.net Differential Revision: https://reviews.freebsd.org/D4590
* As a followup to r292330, standardize on size_t and add a few comments.des2015-12-161-2/+5
|
* Reset bufpos to 0 immediately after refilling the buffer. Otherwise, wedes2015-12-161-3/+2
| | | | | | | | | | risk leaving the connection in an indeterminate state if the server fails to send a chunk delimiter. Depending on the application and on the sizes of the preceding chunks, the result can be anything from missing data to a segfault. With this patch, it will be reported as a protocol error. PR: 204771 MFC after: 1 week
* Integrate a number of testcases from tools/regression/lib/msunngie2015-12-1615-1/+3427
| | | | | | | | | | | | | | into the FreeBSD test suite There's no functional change with these testcases; they're purposely being left in TAP format for the time being Other testcases which crash on amd64/i386 as-is have not been integrated yet (they need to be retested on a later version of CURRENT, as I haven't used i386 in some time) MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* Iterate down lib/libc/tests/nss...ngie2015-12-161-0/+1
| | | | | | MFC after: 1 week X-MFC with: r292323 Sponsored by: EMC / Isilon Storage Division
* Integrate tools/regression/lib/libc/nss into the FreeBSD test suite asngie2015-12-1610-0/+5399
| | | | | | | | | | | | | | | | | lib/libc/tests/nss - Convert the testcases to ATF - Do some style(9) cleanups: -- Sort headers -- Apply indentation fixes -- Remove superfluous parentheses - Explicitly print out debug printfs for use with `kyua {debug,report}`; for items that were overly noisy, they've been put behind #ifdef DEBUG conditionals - Fix some format strings MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Add Makefile accidentally missed in r292317ngie2015-12-161-0/+15
| | | | | | MFC after: 1 week X-MFC with: r292317 Sponsored by: EMC / Isilon Storage Division
* Integrate tools/regression/lib/libc/resolv into the FreeBSD test suite asngie2015-12-163-0/+368
| | | | | | | | | lib/libc/tests/resolv Convert the testcases to ATF MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Remove sys/types.h due to STANDARDS and unistd.h also includes sys/types.h.kevlo2015-12-155-10/+5
|
* Remove sys/types.h due to STANDARDS and unistd.h also includes sys/types.h.kevlo2015-12-152-4/+2
| | | | Reviewed by: bde
* Minor spelling, mdoc and style cleanup.brueffer2015-12-151-7/+8
|
* Allow users override `DEBUG` on the command line via DEBUG_FLAGS="-DDEBUG" withngie2015-12-155-5/+15
| | | | | | | | lib/libc/resolv by conditionalizing its definition MFC after: 3 days Reviewed by: ume, vangyzen Differential Revision: https://reviews.freebsd.org/D4519
* Start on a new library (libsysdecode) that provides routines for decodingjhb2015-12-157-2/+348
| | | | | | | | | | | | | | | | | system call information such as system call arguments. Initially this will consist of pulling duplicated code out of truss and kdump though it may prove useful for other utilities in the future. This commit moves the shared utrace(2) record parser out of kdump into the library and updates kdump and truss to use it. One difference from the previous version is that the library version treats unknown events that start with the "RTLD" signature as unknown events. This simplifies the interface and allows the consumer to decide how to handle all non-recognized events. Instead, this function only generates a string description for known malloc() and RTLD records. Reviewed by: bdrewery Differential Revision: https://reviews.freebsd.org/D4537
* Add strlcat() and strlcpy() to libstand.ian2015-12-141-2/+2
|
* resolver: preserve binary compatibility; reduce header pollutionvangyzen2015-12-143-20/+29
| | | | | | | | | | | | | | In r289315, I added new fields to res_state. This broke binary backward compatibility. It also broke some ports (and possibly other code) by requiring the definition of time_t and struct timespec. Fix these problems by moving the new fields into __res_state_ext. Suggested by: ume Reviewed by: ume MFC after: 3 days Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D4472
* Add -static to CFLAGS to unbreak the tests by using a libc.a withngie2015-12-131-1/+1
| | | | | | | | | the xlocale private symbols exposed which aren't exposed publicly via the DSO PR: 191354 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* exec(3): Fix COMPATIBILITY section: default path does not contain cwd.jilles2015-12-121-2/+2
| | | | MFC after: 1 week
* RFC 3493 requires ignoring the loopback address for A_ADDRCONFIG.ume2015-12-121-1/+1
| | | | | | | | | Since it breaks certain jail setup, we ignore just 127.0.0.1 instead of whole loopback address range. PR: 192014 Reviewed by: hrs MFC after: 1 week
* Start support for the RISC-V 64-bit architecture developed by UC Berkeley.br2015-12-118-0/+477
| | | | | | | | | | | | | | | RISC-V is a new ISA designed to support computer research and education, and is now become a standard open architecture for industry implementations. This is a minimal set of changes required to run 'make kernel-toolchain' using external (GNU) toolchain. The FreeBSD/RISC-V project home: https://wiki.freebsd.org/riscv. Reviewed by: andrew, bdrewery, emaste, imp Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D4445
* The calls to RES_SET_H_ERRNO() macro on error paths wind upume2015-12-101-1/+2
| | | | | | | | dereferencing an uninitialized res. PR: 202142 Submitted by: Sean Boudreau MFC after: 1 week
* RPC: populate local address for rendezvous transporter.stas2015-12-101-2/+16
| | | | | | | | | | | When accepting a connection on underlying tcp socket rpc vc transporter fails to populate local address. This change rectifies this problem by modifying rendezvous_request() to fill out the xptr structure member with appropriate information. Submitted by: Alex Burlyga <alex.burlyga.ietf@gmail.com> MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D4206
* Remove NO_WERROR, after fix from r292023.rodrigc2015-12-091-1/+0
|
* Merge from OpenBSD:rodrigc2015-12-091-2/+2
| | | | | | | | revision 1.13 date: 2015/12/09 11:54:12; author: tb; state: Exp; lines: +2 -2 Add a cast to silence a compiler warning by clang on FreeBSD. From Craig Rodrigues. ok tedu@
* Merge from OpenBSD:rodrigc2015-12-091-6/+4
| | | | | | | | revision 1.12 date: 2015/12/05 13:06:52; author: claudio; state: Exp; lines: +4 -6 Do not loop on EAGAIN in imsg_read(). Better to return the error to the caller and let him do another poll loop. This fixes spinning relayd processes seen on busy TLS relays. OK benno@ henning@
* Merge from OpenBSD:rodrigc2015-12-091-3/+2
| | | | | | revision 1.11 date: 2015/11/27 01:57:59; author: mmcc; state: Exp; lines: +2 -3 Remove three NULL-checks before free(). ok millert@
* Use stdint.h instead of inttypes.h as the latter pollutes namespace morengie2015-12-092-4/+4
| | | | | | | MFC after: 3 days X-MFC with: r292004 Submitted by: bde Sponsored by: EMC / Isilon Storage Division
* Fix compilation when -DDEBUG is defined by adding inttypes.h #includengie2015-12-082-0/+6
| | | | | | | | | | for intmax_t MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D4434 Reported by: cppcheck Reviewed by: jhb Sponsored by: EMC / Isilon Storage Division
* Remove historical GNUC testemaste2015-12-088-46/+0
| | | | | | | | | The requirement is for a GCC-compatible compiler and not necessarily GCC itself. However, we currently expect any compiler used for building the whole of FreeBSD to be GCC-compatible and many things will break if not; there's no longer a need to have an explicit test for this in csu. Sponsored by: The FreeBSD Foundation
* Delete bogus freeing of uninitialized datangie2015-12-081-1/+0
| | | | | | MFC after: 3 days Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division
* Add missing va_ends for corresponding va_starts to clean up variable argumentsngie2015-12-082-0/+4
| | | | | | | | initialized in _test_fmt(..) MFC after: 3 days Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division
* Unbreak compiling getnetgrent.c with -DDEBUG after r236402 by adding angie2015-12-081-0/+1
| | | | | | | missing "}" MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
* DIRDEPS_BUILD: Update dependencies.bdrewery2015-12-073-2/+1
| | | | Sponsored by: EMC / Isilon Storage Division
* Replace unneeded manual dependency on header by adding it to SRCS.bdrewery2015-12-071-2/+1
| | | | | | | | | | bsd.lib.mk and bsd.prog.mk already depend all objs on headers in SRCS if there is not yet a depend file. The headers in SRCS are never built or installed. After 'make depend' the header was already added as a proper dependency on the objects where needed. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Add support for usermode (vdso-like) gettimeofday(2) andkib2015-12-074-2/+155
| | | | | | | | | | | | | | | | | | clock_gettime(2) on ARMv7 and ARMv8 systems which have architectural generic timer hardware. It is similar how the RDTSC timer is used in userspace on x86. Fix a permission problem where generic timer access from EL0 (or userspace on v7) was not properly initialized on APs. For ARMv7, mark the stack non-executable. The shared page is added for all arms (including ARMv8 64bit), and the signal trampoline code is moved to the page. Reviewed by: andrew Discussed with: emaste, mmel Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D4209
* Fix regression in r291738: This really wants -lssp.bdrewery2015-12-051-1/+1
| | | | | | | The normal LIBADD is ssp_nonshared. This also had a DPADD on LIBSSP which does not actually exist, it is blank. Sponsored by: EMC / Isilon Storage Division
* Initialize errno to 0 in the nul testcase before testing itngie2015-12-051-0/+1
| | | | | | | For some odd reason stable/10 requires this, otherwise it always fails the errno == 0 check on line 196. Sponsored by: EMC / Isilon Storage Division
* Fix -Wformat issues and minor whitespace issues in surrounding areasngie2015-12-051-29/+25
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* split.ih:ngie2015-12-053-4/+6
| | | | | | | | | - Create automatically generated include header for split.c main.c: - Use function definitions from debug.ih and split.ih instead of externs Sponsored by: EMC / Isilon Storage Division
* Use `==` instead of `=` in the function comment above split(..) so mkh -pngie2015-12-051-1/+1
| | | | | | | exposes split(..). MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Use ANSI C function prototypes/definitions instead of K&R style onesngie2015-12-051-16/+11
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Add missing headers and sort #includes per style(9)ngie2015-12-051-3/+5
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* - Use ANSI C function prototypes/definitions instead of K&R style onesngie2015-12-051-28/+12
| | | | | | | - Add a missing return type for main(..) MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Fix -Wformat warnings by using the correct format qualifiersngie2015-12-051-1/+1
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
OpenPOWER on IntegriCloud