aboutsummaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* strptime: fix bug introduced in r272273.Pedro F. Giffuni2014-10-011-1/+2
| | | | | | | | | Reported by: portmgr (antoine) Fix by: Andrey Chernov, David Carlier PR: 137307 (follow up) Notes: svn path=/head/; revision=272387
* Clean up detection of hard-float ABIs. As with big-endian in r272368 weAndrew Turner2014-10-013-4/+4
| | | | | | | can check against arm*hf*. Notes: svn path=/head/; revision=272369
* Ensure that every ENTRY(foo) has a matching END(foo).Baptiste Daroussin2014-10-0121-0/+27
| | | | | | | | | | It allows to build with newer binutils Differential Revision: https://reviews.freebsd.org/D877 Reviewed by: jhibbits Notes: svn path=/head/; revision=272362
* Fix the TARGET_ABI value clang uses. It shpuld be gnueabi on all ARMAndrew Turner2014-10-011-3/+3
| | | | | | | soft-float architectures, and gnueabihf for hard-float. Notes: svn path=/head/; revision=272357
* Remove MK_ARM_EABI, the armeb issues have been fixed. The code to supportAndrew Turner2014-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 Notes: svn path=/head/; revision=272350
* Consistently cast tty and user to const char * in printf()-like contexts.Dag-Erling Smørgrav2014-10-011-3/+4
| | | | Notes: svn path=/head/; revision=272348
* Document [EPERM] for UNIX sockets.Bryan Drewery2014-09-301-1/+3
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=272291
* Hopefully fix build breakage with gcc passing void * instead of char *Bjoern A. Zeeb2014-09-291-1/+2
| | | | | | | | | | | to "%s" format string after r272280. PR: 83099 193927 MFC after: 3 days X-MFC with: r272280 Notes: svn path=/head/; revision=272281
* Instead of failing when neither PAM_TTY nor PAM_RHOST are available, callDag-Erling Smørgrav2014-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 Notes: svn path=/head/; revision=272280
* Add strptime(3) support for %U and %W (take 2)Pedro F. Giffuni2014-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 Notes: svn path=/head/; revision=272273
* Fix description of mutex acquisition.Sergey Kandaurov2014-09-261-2/+8
| | | | | | | | | Reviewed by: kib X-MFC with: r272070 Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=272153
* Revert r272122Pedro F. Giffuni2014-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 Notes: svn path=/head/; revision=272146
* * Whitespace.Steve Kargl2014-09-251-3/+1
| | | | Notes: svn path=/head/; revision=272138
* Factor out some of the duplicated code in the symbol lookup functions, inMark Johnston2014-09-251-146/+122
| | | | | | | | | | preparation for adding userland CTF support to DTrace. MFC after: 1 month Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=272125
* Add strptime(3) support for %U and %WPedro F. Giffuni2014-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 Notes: svn path=/head/; revision=272122
* Document the new nvlist_get_parent() function.Pawel Jakub Dawidek2014-09-251-1/+7
| | | | | | | Submitted by: Mariusz Zaborski Notes: svn path=/head/; revision=272102
* Expand the libthr(3) manpage to document knobs accepted by libthr.soKonstantin Belousov2014-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 Notes: svn path=/head/; revision=272070
* Switch the defaults to not split the RLIMIT_STACK-sized initial threadKonstantin Belousov2014-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 Notes: svn path=/head/; revision=272069
* Add some ATF tests for libproc.Mark Johnston2014-09-2110-201/+423
| | | | | | | | Differential Revision: D710 Reviewed by: jmmv, ngie, rpaulo Notes: svn path=/head/; revision=271937
* Don't use nvl in case of a failure.Pawel Jakub Dawidek2014-09-181-1/+2
| | | | | | | | Reported by: Coverity CID: 1238922 Notes: svn path=/head/; revision=271847
* Fix incremental builds involving non-root users with read-only source files.Will Andrews2014-09-181-1/+1
| | | | | | | | | This is a followup commit to r271771. MFC after: 1 month Notes: svn path=/head/; revision=271778
* Fix incremental builds involving non-root users with read-only source files.Will Andrews2014-09-181-2/+2
| | | | | | | | | | | | | | Makefiles should not assume that source files can be overwritten. This is the common case for Perforce source trees. This is a followup commit to r211243 in the same vein. MFC after: 1 month Sponsored by: Spectra Logic MFSpectraBSD: r1036319 on 2014/01/29, r1046711 on 2014/03/06 Notes: svn path=/head/; revision=271771
* Explicitly set MAP_PRIVATE to avoid [EINVAL] after r271635.Bryan Drewery2014-09-171-2/+2
| | | | | | | | X-MFC-With: r271635 Reviewed by: jhb Notes: svn path=/head/; revision=271723
* - Remove mention of MAP_INHERIT. It hasn't been implemented for thirteenJohn Baldwin2014-09-171-14/+1
| | | | | | | | | | | years. - Remove mention of unimplemented MAP_SWAP. There are no future plans to implement it. Submitted by: alc (2) Notes: svn path=/head/; revision=271722
* Explicitly specify MAP_SHARED when mapping the stats file descriptor.John Baldwin2014-09-171-2/+2
| | | | | | | | Reviewed by: kib MFC after: 1 week Notes: svn path=/head/; revision=271721
* For targets that have a signed zero, lgamma_r(-0, &signgamp) shouldSteve Kargl2014-09-174-4/+20
| | | | | | | | | set signgamp = -1. Submitted by: enh at google dot com (e_lgamma[f]_r.c) Notes: svn path=/head/; revision=271719
* Bump .Dd for the content change done to access(2) in r271655Enji Cooper2014-09-161-1/+1
| | | | | | | | PR: 181155 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=271656
* Validate the mode argument in access, eaccess, and faccessat for optionalEnji Cooper2014-09-161-1/+9
| | | | | | | | | | | | | | | | | | POSIX compliance and to improve compatibility with Linux and NetBSD The issue was identified with lib/libc/sys/t_access:access_inval from NetBSD Update the manpage accordingly PR: 181155 Reviewed by: jilles (code), jmmv (code), wblock (manpage), wollman (code) MFC after: 4 weeks Phabric: D678 (code), D786 (manpage) Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=271655
* * Makefile:Steve Kargl2014-09-1511-113/+837
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | . Hook e_lgammal[_r].c to the build. . Create man page links for lgammal[-r].3. * Symbol.map: . Sort lgammal to its rightful place. . Add FBSD_1.4 section for the new lgamal_r symbol. * ld128/e_lgammal_r.c: . 128-bit implementataion of lgammal_r(). * ld80/e_lgammal_r.c: . Intel 80-bit format implementation of lgammal_r(). * src/e_lgamma.c: . Expose lgammal as a weak reference to lgamma for platforms where long double is mapped to double. * src/e_lgamma_r.c: . Use integer literal constants instead of real literal constants. Let compiler(s) do the job of conversion to the appropriate type. . Expose lgammal_r as a weak reference to lgamma_r for platforms where long double is mapped to double. * src/e_lgammaf_r.c: . Fixed the Cygnus Support conversion of e_lgamma_r.c to float. This includes the generation of new polynomial and rational approximations with fewer terms. For each approximation, include a comment on an estimate of the accuracy over the relevant domain. . Use integer literal constants instead of real literal constants. Let compiler(s) do the job of conversion to the appropriate type. This allows the removal of several explicit casts of double values to float. * src/e_lgammal.c: . Wrapper for lgammal() about lgammal_r(). * src/imprecise.c: . Remove the lgamma. * src/math.h: . Add a prototype for lgammal_r(). * man/lgamma.3: . Document the new functions. Reviewed by: bde Notes: svn path=/head/; revision=271651
* document mqueuefs is required for mq_open...John-Mark Gurney2014-09-151-2/+8
| | | | Notes: svn path=/head/; revision=271650
* Add stricter checking of some mmap() arguments:John Baldwin2014-09-151-1/+24
| | | | | | | | | | | | | | | - Fail with EINVAL if an invalid protection mask is passed to mmap(). - Fail with EINVAL if an unknown flag is passed to mmap(). - Fail with EINVAL if both MAP_PRIVATE and MAP_SHARED are passed to mmap(). - Require one of either MAP_PRIVATE or MAP_SHARED for non-anonymous mappings. Reviewed by: alc, kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D698 Notes: svn path=/head/; revision=271635
* Upgrade to OpenPAM Ourouparia.Dag-Erling Smørgrav2014-09-151-0/+1
|\ | | | | | | Notes: svn path=/head/; revision=271624
| * Vendor import of OpenPAM Ourouparia.vendor/openpam/OUROUPARIADag-Erling Smørgrav2014-09-1511-35/+181
| | | | | | | | | | Notes: svn path=/vendor/openpam/dist/; revision=271612 svn path=/vendor/openpam/OUROUPARIA/; revision=271613; tag=vendor/openpam/OUROUPARIA
| * Merge upstream r763: fix is_upper() predicate.Dag-Erling Smørgrav2014-02-261-1/+9
| | | | | | | | Notes: svn path=/vendor/openpam/dist/; revision=262529
| * Damn autoprops!Dag-Erling Smørgrav2013-09-081-1/+1
| | | | | | | | Notes: svn path=/vendor/openpam/dist/; revision=255387
| * Merge upstream r743: caught_signal should be static.Dag-Erling Smørgrav2013-09-071-1/+1
| | | | | | | | Notes: svn path=/vendor/openpam/dist/; revision=255375
* | r271256 fixed one segfault condition but introduced another due to theDag-Erling Smørgrav2014-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | wrong operator being used in the tty check. Reported by: avg@ MFH: 3 days Notes: svn path=/head/; revision=271617
* | Use non-recursive algorithm for traversing nvlists. This also removesPawel Jakub Dawidek2014-09-146-176/+306
| | | | | | | | | | | | | | | | | | the limit on number of nested nvlists. Submitted by: Mariusz Zaborski Notes: svn path=/head/; revision=271579
* | Remove the limit on descriptors that can be send in one nvlist.Pawel Jakub Dawidek2014-09-141-17/+96
| | | | | | | | | | | | | | Submitted by: Mariusz Zaborski Notes: svn path=/head/; revision=271578
* | Minor mdoc nit.Joel Dahl2014-09-091-1/+0
| | | | | | | | Notes: svn path=/head/; revision=271315
* | Fail rather than segfault if neither PAM_TTY nor PAM_RHOST is set.Dag-Erling Smørgrav2014-09-081-7/+10
| | | | | | | | | | | | | | | | PR: 83099 MFC after: 3 days Notes: svn path=/head/; revision=271256
* | Include src.opts.mk after SHLIBDIR has been defined so libnv is installed toEnji Cooper2014-09-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | /lib , not /usr/lib MFC after: 3 days Approved by: rpaulo (mentor) Submitted by: antoine Pointyhat to: me Phabric: D739 Notes: svn path=/head/; revision=271241
* | Add the fp{get,set}{mask,round} functions to the public symbols in the map.Andrew Turner2014-09-052-0/+14
| | | | | | | | | | | | | | | | These are only exported for armv6hf as the soft-float ABIs have these in the softfloat Symbol.map file. Notes: svn path=/head/; revision=271179
* | Remove an initialized, but otherwise, unused variable.Steve Kargl2014-09-042-2/+0
| | | | | | | | Notes: svn path=/head/; revision=271147
* | libc/locale: Remove a wrong comma.Pedro F. Giffuni2014-09-041-1/+1
| | | | | | | | | | | | | | | | | | | | This only had some effect when debugging. Obtained from: DragonflyBSD MFC after: 3 days Notes: svn path=/head/; revision=271110
* | Systems with lots of geom providers can end up with a kern.geom.confxmlBenno Rice2014-09-041-7/+34
| | | | | | | | | | | | | | | | | | | | | | | | value too large for the buffer allocated. Work around this by retrying a few times with larger buffer sizes. Submitted by: Scott Ferris <scott.ferris@isilon.com> Reviewed by: mlaier, ngie Sponsored by: EMC Isilon Storage Division Notes: svn path=/head/; revision=271085
* | Always seek back to the beginning of a regular directory, even if theJohn Baldwin2014-09-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | previous seek location was 0. Without this, readdir() would see dd_loc of zero and call getdirentries() which would start reading entries at the current seek location of the directory ignoring the first batch of entries. Also, rewinddir() should always seek so that it reads the directory from the beginning to get updated entries. PR: 192935 Reported by: iron@mail.ua MFC after: 3 days Notes: svn path=/head/; revision=271048
* | Use better type for i.Pawel Jakub Dawidek2014-09-031-2/+2
| | | | | | | | Notes: svn path=/head/; revision=271028
* | Declare i.Pawel Jakub Dawidek2014-09-031-1/+1
| | | | | | | | | | | | | | Reported by: sbruno Notes: svn path=/head/; revision=271027
* | Fix descriptors leak in case of nvlist_xunpack() failure.Pawel Jakub Dawidek2014-09-031-1/+4
| | | | | | | | | | | | | | Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org> Notes: svn path=/head/; revision=271026