Skip to content

Commit

Permalink
lib: further adoption of SPDX licensing ID tags.
Browse files Browse the repository at this point in the history
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using mis-identified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
  • Loading branch information
pgiffuni committed Nov 26, 2017
1 parent efe6775 commit 5e53a4f
Show file tree
Hide file tree
Showing 454 changed files with 978 additions and 70 deletions.
2 changes: 2 additions & 0 deletions lib/csu/amd64/crt1.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* LINTLIBRARY */
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright 1996-1998 John D. Polstra.
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/csu/arm/crt1.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* LINTLIBRARY */
/*-
* SPDX-License-Identifier: BSD-4-Clause
*
* Copyright 2001 David E. O'Brien.
* All rights reserved.
* Copyright 1996-1998 John D. Polstra.
Expand Down
2 changes: 2 additions & 0 deletions lib/csu/common/crtbrand.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright 2000 David E. O'Brien, John D. Polstra.
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/csu/common/ignore_init.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright 2012 Konstantin Belousov <[email protected]>
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/csu/common/notes.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright 2012 Konstantin Belousov <[email protected]>
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/csu/mips/crt1.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-4-Clause
*
* Copyright 1996-1998 John D. Polstra.
* All rights reserved.
* Copyright (c) 1995 Christopher G. Demetriou
Expand Down
2 changes: 2 additions & 0 deletions lib/csu/powerpc/crt1.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* LINTLIBRARY */
/*-
* SPDX-License-Identifier: BSD-4-Clause
*
* Copyright 2001 David E. O'Brien.
* All rights reserved.
* Copyright 1996-1998 John D. Polstra.
Expand Down
2 changes: 2 additions & 0 deletions lib/csu/powerpc64/crt1.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* LINTLIBRARY */
/*-
* SPDX-License-Identifier: BSD-4-Clause
*
* Copyright 2001 David E. O'Brien.
* All rights reserved.
* Copyright 1996-1998 John D. Polstra.
Expand Down
2 changes: 2 additions & 0 deletions lib/csu/sparc64/crt1.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* LINTLIBRARY */
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright 2001 David E. O'Brien.
* All rights reserved.
* Copyright (c) 1995, 1998 Berkeley Software Design, Inc.
Expand Down
2 changes: 2 additions & 0 deletions lib/libarchive/config_freebsd.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2003-2007 Tim Kientzle
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libbluetooth/bluetooth.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*/

/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2001-2009 Maksim Yevmenkin <[email protected]>
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libbluetooth/bluetooth.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*/

/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2001-2009 Maksim Yevmenkin <[email protected]>
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libbluetooth/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*/

/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2009 Maksim Yevmenkin <[email protected]>
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libbluetooth/hci.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*/

/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2009 Maksim Yevmenkin <[email protected]>
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libbsdstat/bsdstat.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2002-2007 Sam Leffler, Errno Consulting
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libbsdstat/bsdstat.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2002-2007 Sam Leffler, Errno Consulting
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libc_nonshared/__stub.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2013 Peter Wemm
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libcalendar/calendar.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 1997 Wolfgang Helbig
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libcalendar/calendar.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 1997 Wolfgang Helbig
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libcalendar/easter.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 1997 Wolfgang Helbig
* All rights reserved.
*
Expand Down
4 changes: 3 additions & 1 deletion lib/libcam/camlib.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 1997, 1998, 1999, 2002 Kenneth D. Merry.
* All rights reserved.
*
Expand Down
4 changes: 3 additions & 1 deletion lib/libcompat/4.1/ftime.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
/*-
* SPDX-License-Identifier: BSD-4-Clause
*
* Copyright (c) 1994 Christopher G. Demetriou
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libcrypt/crypt-md5.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2003 Poul-Henning Kamp
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libcrypt/crypt-nthash.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2003 Michael Bretterklieber
* All rights reserved.
*
Expand Down
4 changes: 3 additions & 1 deletion lib/libcrypt/crypt-sha256.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2011 The FreeBSD Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down
4 changes: 3 additions & 1 deletion lib/libcrypt/crypt-sha512.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2011 The FreeBSD Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 2 additions & 0 deletions lib/libcrypt/crypt.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 1999 Mark Murray
* Copyright (c) 2014 Dag-Erling Smørgrav
* All rights reserved.
Expand Down
4 changes: 3 additions & 1 deletion lib/libcrypt/crypt.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* LINTLIBRARY */
/*
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 1999
* Mark Murray. All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libdevinfo/devinfo.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2000 Michael Smith
* Copyright (c) 2000 BSDi
* All rights reserved.
Expand Down
2 changes: 2 additions & 0 deletions lib/libdevinfo/devinfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2000 Michael Smith
* Copyright (c) 2000 BSDi
* All rights reserved.
Expand Down
2 changes: 2 additions & 0 deletions lib/libdevinfo/devinfo_var.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2000 Michael Smith
* Copyright (c) 2000 BSDi
* All rights reserved.
Expand Down
4 changes: 3 additions & 1 deletion lib/libdevstat/devstat.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 1997, 1998 Kenneth D. Merry.
* All rights reserved.
*
Expand Down
4 changes: 3 additions & 1 deletion lib/libdevstat/devstat.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 1997, 1998 Kenneth D. Merry.
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libfetch/common.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 1998-2016 Dag-Erling Smørgrav
* Copyright (c) 2013 Michael Gmelin <[email protected]>
* All rights reserved.
Expand Down
2 changes: 2 additions & 0 deletions lib/libfetch/common.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 1998-2014 Dag-Erling Smørgrav
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libfetch/fetch.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 1998-2004 Dag-Erling Smørgrav
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libfetch/fetch.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 1998-2004 Dag-Erling Smørgrav
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libfetch/file.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 1998-2011 Dag-Erling Smørgrav
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libfetch/ftp.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 1998-2011 Dag-Erling Smørgrav
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libfetch/http.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 2000-2014 Dag-Erling Smørgrav
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libgeom/geom_ctl.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 2003 Poul-Henning Kamp
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libgeom/geom_getxml.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2003 Poul-Henning Kamp
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libgeom/geom_stats.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2003 Poul-Henning Kamp
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libgeom/geom_util.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2007 Pawel Jakub Dawidek <[email protected]>
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libgeom/geom_xml2tree.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2003 Poul-Henning Kamp
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libgeom/libgeom.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2003 Poul-Henning Kamp
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libgssapi/context.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2005 Doug Rabson
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libgssapi/cred.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2005 Doug Rabson
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libgssapi/gss_accept_sec_context.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2005 Doug Rabson
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libgssapi/gss_acquire_cred.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2005 Doug Rabson
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libgssapi/gss_add_cred.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2005 Doug Rabson
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libgssapi/gss_add_oid_set_member.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2005 Doug Rabson
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libgssapi/gss_canonicalize_name.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2005 Doug Rabson
* All rights reserved.
*
Expand Down
2 changes: 2 additions & 0 deletions lib/libgssapi/gss_compare_name.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2005 Doug Rabson
* All rights reserved.
*
Expand Down
Loading

0 comments on commit 5e53a4f

Please sign in to comment.