aboutsummaryrefslogtreecommitdiffstats
path: root/ports/darwin
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-15 22:24:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-15 22:33:00 +0100
commit996bead0d8503b9abd40b49e23cc308fc645e1ff (patch)
treef95ca358524007ab5b57fdbd49dcc82beb3d09ea /ports/darwin
parent3fa7c853e0bcd6fe23f7524c2a3c9e3af90901c3 (diff)
downloadpseudo-996bead0d8503b9abd40b49e23cc308fc645e1ff.tar.gz
pseudo-996bead0d8503b9abd40b49e23cc308fc645e1ff.tar.bz2
pseudo-996bead0d8503b9abd40b49e23cc308fc645e1ff.zip
Add SPDX-License-Identifier: LGPL-2.1-only to files
This adds SPDX license headers to all source files in pseudo so license identification models current best practise. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'ports/darwin')
-rw-r--r--ports/darwin/guts/COPYRIGHT13
-rw-r--r--ports/darwin/guts/fcntl.c2
-rw-r--r--ports/darwin/guts/fgetgrent_r.c2
-rw-r--r--ports/darwin/guts/fgetpwent_r.c2
-rw-r--r--ports/darwin/guts/fgetxattr.c2
-rw-r--r--ports/darwin/guts/flistxattr.c2
-rw-r--r--ports/darwin/guts/fremovexattr.c2
-rw-r--r--ports/darwin/guts/fsetxattr.c2
-rw-r--r--ports/darwin/guts/fstat.c2
-rw-r--r--ports/darwin/guts/getgrent_r.c2
-rw-r--r--ports/darwin/guts/getgrouplist.c2
-rw-r--r--ports/darwin/guts/getgroups.c2
-rw-r--r--ports/darwin/guts/getpwent_r.c2
-rw-r--r--ports/darwin/guts/getxattr.c2
-rw-r--r--ports/darwin/guts/listxattr.c2
-rw-r--r--ports/darwin/guts/lstat.c2
-rw-r--r--ports/darwin/guts/open.c2
-rw-r--r--ports/darwin/guts/removexattr.c2
-rw-r--r--ports/darwin/guts/scandir.c2
-rw-r--r--ports/darwin/guts/setxattr.c2
-rw-r--r--ports/darwin/guts/stat.c2
-rw-r--r--ports/darwin/guts/sync_file_range.c2
-rw-r--r--ports/darwin/portdefs.h4
-rw-r--r--ports/darwin/pseudo_wrappers.c13
24 files changed, 48 insertions, 24 deletions
diff --git a/ports/darwin/guts/COPYRIGHT b/ports/darwin/guts/COPYRIGHT
index c96e1b1..b860a36 100644
--- a/ports/darwin/guts/COPYRIGHT
+++ b/ports/darwin/guts/COPYRIGHT
@@ -1,17 +1,6 @@
/*
* Copyright (c) 2008-2010 Wind River Systems, Inc.
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the Lesser GNU General Public License version 2.1 as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- * See the Lesser GNU General Public License for more details.
- *
- * You should have received a copy of the Lesser GNU General Public License
- * version 2.1 along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * SPDX-License-Identifier: LGPL-2.1-only
*
*/
diff --git a/ports/darwin/guts/fcntl.c b/ports/darwin/guts/fcntl.c
index c0b142b..917d5e2 100644
--- a/ports/darwin/guts/fcntl.c
+++ b/ports/darwin/guts/fcntl.c
@@ -2,6 +2,8 @@
* Copyright (c) 2011, 2012 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* int fcntl(int fd, int cmd, ... { struct flock *lock })
* int rc = -1;
*/
diff --git a/ports/darwin/guts/fgetgrent_r.c b/ports/darwin/guts/fgetgrent_r.c
index e760cdd..eec3d3a 100644
--- a/ports/darwin/guts/fgetgrent_r.c
+++ b/ports/darwin/guts/fgetgrent_r.c
@@ -2,6 +2,8 @@
* Copyright (c) 2011 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* int fgetgrent_r(FILE *fp, struct group*gbuf, char *buf, size_t buflen, struct group **gbufp)
* int rc = -1;
*/
diff --git a/ports/darwin/guts/fgetpwent_r.c b/ports/darwin/guts/fgetpwent_r.c
index cfea5b8..b935616 100644
--- a/ports/darwin/guts/fgetpwent_r.c
+++ b/ports/darwin/guts/fgetpwent_r.c
@@ -2,6 +2,8 @@
* Copyright (c) 2011 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* int fgetpwent_r(FILE *fp, struct passwd *pbuf, char *buf, size_t buflen, struct passwd **pbufp)
* int rc = -1;
*/
diff --git a/ports/darwin/guts/fgetxattr.c b/ports/darwin/guts/fgetxattr.c
index dbb3681..56b09d0 100644
--- a/ports/darwin/guts/fgetxattr.c
+++ b/ports/darwin/guts/fgetxattr.c
@@ -2,6 +2,8 @@
* Copyright (c) 2014 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* ssize_t fgetxattr(int filedes, const char *name, void *value, size_t size, u_int32_t position, int options)
* ssize_t rc = -1;
*/
diff --git a/ports/darwin/guts/flistxattr.c b/ports/darwin/guts/flistxattr.c
index bfaa4e9..de95906 100644
--- a/ports/darwin/guts/flistxattr.c
+++ b/ports/darwin/guts/flistxattr.c
@@ -2,6 +2,8 @@
* Copyright (c) 2014 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* ssize_t flistxattr(int filedes, char *list, size_t size, int options)
* ssize_t rc = -1;
*/
diff --git a/ports/darwin/guts/fremovexattr.c b/ports/darwin/guts/fremovexattr.c
index 4edc38c..125c77c 100644
--- a/ports/darwin/guts/fremovexattr.c
+++ b/ports/darwin/guts/fremovexattr.c
@@ -2,6 +2,8 @@
* Copyright (c) 2014 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* int fremovexattr(int filedes, const char *name, int options)
* int rc = -1;
*/
diff --git a/ports/darwin/guts/fsetxattr.c b/ports/darwin/guts/fsetxattr.c
index d707595..8f29ac9 100644
--- a/ports/darwin/guts/fsetxattr.c
+++ b/ports/darwin/guts/fsetxattr.c
@@ -2,6 +2,8 @@
* Copyright (c) 2014 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* int fsetxattr(int filedes, const char *name, const void *value, size_t size, u_int32_t position, int options)
* int rc = -1;
*/
diff --git a/ports/darwin/guts/fstat.c b/ports/darwin/guts/fstat.c
index 7695147..12e2233 100644
--- a/ports/darwin/guts/fstat.c
+++ b/ports/darwin/guts/fstat.c
@@ -2,6 +2,8 @@
* Copyright (c) 2011 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* int fstat(int fd, struct stat *buf)
* int rc = -1;
*/
diff --git a/ports/darwin/guts/getgrent_r.c b/ports/darwin/guts/getgrent_r.c
index 9d5db5a..ffc4796 100644
--- a/ports/darwin/guts/getgrent_r.c
+++ b/ports/darwin/guts/getgrent_r.c
@@ -2,6 +2,8 @@
* Copyright (c) 2011 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* int getgrent_r(struct group *gbuf, char *buf, size_t buflen, struct group **gbufp)
* int rc = -1;
*/
diff --git a/ports/darwin/guts/getgrouplist.c b/ports/darwin/guts/getgrouplist.c
index c5950bd..2988387 100644
--- a/ports/darwin/guts/getgrouplist.c
+++ b/ports/darwin/guts/getgrouplist.c
@@ -2,6 +2,8 @@
* Copyright (c) 2010 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* static int
* wrap_getgrouplist(const char *name, int basegid, int *groups, int *ngroups) {
* int rc = -1;
diff --git a/ports/darwin/guts/getgroups.c b/ports/darwin/guts/getgroups.c
index 3cbeb76..7aba660 100644
--- a/ports/darwin/guts/getgroups.c
+++ b/ports/darwin/guts/getgroups.c
@@ -2,6 +2,8 @@
* Copyright (c) 2010 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* static int
* wrap_getgroups(int size, gid_t *list) {
* int rc = -1;
diff --git a/ports/darwin/guts/getpwent_r.c b/ports/darwin/guts/getpwent_r.c
index 3de41b9..da0f797 100644
--- a/ports/darwin/guts/getpwent_r.c
+++ b/ports/darwin/guts/getpwent_r.c
@@ -2,6 +2,8 @@
* Copyright (c) 2011 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* int getpwent_r(struct passwd *pwbuf, char *buf, size_t buflen, struct passwd **pwbufp)
* int rc = -1;
*/
diff --git a/ports/darwin/guts/getxattr.c b/ports/darwin/guts/getxattr.c
index ecef9cf..f67bf2c 100644
--- a/ports/darwin/guts/getxattr.c
+++ b/ports/darwin/guts/getxattr.c
@@ -2,6 +2,8 @@
* Copyright (c) 2014 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* ssize_t getxattr(const char *path, const char *name, void *value, size_t size, u_int32_t position, int options)
* ssize_t rc = -1;
*/
diff --git a/ports/darwin/guts/listxattr.c b/ports/darwin/guts/listxattr.c
index 5a8a7a8..59151b1 100644
--- a/ports/darwin/guts/listxattr.c
+++ b/ports/darwin/guts/listxattr.c
@@ -2,6 +2,8 @@
* Copyright (c) 2014 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* ssize_t listxattr(const char *path, char *list, size_t size, int options)
* ssize_t rc = -1;
*/
diff --git a/ports/darwin/guts/lstat.c b/ports/darwin/guts/lstat.c
index 01e0f30..480dc50 100644
--- a/ports/darwin/guts/lstat.c
+++ b/ports/darwin/guts/lstat.c
@@ -2,6 +2,8 @@
* Copyright (c) 2011 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* int lstat(const char *path, struct stat *buf)
* int rc = -1;
*/
diff --git a/ports/darwin/guts/open.c b/ports/darwin/guts/open.c
index 307bcc9..da23316 100644
--- a/ports/darwin/guts/open.c
+++ b/ports/darwin/guts/open.c
@@ -2,6 +2,8 @@
* Copyright (c) 2011-2013 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* int open(const char *path, int flags, ... { int mode })
* int rc = -1;
*/
diff --git a/ports/darwin/guts/removexattr.c b/ports/darwin/guts/removexattr.c
index c125b1a..18a1480 100644
--- a/ports/darwin/guts/removexattr.c
+++ b/ports/darwin/guts/removexattr.c
@@ -2,6 +2,8 @@
* Copyright (c) 2014 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* int removexattr(const char *path, const char *name, int options)
* int rc = -1;
*/
diff --git a/ports/darwin/guts/scandir.c b/ports/darwin/guts/scandir.c
index 6492b1b..b6a5d8f 100644
--- a/ports/darwin/guts/scandir.c
+++ b/ports/darwin/guts/scandir.c
@@ -2,6 +2,8 @@
* Copyright (c) 2010 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* static int
* wrap_scandir(const char *path, struct dirent ***namelist, int (*filter)(struct dirent *), int (*compar)(const void *, const void *)) {
* int rc = -1;
diff --git a/ports/darwin/guts/setxattr.c b/ports/darwin/guts/setxattr.c
index 10ffba4..3346605 100644
--- a/ports/darwin/guts/setxattr.c
+++ b/ports/darwin/guts/setxattr.c
@@ -2,6 +2,8 @@
* Copyright (c) 2014 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* int setxattr(const char *path, const char *name, const void *value, size_t size, u_int32_t position, int options)
* int rc = -1;
*/
diff --git a/ports/darwin/guts/stat.c b/ports/darwin/guts/stat.c
index 8a0742c..4df9670 100644
--- a/ports/darwin/guts/stat.c
+++ b/ports/darwin/guts/stat.c
@@ -2,6 +2,8 @@
* Copyright (c) 2011 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* int stat(const char *path, struct stat *buf)
* int rc = -1;
*/
diff --git a/ports/darwin/guts/sync_file_range.c b/ports/darwin/guts/sync_file_range.c
index e0a31a4..229ccaa 100644
--- a/ports/darwin/guts/sync_file_range.c
+++ b/ports/darwin/guts/sync_file_range.c
@@ -2,6 +2,8 @@
* Copyright (c) 2013 Wind River Systems; see
* guts/COPYRIGHT for information.
*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
* int sync_file_range(int fd, off_t offset, off_t nbytes, unsigned int flags)
* int rc = -1;
*/
diff --git a/ports/darwin/portdefs.h b/ports/darwin/portdefs.h
index 900d98e..07fd39c 100644
--- a/ports/darwin/portdefs.h
+++ b/ports/darwin/portdefs.h
@@ -1,3 +1,7 @@
+/*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ */
#define PRELINK_LIBRARIES "DYLD_INSERT_LIBRARIES"
#define PRELINK_PATH "DYLD_LIBRARY_PATH"
#define PSEUDO_STATBUF_64 0
diff --git a/ports/darwin/pseudo_wrappers.c b/ports/darwin/pseudo_wrappers.c
index e33533e..3f05936 100644
--- a/ports/darwin/pseudo_wrappers.c
+++ b/ports/darwin/pseudo_wrappers.c
@@ -3,18 +3,7 @@
*
* Copyright (c) 2008-2011 Wind River Systems, Inc.
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the Lesser GNU General Public License version 2.1 as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- * See the Lesser GNU General Public License for more details.
- *
- * You should have received a copy of the Lesser GNU General Public License
- * version 2.1 along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * SPDX-License-Identifier: LGPL-2.1-only
*
*/
/* we need XATTR_NOFOLLOW in scope */