libc: Remove empty comments in Symbol.mapThese were left over from $FreeBSD$ removal.Reviewed by: emasteDifferential Revision: https://reviews.freebsd.org/D42612(cherry picked from commit 1ca6
libc: Remove empty comments in Symbol.mapThese were left over from $FreeBSD$ removal.Reviewed by: emasteDifferential Revision: https://reviews.freebsd.org/D42612(cherry picked from commit 1ca63a8219b88b752b064d19bd3428c61dbcf1f9)
show more ...
libc: Purge unneeded cdefs.hThese sys/cdefs.h are not needed. Purge them. They are mostly left-overfrom the $FreeBSD$ removal. A few in libc are still required for macrosthat cdefs.h defines. Kee
libc: Purge unneeded cdefs.hThese sys/cdefs.h are not needed. Purge them. They are mostly left-overfrom the $FreeBSD$ removal. A few in libc are still required for macrosthat cdefs.h defines. Keep those.Sponsored by: NetflixDifferential Revision: https://reviews.freebsd.org/D42385(cherry picked from commit 559a218c9b257775fb249b67945fe4a05b7a6b9f)
Remove $FreeBSD$: one-line nroff patternRemove /^\.\\"\s*\$FreeBSD\$$\n/
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
Remove $FreeBSD$: one-line .h patternRemove /^\s*\*+\s*\$FreeBSD\$.*$\n/
mcount: tidy up ANSIficationlibc/gmon's mcount was ANSIfied in r124180, with libkern following overa decade later, in r325988, but some minor discrepancies remained.Update libc/gmon's mexitcount
mcount: tidy up ANSIficationlibc/gmon's mcount was ANSIfied in r124180, with libkern following overa decade later, in r325988, but some minor discrepancies remained.Update libc/gmon's mexitcount to an ANSI C function definition, and use(void) for libkern-only functions that take no arguments.Reported by: bde
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier f
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.Special thanks to Wind River for providing access to "The Duke ofHighlander" tool: an older (2014) run over FreeBSD tree was useful as astarting point.
Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is
Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is too pedantic, so give up on that point.Submitted by: Jan Schaumann <[email protected]>Pull Request: https://github.com/freebsd/freebsd/pull/96
Replace the last non-optional use of sbrk() in the tree with mmap().All gmon want's is a region of memory without the overhead of malloc().Just mapping some pages with mmap is an easy way to accom
Replace the last non-optional use of sbrk() in the tree with mmap().All gmon want's is a region of memory without the overhead of malloc().Just mapping some pages with mmap is an easy way to accomplish this.Approved by: jhb, cem, emasteObtained from: CheriBSD (bf33e1e70b368ababde74aa3ac70d108c8a52c69)Sponsored by: DARPA, AFRLDifferential Revision: https://reviews.freebsd.org/D5005
Add declaration to eliminate -Wmissing-prototypes warning
Use ANSI C prototypes.Eliminates gcc 4.9 warnings.
Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}if not already defined. This allows building libc from outside oflib/libc using a reach-over makefile.A typical use-case is to
Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}if not already defined. This allows building libc from outside oflib/libc using a reach-over makefile.A typical use-case is to build a standard ILP32 version and a COMPAT32version in a single iteration by building the COMPAT32 version using areach-over makefile.Obtained from: Juniper Networks, Inc.
libc: Use O_CLOEXEC when writing gmon files (cc -pg).
mdoc: end list context with El.
Allow users of gprof to get per run output files (using the pid)PR: bin/99800Submitted by: Peter Jeremy <[email protected]>Reviewed by: jilles (code)Reviewed by: dwhite (doc)Approve
Allow users of gprof to get per run output files (using the pid)PR: bin/99800Submitted by: Peter Jeremy <[email protected]>Reviewed by: jilles (code)Reviewed by: dwhite (doc)Approved by: cpercivaMFC after: 1 week
Provide 64-bit PowerPC support in libc.Obtained from: projects/ppc64
Simplify the calculation of s_scale by rewriting the FP expression touse uintmax_t instead of float and thereby eliminating the need fora non-FP version.Tested on: amd64, ia64 & powerpc (book-E)
Simplify the calculation of s_scale by rewriting the FP expression touse uintmax_t instead of float and thereby eliminating the need fora non-FP version.Tested on: amd64, ia64 & powerpc (book-E)Suggested by: bdeMFC after: 1 month
On powerpc, calculate s_scale using the non-FP version previouslyspecific to hp300. Since FreeBSD does not support hp300, hp300 hasbeen removed from the condition altogether.The FP version broke
On powerpc, calculate s_scale using the non-FP version previouslyspecific to hp300. Since FreeBSD does not support hp300, hp300 hasbeen removed from the condition altogether.The FP version broke profiling on powerpc due to invalid results.Casting to double instead of float resolved the issue, but withBook-E not having a FP unit, the non-FP version looked preferrable.Note that even on AIM hardware the FP version yielded an invalidvalue for s_scale, so the problem is most likely with the compileror with the expression itself.
Fix many "function declaration isn't a prototype" warnings in libc.I've only fixed code that seems to be written by `us'. There are stillmany warnings like this present in resolv/, rpc/, stdtime/
Fix many "function declaration isn't a prototype" warnings in libc.I've only fixed code that seems to be written by `us'. There are stillmany warnings like this present in resolv/, rpc/, stdtime/ and yp/.
Remove .mcount from gmon's Symbol map and add it to the appropriatearch. It can be named differently depending on the arch (.mcount,_mcount).Submitted by: marius
Use C comments since we now preprocess these files with CPP.
Per Regents of the University of Calfornia letter, remove advertisingclause.# If I've done so improperly on a file, please let me know.
Backed out rev.1.10 (a special case for amd64). The amd64 mcount codenever needed any frame pointers for itself.
Add each directory's symbol map file to SYM_MAPS.
1234