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.
show more ...
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
db(3): Fix aliasing warnings from modern GCC.While here also drop a malloc cast.Obtained from: NetBSD (CVS Rev. 1.18 - 1.20)
db/recno: Open with close-on-exec like btree and hash do.
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.
Several signed/unsigned warning fixes.
Our realloc(3) and reallocf(3) can handle NULL, which turns it into amalloc(3) call, so don't test if a pointer is NULL.Obtained from: OpenBSD (in spirit)
Style changes (including additional casts to shut up warnings). Thiscommit does not affect MD5 of object file.
Rename variable 'index' to 'idx' to avoid name collision with index(3),this commit does not affect any object code.Obtained from: OpenBSDVerified with: md5(1)
Diff reduction against OpenBSD: ANSI'fy prototypes.(This is part of a larger changeset which is intended to reduce diff only,thus some prototypes were left intact since they will be changed in the
Diff reduction against OpenBSD: ANSI'fy prototypes.(This is part of a larger changeset which is intended to reduce diff only,thus some prototypes were left intact since they will be changed in thefuture).Verified with: md5(1)
Per Regents of the University of Calfornia letter, remove advertisingclause.# If I've done so improperly on a file, please let me know.
Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).Only warnings that could be fixed without changing the generated objectcode and without restructuring the source code have been handled.
Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).Only warnings that could be fixed without changing the generated objectcode and without restructuring the source code have been handled.Reviewed by: /sbin/md5
libc_r wasn't so tied to libc for 22 months.
Fix the style of the SCM ID's.I believe have made all of libc .h's as consistent as possible.
Fix the style of the SCM ID's.I believe have made all of libc .c's as consistent as possible.
Remove __P() usage.
Remove 'register' keyword.
Remove _THREAD_SAFE and make libc thread-safe by default byadding (weak definitions to) stubs for some of the pthreadfunctions. If the threads library is linked in, the realpthread functions will
Remove _THREAD_SAFE and make libc thread-safe by default byadding (weak definitions to) stubs for some of the pthreadfunctions. If the threads library is linked in, the realpthread functions will pulled in.Use the following convention for system calls wrapped by thethreads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_fooChange all libc uses of system calls wrapped by the threadslibrary from foo to _foo. In order to define the prototypesfor _foo(), we introduce namespace.h and un-namespace.h(suggested by bde). All files that need to reference thesesystem calls, should include namespace.h before any standardincludes, then include un-namespace.h after the standardincludes and before any local includes. <db.h> is an exceptionand shouldn't be included in between namespace.h andun-namespace.h namespace.h will define foo to _foo, andun-namespace.h will undefine foo.Try to eliminate some of the recursive calls to MT-safefunctions in libc/stdio in preparation for adding a mutexto FILE. We have recursive mutexes, but would like to avoidusing them if possible.Remove uneeded includes of <errno.h> from a few files.Add $FreeBSD$ to a few files in order to pass commitprep.Approved by: -arch
Fix SCCS id string abuse I introduced.
Use size_t rather than a 16-bit data type fo the length.PR: 9350Submitted by: Danny J. Zerkel <[email protected]>
If using a DB_RECNO, db::put should return the new key if R_IAFTER isset, not the previous key.Add $FreeBSD$, not taking this off the vendor branch because it's not on.
Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),just use _foo() <-- foo(). In the case of a libpthread that doesn't docall conversion (such as linuxthreads and our upcomin
Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),just use _foo() <-- foo(). In the case of a libpthread that doesn't docall conversion (such as linuxthreads and our upcoming libpthread), thisis adequate. In the case of libc_r, we still need three names, which arenow _thread_sys_foo() <-- _foo() <-- foo().Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(),nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo().Remove all internal libc usage of: creat(), pause(), sleep(), system(),tcdrain(), wait(), and waitpid().Make thread cancellation fully POSIX-compliant.Suggested by: deischen
Add three-tier symbol naming in support of POSIX thread cancellationpoints. For library functions, the pattern is __sleep() <--_libc_sleep() <-- sleep(). The arrows represent weak aliases. Fors
Add three-tier symbol naming in support of POSIX thread cancellationpoints. For library functions, the pattern is __sleep() <--_libc_sleep() <-- sleep(). The arrows represent weak aliases. Forsystem calls, the pattern is _read() <-- _libc_read() <-- read().
$Id$ -> $FreeBSD$
Replace memory leaking instances of realloc with non-leaking reallocf.In some cases replace if (a == null) a = malloc(x); else a =realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this isgua
Replace memory leaking instances of realloc with non-leaking reallocf.In some cases replace if (a == null) a = malloc(x); else a =realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this isguaranteed to be the same thing.I've been running these on my system here w/o ill effects for sometime. However, the CTM-express is at part 6 of 34 for the CAMchanges, so I've not been able to do a build world with the CAM in thetree with these changes. Shouldn't impact anything, but...
12