summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* Add hton and ntoh to the arm64 Symbols.map file, they exist but were notandrew2015-07-061-0/+4
| | | | exported.
* Fix sysctl(3) so it returns the intended values for all mib names inpkelsey2015-07-061-2/+14
| | | | | | | | | | the 'user' sysctl tree, which have all been coming back 0 or empty since r240176. Differential Revision: https://reviews.freebsd.org/D2945 Reviewed by: sbruno Approved by: jmallett (mentor) MFC after: 3 days
* Add fdclose(3) function.oshogbo2015-07-043-27/+134
| | | | | | | | | | This function is equivalent to fclose(3) function except that it does not close the underlying file descriptor. fdclose(3) is step forward to make FILE structure private. Reviewed by: wblock, jilles, jhb, pjd Approved by: pjd (mentor) Differential Revision: https://reviews.freebsd.org/D2697
* Grammar and language fixes.kib2015-07-031-36/+50
| | | | | | Submitted by: wblock Review: https://reviews.freebsd.org/D2969 MFC after: 12 days
* Cleanup brk and sbrk to use the same code to find curbrk and minbrk whenandrew2015-07-023-36/+13
| | | | | | both compiling for PIC and non-PIC. Sponsored by: ABT Systems Ltd
* Document x86 machine-specific ptrace(2) requests. Provide list of thekib2015-06-301-2/+175
| | | | | | | | | ppc requests. Reviewed by: brueffer, emaste, gjb (previous version) Sponsored by: The FreeBSD Foundation Review: https://reviews.freebsd.org/D2962 MFC after: 2 weeks
* Implement fpgetmask, it's needed by Python.andrew2015-06-253-0/+49
| | | | | Approved by: ABT Systems Ltd Sponsored by: The FreeBSD Foundation
* Export __flt_rounds from the arm64 libc.soandrew2015-06-251-0/+1
|
* Implement fpsetmask. Some third-party software makes use of it, for exampleandrew2015-06-243-0/+54
| | | | | | | perl. Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation
* Set the alignment of the setjmp magic values correctly. The alignment needsandrew2015-06-243-3/+3
| | | | | | | | to be before the lavel, otherwise an extra word may be added between the label and the data. Obtained from: ABT Systems Ltd Sponsored by: The FReeBSD Foundation
* fts_children: preserve errno after running close/fchdirjilles2015-06-201-5/+8
| | | | | | | PR: 200942 Submitted by: Conrad Meyer Differential Revision: https://reviews.freebsd.org/D2852 MFC after: 1 week
* new dependssjg2015-06-161-0/+1
|
* Export the ARM __aeabi_mem* functions from libc, they are needed by the gccandrew2015-06-162-8/+17
| | | | | | | from ports as it doesn't include these in the copy of libgcc it installs uses. Obtained from: ABT Systems Ltd
* Revert r284417 it is not necessary anymorebapt2015-06-151-1/+1
|
* Enforce overwritting SHLIBDIRbapt2015-06-151-1/+1
| | | | | | | | | Since METAMODE has been added, sys.mk loads bsd.mkopt.mk which ends load loading bsd.own.mk which then defines SHLIBDIR before all the Makefile.inc everywhere. This makes /lib being populated again. Reported by: many
* Fix name of a constant.tuexen2015-06-141-2/+2
| | | | MFC after: 3 days
* NetBSD commit log:jlh2015-06-141-8/+5
| | | | | | | | | | | | | Use a constant array for the MIB. Newer LLVM decided that mib[] warranted stack protections, with the obvious crash after the setup was done. As a positive side effect, code size shrinks a bit. I'm not sure why this hasn't bitten us yes, but it is certainly possible and there are no real drawbacks to this change anyway. Submitted by: pfg Obtained from: NetBSD MFC after: 1 week
* Add META_MODE support.sjg2015-06-132-0/+185
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-27287-1661/+5508
| |\
| * \ Merge from head@274682sjg2014-11-19177-442/+2967
| |\ \
| * \ \ Merge head from 7/28sjg2014-08-19214-4940/+1402
| |\ \ \
| * | | | Updated dependenciessjg2014-05-101-0/+1
| | | | |
| * | | | Merge from headsjg2014-05-087-22/+23
| |\ \ \ \
| * \ \ \ \ Merge headsjg2014-04-27265-3684/+5177
| |\ \ \ \ \
| * \ \ \ \ \ Merge head@256284sjg2013-10-1311-43/+197
| |\ \ \ \ \ \
| * | | | | | | We need an extra -I from lib/msunsjg2013-10-131-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and we need to supress dependency on it - cyclic.
| * | | | | | | Merge headsjg2013-09-1116-71/+120
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ Merge from headsjg2013-09-05372-1092/+2729
| |\ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ sync from headsjg2013-04-1261-705/+2718
| |\ \ \ \ \ \ \ \ \
| * | | | | | | | | | Updated dependenciessjg2013-03-111-0/+1
| | | | | | | | | | |
| * | | | | | | | | | Updated dependenciessjg2013-02-161-2/+0
| | | | | | | | | | |
| * | | | | | | | | | Sync with HEAD.obrien2013-02-0890-1235/+2678
| |\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Correct the r242545 sync with head@242525.obrien2013-02-071-0/+4
| | | | | | | | | | | |
| * | | | | | | | | | | Updated/new Makefile.dependsjg2012-11-081-0/+1
| | | | | | | | | | | |
| | | | | | | | | | | |
| | \ \ \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \ \ \
| *-------. \ \ \ \ \ \ \ \ \ \ Sync from headsjg2012-11-04134-695/+1388
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-222-0/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | | | | | | | | | | Add support for '_' occurring at the beginning or end of a nameume2015-06-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | component. PR: 176093 Submitted by: landonf__at__bikemonkey.org MFC after: 1 week
* | | | | | | | | | | | | | | | | Set the correct register when calling sigprocmask in longjmp.andrew2015-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: Patrick Wildt <patrick@bitrig.org> Obtained from: drahn@bitrig.org
* | | | | | | | | | | | | | | | | strchr(3): Mdoc fixes.jilles2015-06-041-3/+5
| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Use proper prototype for harmless().rodrigc2015-05-311-1/+1
| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Make x_putlong() and x_putbytes() prototypes match therodrigc2015-05-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prototypes in <rpc/xdr.h>
* | | | | | | | | | | | | | | | | Use ANSI C prototypes.rodrigc2015-05-318-275/+116
| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Add the needed if-then instructions to build as Thumb-2.andrew2015-05-316-0/+53
| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Remove __ARM_EABI__ from more places in libc as this is the only ARM ABIandrew2015-05-313-19/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | we support.
* | | | | | | | | | | | | | | | | Use a register to set the cpsr bits. The ip register is safe to be changedandrew2015-05-312-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | within all of these functions, and is only stored in some to correctly pad the stack. This will be needed to build as Thumb-2 as, unlike with ARM instructions, the msr instruction only takes a register as the input.
* | | | | | | | | | | | | | | | | Removed unused special fork() implementations.brooks2015-05-293-107/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The arm version hasn't been used in ages. The mips version uses a valid, but pointless check of v1 and has been unhooked from the build since r276630. Differential Revision: https://reviews.freebsd.org/D2592 Reviewed by: emaste Sponsored by: DARPA, AFRL
* | | | | | | | | | | | | | | | | Fix __fpclassifyl when double == long double. As with r283693 this isandrew2015-05-291-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | needed on ARM and PowerPC. MFC after: 1 Week
* | | | | | | | | | | | | | | | | Fix __isinfl on architectures where double == long double. This is theandrew2015-05-291-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | case on at least ARM and PowerPC. MFC after: 1 week
* | | | | | | | | | | | | | | | | memmem(3): empty little string matches the beginning of the big stringemaste2015-05-262-11/+17
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function originated in glibc, and this matches their behaviour (and NetBSD, OpenBSD, and musl). An empty big string (arg "l") is handled by the existing l_len < s_len test. Reviewed by: bapt, ngie Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2657
OpenPOWER on IntegriCloud