summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* When using an external gcc 4.8+ and not building libstdc++ then create in ↵bapt2014-10-211-0/+12
| | | | | | | | | | the objectdir a fake libstdc++.so and libstdc++.a which is a symlink on libc++ that allow g++ to satisfy its links dependencies in the least hackish way. Please note that this hacky libstds++ never get installed on the final system Reviewed by: imp
* Add support for __cxa_throw_bad_array_new_length in libcxxrtbapt2014-10-211-0/+9
| | | | | | | | | It is required for use with newer g++49 Differential Revision: https://reviews.freebsd.org/D982 Reviewed by: theraven Approved by: theraven MFC after: 3 weeks
* Allow libkvm to get the kernel va to pa delta without the need forandrew2014-10-191-10/+26
| | | | | | | | | | | | physaddr. This should allow for a kernel where PHYSADDR and KERNPHYSADDR are both undefined. For now libkvm will use the old method of reading physaddr and kernaddr to allow it to work with old kernels. This could be removed in the future when enough time has passed. Differential Revision: https://reviews.freebsd.org/D939 MFC after: 1 week
* Update the ULE scheduler + thread and kinfo structs to use int for cpuidadrian2014-10-181-0/+18
| | | | | | | | | | | rather than u_char. To try and play nice with the ABI, the u_char CPU ID values are clamped at 254. The new fields now contain the full CPU ID, or -1 for no cpu. Differential Revision: D955 Reviewed by: jhb, kib Sponsored by: Norse Corp, Inc.
* Remove duplicated code.delphij2014-10-162-22/+1
| | | | Suggested by: jmg
* Fix the type of pte_pa as when it is passed into _kvm_pa2off it is eitherandrew2014-10-161-2/+2
| | | | | a uint64_t or a pointer to an off_t. With it being a u_long can result in incorrect values being returned.
* Slightly improve grammar in EAGAIN description.gavin2014-10-151-3/+3
| | | | | | PR: 176806 Submitted by: Jeremy Chadwick MFC after: 3 days
* As pointed out by several people, r273114 was incorrect: it unconditionallydes2014-10-152-15/+25
| | | | | | | | | | | | disabled everything except TLS 1.0. Replace it with a more carefully wrought patch: - Switch the default for SSLv3 from on to off - Add environment variables to control TLS 1.1 and 1.2 - In verbose mode, report which version is used - Update the man page to reflect these changes. MFC after: 1 week
* Drop support for SSLv3.des2014-10-151-1/+1
| | | | MFC after: 1 week
* Add support for the __aeabi_c*cmp* functions. These are similar to theandrew2014-10-148-1/+337
| | | | | | | | | existing functions with the exception they use the condition flags to store the result. Differential Revision: https://reviews.freebsd.org/D872 Silence from: current@ and numerics@ MFC after: 1 week
* Promote libevent to lib/ level and fold ftp-proxy into its parent Makefile.delphij2014-10-132-0/+36
| | | | | | | | This allows us to use libevent for other application in the future. For now libevent is still INTERNALLIB and no shared library is installed. MFC after: 1 month
* Fix compiler locking diagnostic warnings.hselasky2014-10-131-46/+44
| | | | PR: 194289
* accept(2) may and can return EAGAIN, document it.delphij2014-10-101-2/+2
| | | | MFC after: 1 week
* Update dl_iterate_phdr(3) to follow r272842emaste2014-10-091-2/+2
| | | | | Relnotes: yes Sponsored by: The FreeBSD Foundation
* The value small=2**-(p+3), where p is the precision, can be determine fromkargl2014-10-094-120/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lgamma(x) = -log(x) - log(1+x) + x*(1-g) + x**2*P(x) with g = 0.57... being the Euler constant and P(x) a polynomial. Substitution of small into the RHS shows that the last 3 terms are negligible in comparison to the leading term. The choice of 3 may be conservative. The value large=2**(p+3) is detemined from Stirling's approximation lgamma(x) = x*(log(x)-1) - log(x)/2 + log(2*pi)/2 + P(1/x)/x Again, substitution of large into the RHS reveals the last 3 terms are negligible in comparison to the leading term. Move the x=+-0 special case into the |x|<small block. In the ld80 and ld128 implementaion, use fdlibm compatible comparisons involving ix, lx, and llx. This replaces several floating point comparisons (some involving fabsl()) and also fixes the special cases x=1 and x=2. While here . Remove unnecessary parentheses. . Fix/improve comments due to the above changes. . Fix nearby whitespace. * src/e_lgamma_r.c: . Sort declaration. . Remove unneeded explicit cast for type conversion. . Replace a double literal constant by an integer literal constant. * src/e_lgammaf_r.c: . Sort declaration. * ld128/e_lgammal_r.c: . Replace a long double literal constant by a double literal constant. * ld80/e_lgammal_r.c: . Remove unused '#include float.h' . Replace a long double literal constant by a double literal constant. Requested by: bde
* Fix problem on big endian systems introduced in r271579 - when we werepjd2014-10-094-40/+40
| | | | | | | returning from handling a nested nvlist we were resetting big-endian flag. Reported by: Kuleshov Aleksey @ yandex.ru Tested by: Kuleshov Aleksey @ yandex.ru
* Change the hardcoded default back from SHA512 to DES.des2014-10-091-7/+10
| | | | | PR: 192277 MFC after: 3 days
* 1) Fix the case we have less arguments for format string than we expected.ache2014-10-071-4/+3
| | | | | | | 2) Return error on unsupported format specs. (both according to POSIX) PR: 93197
* Back out timegm error check from r272562.ache2014-10-071-2/+0
| | | | | | | POSIX treats negative time_t as undefined (i.e. may be valid too, depends on system's policy we don't have) and we don't set EOVERFLOW in mktime/timegm as POSIX requires to surely distinguish -1 return as valid negative time from -1 as error return.
* Add MLINK for explicit_bzero(3) and bump .Dd date.delphij2014-10-072-1/+2
| | | | MFC after: 2 weeks
* Add explicit_bzero(3) and its kernel counterpart.delphij2014-10-074-2/+45
| | | | | Obtained from: OpenBSD MFC after: 2 weeks
* Add netmap support to libpcap. Tcpdump and other native pcap application can nowluigi2014-10-063-0/+287
| | | | | | | | | | | | | | run directly on netmap ports using netmap:foo or valeXX:YY device names. Modifications to existing code are small and trivial, the netmap-specific code is all in a new file. Please be aware that in netmap mode the physical interface is disconnected from the host stack, so libpcap will steal the traffic not just make a copy. For the full version of the code (including linux and autotools support) see https://code.google.com/p/netmap-libpcap/ MFC after: 3 days
* 1) For %Z format, understand "UTC" name too.ache2014-10-051-1/+5
| | | | | 2) Return NULL if timegm() fails, because it means we can convert what we have in GMT to local time needed.
* Minor doc format fix.pfg2014-10-041-1/+2
| | | | Submitted by: Yonghyeon PYUN
* Remove an incorrect and useless debug print.markj2014-10-041-3/+1
| | | | X-MFC-With: r272488
* Hook up support for userland CTF support in DTrace. This required somemarkj2014-10-035-14/+67
| | | | | | | | | | | | | | | | | | modifications to libproc to support fetching the CTF info for a given file. With this change, dtrace(1) is able to resolve type info for function and USDT probe arguments, and function return values. In particular, the args[n] syntax should now work for referencing arguments of userland probes, provided that the requisite CTF info is available. The uctf tests pass if the test programs are compiled with CTF info. The current infrastructure around the DTrace test suite doesn't support this yet. Differential Revision: https://reviews.freebsd.org/D891 MFC after: 1 month Relnotes: yes Sponsored by: EMC / Isilon Storage Division
* Remove whitespace and 2 blank lines.kargl2014-10-021-14/+12
|
* strptime(3): Update manpage for %U and %W.pfg2014-10-021-10/+6
| | | | | | | %U and %W were implemented as part of r272273 so take them out of the BUGS section and mention them in the SYNOPSIS. MFC after: 1 month
* strptime: %s format fix.pfg2014-10-021-1/+4
| | | | | | | | | | Almost never needed in real life because %s is tends to be only one format spec. 1) Return code of gmtime_r() is checked. 2) All flags are set. Submitted by: ache MFC after: 3 weeks
* strptime: fix bug introduced in r272273.pfg2014-10-011-1/+2
| | | | | | Reported by: portmgr (antoine) Fix by: Andrey Chernov, David Carlier PR: 137307 (follow up)
* Clean up detection of hard-float ABIs. As with big-endian in r272368 weandrew2014-10-013-4/+4
| | | | can check against arm*hf*.
* Ensure that every ENTRY(foo) has a matching END(foo).bapt2014-10-0121-0/+27
| | | | | | | It allows to build with newer binutils Differential Revision: https://reviews.freebsd.org/D877 Reviewed by: jhibbits
* Fix the TARGET_ABI value clang uses. It shpuld be gnueabi on all ARMandrew2014-10-011-3/+3
| | | | soft-float architectures, and gnueabihf for hard-float.
* Remove MK_ARM_EABI, the armeb issues have been fixed. The code to supportandrew2014-10-017-35/+4
| | | | | | | | | | | | the oabi is still in the tree, but it is expected this will be removed as developers work on surrounding code. With this commit the ARM EABI is the only supported supported ABI by FreeBSD on ARMa 32-bit processors. X-MFC after: never Relnotes: yes Differential Revision: https://reviews.freebsd.org/D876
* Consistently cast tty and user to const char * in printf()-like contexts.des2014-10-011-3/+4
|
* Document [EPERM] for UNIX sockets.bdrewery2014-09-301-1/+3
| | | | MFC after: 2 weeks
* Hopefully fix build breakage with gcc passing void * instead of char *bz2014-09-291-1/+2
| | | | | | | | to "%s" format string after r272280. PR: 83099 193927 MFC after: 3 days X-MFC with: r272280
* Instead of failing when neither PAM_TTY nor PAM_RHOST are available, calldes2014-09-291-2/+4
| | | | | | | | | | login_access() with "**unknown**" as the second argument. This will allow "ALL" rules to match. Reported by: Tim Daneliuk <tundra@tundraware.com> Tested by: dim@ PR: 83099 193927 MFC after: 3 days
* Add strptime(3) support for %U and %W (take 2)pfg2014-09-281-7/+119
| | | | | | | | | | | | | | | | | | | | Add support for the missing POSIX-2001 %U and %W features: the existing FreeBSD strptime code recognizes both directives and validates that the week number lies in the permitted range, but then simply discards the value. Initial support for the feature was written by Paul Green. David Carlier added the initial handling of tm_wday/tm_yday. Major credit goes to Andrey Chernov for detecting much of the brokenness, and rewriting/cleaning most of the code, making it much more robust. Tested independently with the strptime test from the GNU C library. PR: 137307 MFC after: 1 month Relnotes: yes
* Fix description of mutex acquisition.pluknet2014-09-261-2/+8
| | | | | | Reviewed by: kib X-MFC with: r272070 Sponsored by: Nginx, Inc.
* Revert r272122pfg2014-09-251-126/+5
| | | | | | | | | The patch still needs to be more robust and it broke the build on MIPS so revert it for now while all the issues are fixed. Reported by: ache, davide PR: 137307
* * Whitespace.kargl2014-09-251-3/+1
|
* Factor out some of the duplicated code in the symbol lookup functions, inmarkj2014-09-251-146/+122
| | | | | | | preparation for adding userland CTF support to DTrace. MFC after: 1 month Sponsored by: EMC / Isilon Storage Division
* Add strptime(3) support for %U and %Wpfg2014-09-251-5/+126
| | | | | | | | | | | | | | Add support for the missing POSIX-2001 %U and %W features: the existing FreeBSD strptime code recognizes both directives and validates that the week number lies in the permitted range, but then simply discards the value. Initial support for the feature was written by Paul Green with important fixes by Andrey Chernov. Additional support for handling tm_wday/tm_yday was written by David Carlier. PR: 137307 MFC after: 1 month
* Document the new nvlist_get_parent() function.pjd2014-09-251-1/+7
| | | | Submitted by: Mariusz Zaborski
* Expand the libthr(3) manpage to document knobs accepted by libthr.sokib2014-09-241-2/+215
| | | | | | | | | and explain some internal working of the library, neccessary to understand the knobs effects. Reviewed by: bjk, pluknet Sponsored by: The FreeBSD Foundation MFC after: 3 weeks
* Switch the defaults to not split the RLIMIT_STACK-sized initial threadkib2014-09-241-3/+4
| | | | | | | | stack into the stacks of the created threads. Add knob LIBPTHREAD_SPLITSTACK_MAIN to restore the older behaviour. Sponsored by: The FreeBSD Foundation MFC after: 3 weeks
* Add some ATF tests for libproc.markj2014-09-2110-201/+423
| | | | | Differential Revision: D710 Reviewed by: jmmv, ngie, rpaulo
* Don't use nvl in case of a failure.pjd2014-09-181-1/+2
| | | | | Reported by: Coverity CID: 1238922
* Fix incremental builds involving non-root users with read-only source files.will2014-09-181-1/+1
| | | | | | This is a followup commit to r271771. MFC after: 1 month
OpenPOWER on IntegriCloud