diff options
Diffstat (limited to 'ports/linux')
91 files changed, 194 insertions, 12 deletions
diff --git a/ports/linux/guts/COPYRIGHT b/ports/linux/guts/COPYRIGHT index c96e1b1..b860a36 100644 --- a/ports/linux/guts/COPYRIGHT +++ b/ports/linux/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/linux/guts/__fxstat.c b/ports/linux/guts/__fxstat.c index db9716b..0a34320 100644 --- a/ports/linux/guts/__fxstat.c +++ b/ports/linux/guts/__fxstat.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int * wrap___fxstat(int ver, int fd, struct stat *buf) { * int rc = -1; diff --git a/ports/linux/guts/__fxstat64.c b/ports/linux/guts/__fxstat64.c index 8601904..aa734b5 100644 --- a/ports/linux/guts/__fxstat64.c +++ b/ports/linux/guts/__fxstat64.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int * wrap___fxstat64(int ver, int fd, struct stat64 *buf) { * int rc = -1; diff --git a/ports/linux/guts/__fxstatat.c b/ports/linux/guts/__fxstatat.c index 94c5ff6..23dfa73 100644 --- a/ports/linux/guts/__fxstatat.c +++ b/ports/linux/guts/__fxstatat.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap___fxstatat(int ver, int dirfd, const char *path, struct stat *buf, int flags) { * int rc = -1; diff --git a/ports/linux/guts/__fxstatat64.c b/ports/linux/guts/__fxstatat64.c index 62fc3f1..ecf2952 100644 --- a/ports/linux/guts/__fxstatat64.c +++ b/ports/linux/guts/__fxstatat64.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap___fxstatat64(int ver, int dirfd, const char *path, struct stat64 *buf, int flags) { * int rc = -1; diff --git a/ports/linux/guts/__lxstat.c b/ports/linux/guts/__lxstat.c index 32b0301..1307eb7 100644 --- a/ports/linux/guts/__lxstat.c +++ b/ports/linux/guts/__lxstat.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap___lxstat(int ver, const char *path, struct stat *buf) { * int rc = -1; diff --git a/ports/linux/guts/__lxstat64.c b/ports/linux/guts/__lxstat64.c index ac1f782..1d3cf32 100644 --- a/ports/linux/guts/__lxstat64.c +++ b/ports/linux/guts/__lxstat64.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap___lxstat64(int ver, const char *path, struct stat64 *buf) { * int rc = -1; diff --git a/ports/linux/guts/__openat64_2.c b/ports/linux/guts/__openat64_2.c index e970df7..f9e9cf0 100644 --- a/ports/linux/guts/__openat64_2.c +++ b/ports/linux/guts/__openat64_2.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010,2012 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap___openat64_2(int dirfd, const char *path, int flags) { * int rc = -1; diff --git a/ports/linux/guts/__openat_2.c b/ports/linux/guts/__openat_2.c index 33ed620..e9a1f7e 100644 --- a/ports/linux/guts/__openat_2.c +++ b/ports/linux/guts/__openat_2.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap___openat_2(int dirfd, const char *path, int flags) { * int rc = -1; diff --git a/ports/linux/guts/__xmknod.c b/ports/linux/guts/__xmknod.c index fa31b66..bbf486b 100644 --- a/ports/linux/guts/__xmknod.c +++ b/ports/linux/guts/__xmknod.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap___xmknod(int ver, const char *path, mode_t mode, dev_t *dev) { * int rc = -1; diff --git a/ports/linux/guts/__xmknodat.c b/ports/linux/guts/__xmknodat.c index 4fa021b..8c34427 100644 --- a/ports/linux/guts/__xmknodat.c +++ b/ports/linux/guts/__xmknodat.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap___xmknodat(int ver, int dirfd, const char *path, mode_t mode, dev_t *dev) { * int rc = -1; diff --git a/ports/linux/guts/__xstat.c b/ports/linux/guts/__xstat.c index ec10abb..fed6955 100644 --- a/ports/linux/guts/__xstat.c +++ b/ports/linux/guts/__xstat.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap___xstat(int ver, const char *path, struct stat *buf) { * int rc = -1; diff --git a/ports/linux/guts/__xstat64.c b/ports/linux/guts/__xstat64.c index ed62e7e..ec74c02 100644 --- a/ports/linux/guts/__xstat64.c +++ b/ports/linux/guts/__xstat64.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap___xstat64(int ver, const char *path, struct stat64 *buf) { * int rc = -1; diff --git a/ports/linux/guts/canonicalize_file_name.c b/ports/linux/guts/canonicalize_file_name.c index 9a04f33..a36cfbd 100644 --- a/ports/linux/guts/canonicalize_file_name.c +++ b/ports/linux/guts/canonicalize_file_name.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static char * * wrap_canonicalize_file_name(const char *filename) { * char * rc = NULL; diff --git a/ports/linux/guts/capset.c b/ports/linux/guts/capset.c index 51e0cdf..1a4219b 100644 --- a/ports/linux/guts/capset.c +++ b/ports/linux/guts/capset.c @@ -2,6 +2,8 @@ * Copyright (c) 2016 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int capset(cap_user_header_t hdrp, const cap_user_data_t datap) * int rc = -1; */ diff --git a/ports/linux/guts/creat64.c b/ports/linux/guts/creat64.c index 2d2fc27..9ce7e3d 100644 --- a/ports/linux/guts/creat64.c +++ b/ports/linux/guts/creat64.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_creat64(const char *path, ...mode_t mode) { * int rc = -1; diff --git a/ports/linux/guts/eaccess.c b/ports/linux/guts/eaccess.c index e2119cc..66b5b56 100644 --- a/ports/linux/guts/eaccess.c +++ b/ports/linux/guts/eaccess.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_eaccess(const char *path, int mode) { * int rc = -1; diff --git a/ports/linux/guts/euidaccess.c b/ports/linux/guts/euidaccess.c index 85433a8..cf9a8cc 100644 --- a/ports/linux/guts/euidaccess.c +++ b/ports/linux/guts/euidaccess.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_euidaccess(const char *path, int mode) { * int rc = -1; diff --git a/ports/linux/guts/fcntl.c b/ports/linux/guts/fcntl.c index 639fd24..4dd9796 100644 --- a/ports/linux/guts/fcntl.c +++ b/ports/linux/guts/fcntl.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_fcntl(int fd, int cmd, ...struct flock *lock) { * int rc = -1; diff --git a/ports/linux/guts/fopen64.c b/ports/linux/guts/fopen64.c index b243345..e76da69 100644 --- a/ports/linux/guts/fopen64.c +++ b/ports/linux/guts/fopen64.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static FILE * * wrap_fopen64(const char *path, const char *mode) { * FILE * rc = 0; diff --git a/ports/linux/guts/freopen64.c b/ports/linux/guts/freopen64.c index 4bad533..5fc9073 100644 --- a/ports/linux/guts/freopen64.c +++ b/ports/linux/guts/freopen64.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static FILE * * wrap_freopen64(const char *path, const char *mode, FILE *stream) { * FILE * rc = NULL; diff --git a/ports/linux/guts/fstat.c b/ports/linux/guts/fstat.c index 2cf2787..b089b15 100644 --- a/ports/linux/guts/fstat.c +++ b/ports/linux/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/linux/guts/fstat64.c b/ports/linux/guts/fstat64.c index 4a759f7..6dd97da 100644 --- a/ports/linux/guts/fstat64.c +++ b/ports/linux/guts/fstat64.c @@ -2,6 +2,8 @@ * Copyright (c) 2012 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int fstat64(int fd, struct stat *buf) * int rc = -1; */ diff --git a/ports/linux/guts/ftw64.c b/ports/linux/guts/ftw64.c index a375fbf..48adb80 100644 --- a/ports/linux/guts/ftw64.c +++ b/ports/linux/guts/ftw64.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_ftw64(const char *path, int (*fn)(const char *, const struct stat64 *, int), int nopenfd) { * int rc = -1; diff --git a/ports/linux/guts/get_current_dir_name.c b/ports/linux/guts/get_current_dir_name.c index 79f82f9..cd62326 100644 --- a/ports/linux/guts/get_current_dir_name.c +++ b/ports/linux/guts/get_current_dir_name.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static char * * wrap_get_current_dir_name(void) { * char * rc = NULL; diff --git a/ports/linux/guts/getgrent_r.c b/ports/linux/guts/getgrent_r.c index b04373d..c94f319 100644 --- a/ports/linux/guts/getgrent_r.c +++ b/ports/linux/guts/getgrent_r.c @@ -2,6 +2,8 @@ * Copyright (c) 2010-2011 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_getgrent_r(struct group *gbuf, char *buf, size_t buflen, struct group **gbufp) { * int rc = -1; diff --git a/ports/linux/guts/getgrouplist.c b/ports/linux/guts/getgrouplist.c index 8b16e47..5481a38 100644 --- a/ports/linux/guts/getgrouplist.c +++ b/ports/linux/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 *user, gid_t group, gid_t *groups, int *ngroups) { * int rc = -1; diff --git a/ports/linux/guts/getgroups.c b/ports/linux/guts/getgroups.c index afb9662..814caaf 100644 --- a/ports/linux/guts/getgroups.c +++ b/ports/linux/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/linux/guts/getpw.c b/ports/linux/guts/getpw.c index 62b44da..5aa0bca 100644 --- a/ports/linux/guts/getpw.c +++ b/ports/linux/guts/getpw.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_getpw(uid_t uid, char *buf) { * int rc = -1; diff --git a/ports/linux/guts/getpwent_r.c b/ports/linux/guts/getpwent_r.c index 4fd9cc0..4796edf 100644 --- a/ports/linux/guts/getpwent_r.c +++ b/ports/linux/guts/getpwent_r.c @@ -2,6 +2,8 @@ * Copyright (c) 2010-2011 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_getpwent_r(struct passwd *pwbuf, char *buf, size_t buflen, struct passwd **pwbufp) { * int rc = -1; diff --git a/ports/linux/guts/getresgid.c b/ports/linux/guts/getresgid.c index 13551a4..f79b9f3 100644 --- a/ports/linux/guts/getresgid.c +++ b/ports/linux/guts/getresgid.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid) { * int rc = -1; diff --git a/ports/linux/guts/getresuid.c b/ports/linux/guts/getresuid.c index 2e47520..59816d4 100644 --- a/ports/linux/guts/getresuid.c +++ b/ports/linux/guts/getresuid.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_getresuid(uid_t *ruid, uid_t *euid, uid_t *suid) { * int rc = -1; diff --git a/ports/linux/guts/glob64.c b/ports/linux/guts/glob64.c index ccac6e4..7e45368 100644 --- a/ports/linux/guts/glob64.c +++ b/ports/linux/guts/glob64.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_glob64(const char *pattern, int flags, int (*errfunc)(const char *, int), glob64_t *pglob) { * int rc = -1; diff --git a/ports/linux/guts/lchown.c b/ports/linux/guts/lchown.c index 4eb1202..b41ccaa 100644 --- a/ports/linux/guts/lchown.c +++ b/ports/linux/guts/lchown.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_lchown(const char *path, uid_t owner, gid_t group) { */ diff --git a/ports/linux/guts/lckpwdf.c b/ports/linux/guts/lckpwdf.c index b452ec0..f96ab53 100644 --- a/ports/linux/guts/lckpwdf.c +++ b/ports/linux/guts/lckpwdf.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_lckpwdf(void) { * int rc = -1; diff --git a/ports/linux/guts/lstat.c b/ports/linux/guts/lstat.c index 19c202f..d2c4d50 100644 --- a/ports/linux/guts/lstat.c +++ b/ports/linux/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/linux/guts/lstat64.c b/ports/linux/guts/lstat64.c index 94eb60f..43d0ce1 100644 --- a/ports/linux/guts/lstat64.c +++ b/ports/linux/guts/lstat64.c @@ -2,6 +2,8 @@ * Copyright (c) 2012 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int lstat64(const char *path, struct stat *buf) * int rc = -1; */ diff --git a/ports/linux/guts/mknod.c b/ports/linux/guts/mknod.c index eb90e66..61fd320 100644 --- a/ports/linux/guts/mknod.c +++ b/ports/linux/guts/mknod.c @@ -2,6 +2,8 @@ * Copyright (c) 2016 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int mknod(const char *path, mode_t mode, dev_t dev) * int rc = -1; */ diff --git a/ports/linux/guts/mknodat.c b/ports/linux/guts/mknodat.c index 4956a6a..a7e4293 100644 --- a/ports/linux/guts/mknodat.c +++ b/ports/linux/guts/mknodat.c @@ -2,6 +2,8 @@ * Copyright (c) 2016 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int mknodat(int dirfd, const char *path, mode_t mode, dev_t dev) * int rc = -1; */ diff --git a/ports/linux/guts/mkstemp64.c b/ports/linux/guts/mkstemp64.c index 48be612..aa7bb58 100644 --- a/ports/linux/guts/mkstemp64.c +++ b/ports/linux/guts/mkstemp64.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_mkstemp64(char *template) { * int rc = -1; diff --git a/ports/linux/guts/nftw64.c b/ports/linux/guts/nftw64.c index 82571cd..816faba 100644 --- a/ports/linux/guts/nftw64.c +++ b/ports/linux/guts/nftw64.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_nftw64(const char *path, int (*fn)(const char *, const struct stat64 *, int, struct FTW *), int nopenfd, int flag) { * int rc = -1; diff --git a/ports/linux/guts/open.c b/ports/linux/guts/open.c index 0a0596c..ad7fd65 100644 --- a/ports/linux/guts/open.c +++ b/ports/linux/guts/open.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_open(const char *path, int flags, ...mode_t mode) { * int rc = -1; diff --git a/ports/linux/guts/open64.c b/ports/linux/guts/open64.c index 8028ede..b7d9ca3 100644 --- a/ports/linux/guts/open64.c +++ b/ports/linux/guts/open64.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010,2012 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_open64(const char *path, int flags, ...mode_t mode) { * int rc = -1; diff --git a/ports/linux/guts/openat.c b/ports/linux/guts/openat.c index cc6b118..673ea6e 100644 --- a/ports/linux/guts/openat.c +++ b/ports/linux/guts/openat.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010, 2013 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_openat(int dirfd, const char *path, int flags, ...mode_t mode) { * int rc = -1; diff --git a/ports/linux/guts/openat64.c b/ports/linux/guts/openat64.c index 8dedcbf..7f9d226 100644 --- a/ports/linux/guts/openat64.c +++ b/ports/linux/guts/openat64.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010,2012 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_openat64(int dirfd, const char *path, int flags, ...mode_t mode) { * int rc = -1; diff --git a/ports/linux/guts/renameat2.c b/ports/linux/guts/renameat2.c index 135933b..e2c8cf1 100644 --- a/ports/linux/guts/renameat2.c +++ b/ports/linux/guts/renameat2.c @@ -5,6 +5,8 @@ * [Note: copyright added by code generator, may be * incorrect. Remove this if you fix it.] * + * SPDX-License-Identifier: LGPL-2.1-only + * * int renameat2(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags) * int rc = -1; */ diff --git a/ports/linux/guts/scandir.c b/ports/linux/guts/scandir.c index afcebaf..60a275a 100644 --- a/ports/linux/guts/scandir.c +++ b/ports/linux/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)(const struct dirent *), int (*compar)(const void *, const void *)) { * int rc = -1; diff --git a/ports/linux/guts/scandir64.c b/ports/linux/guts/scandir64.c index 1317b73..233602e 100644 --- a/ports/linux/guts/scandir64.c +++ b/ports/linux/guts/scandir64.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_scandir64(const char *path, struct dirent64 ***namelist, int (*filter)(const struct dirent64 *), int (*compar)(const void *, const void *)) { * int rc = -1; diff --git a/ports/linux/guts/setfsgid.c b/ports/linux/guts/setfsgid.c index 0e5a10b..81e916e 100644 --- a/ports/linux/guts/setfsgid.c +++ b/ports/linux/guts/setfsgid.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_setfsgid(gid_t fsgid) { * int rc = -1; diff --git a/ports/linux/guts/setfsuid.c b/ports/linux/guts/setfsuid.c index e52b65e..423ca03 100644 --- a/ports/linux/guts/setfsuid.c +++ b/ports/linux/guts/setfsuid.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_setfsuid(uid_t fsuid) { * int rc = -1; diff --git a/ports/linux/guts/setgroups.c b/ports/linux/guts/setgroups.c index 31b2b57..d26db31 100644 --- a/ports/linux/guts/setgroups.c +++ b/ports/linux/guts/setgroups.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_setgroups(size_t size, const gid_t *list) { * int rc = -1; diff --git a/ports/linux/guts/setresgid.c b/ports/linux/guts/setresgid.c index 2a26405..37739b9 100644 --- a/ports/linux/guts/setresgid.c +++ b/ports/linux/guts/setresgid.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_setresgid(gid_t rgid, gid_t egid, gid_t sgid) { * int rc = -1; diff --git a/ports/linux/guts/setresuid.c b/ports/linux/guts/setresuid.c index a0a367f..3219fc5 100644 --- a/ports/linux/guts/setresuid.c +++ b/ports/linux/guts/setresuid.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_setresuid(uid_t ruid, uid_t euid, uid_t suid) { * int rc = -1; diff --git a/ports/linux/guts/stat.c b/ports/linux/guts/stat.c index 1fe800e..f8c73f7 100644 --- a/ports/linux/guts/stat.c +++ b/ports/linux/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/linux/guts/stat64.c b/ports/linux/guts/stat64.c index 53dd156..d8b3f36 100644 --- a/ports/linux/guts/stat64.c +++ b/ports/linux/guts/stat64.c @@ -2,6 +2,8 @@ * Copyright (c) 2012 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int stat64(const char *path, struct stat *buf) * int rc = -1; */ diff --git a/ports/linux/guts/syscall.c b/ports/linux/guts/syscall.c index d1226c5..0fefddc 100644 --- a/ports/linux/guts/syscall.c +++ b/ports/linux/guts/syscall.c @@ -2,6 +2,8 @@ * Copyright (c) 2018 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * long syscall(long nr) * long rc = -1; */ diff --git a/ports/linux/guts/truncate64.c b/ports/linux/guts/truncate64.c index a798984..aaf1797 100644 --- a/ports/linux/guts/truncate64.c +++ b/ports/linux/guts/truncate64.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_truncate64(const char *path, off64_t length) { * int rc = -1; diff --git a/ports/linux/guts/ulckpwdf.c b/ports/linux/guts/ulckpwdf.c index ed6a671..b4a26da 100644 --- a/ports/linux/guts/ulckpwdf.c +++ b/ports/linux/guts/ulckpwdf.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_ulckpwdf(void) { * int rc = -1; diff --git a/ports/linux/newclone/guts/clone.c b/ports/linux/newclone/guts/clone.c index ee6fc09..bc64c5a 100644 --- a/ports/linux/newclone/guts/clone.c +++ b/ports/linux/newclone/guts/clone.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2011 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * clone(...) { * .... diff --git a/ports/linux/newclone/pseudo_wrappers.c b/ports/linux/newclone/pseudo_wrappers.c index 1fc6c59..5b137ee 100644 --- a/ports/linux/newclone/pseudo_wrappers.c +++ b/ports/linux/newclone/pseudo_wrappers.c @@ -1,3 +1,8 @@ +/* + * SPDX-License-Identifier: LGPL-2.1-only + * + */ + static int wrap_clone(int (*fn)(void *), void *child_stack, int flags, void *arg, va_list ap) { diff --git a/ports/linux/noxattr/guts/fgetxattr.c b/ports/linux/noxattr/guts/fgetxattr.c index 9d33643..9ab1be2 100644 --- a/ports/linux/noxattr/guts/fgetxattr.c +++ b/ports/linux/noxattr/guts/fgetxattr.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 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) * ssize_t rc = -1; */ diff --git a/ports/linux/noxattr/guts/flistxattr.c b/ports/linux/noxattr/guts/flistxattr.c index 77db021..e9ad277 100644 --- a/ports/linux/noxattr/guts/flistxattr.c +++ b/ports/linux/noxattr/guts/flistxattr.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 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) * ssize_t rc = -1; */ diff --git a/ports/linux/noxattr/guts/fremovexattr.c b/ports/linux/noxattr/guts/fremovexattr.c index 529a9de..99c0906 100644 --- a/ports/linux/noxattr/guts/fremovexattr.c +++ b/ports/linux/noxattr/guts/fremovexattr.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int fremovexattr(int filedes, const char *name) * int rc = -1; */ diff --git a/ports/linux/noxattr/guts/fsetxattr.c b/ports/linux/noxattr/guts/fsetxattr.c index 3c56ddd..780fa9a 100644 --- a/ports/linux/noxattr/guts/fsetxattr.c +++ b/ports/linux/noxattr/guts/fsetxattr.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 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, int flags) * int rc = -1; */ diff --git a/ports/linux/noxattr/guts/getxattr.c b/ports/linux/noxattr/guts/getxattr.c index fe8912d..939060b 100644 --- a/ports/linux/noxattr/guts/getxattr.c +++ b/ports/linux/noxattr/guts/getxattr.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * ssize_t getxattr(const char *pathname, const char *name, void *value, size_t size) * ssize_t rc = -1; */ diff --git a/ports/linux/noxattr/guts/lgetxattr.c b/ports/linux/noxattr/guts/lgetxattr.c index 404211f..48a0b95 100644 --- a/ports/linux/noxattr/guts/lgetxattr.c +++ b/ports/linux/noxattr/guts/lgetxattr.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * ssize_t lgetxattr(const char *pathname, const char *name, void *value, size_t size) * ssize_t rc = -1; */ diff --git a/ports/linux/noxattr/guts/listxattr.c b/ports/linux/noxattr/guts/listxattr.c index 1b0b5e7..9c351a5 100644 --- a/ports/linux/noxattr/guts/listxattr.c +++ b/ports/linux/noxattr/guts/listxattr.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * ssize_t listxattr(const char *pathname, char *list, size_t size) * ssize_t rc = -1; */ diff --git a/ports/linux/noxattr/guts/llistxattr.c b/ports/linux/noxattr/guts/llistxattr.c index a33f970..6fc6bcc 100644 --- a/ports/linux/noxattr/guts/llistxattr.c +++ b/ports/linux/noxattr/guts/llistxattr.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * ssize_t llistxattr(const char *pathname, char *list, size_t size) * ssize_t rc = -1; */ diff --git a/ports/linux/noxattr/guts/lremovexattr.c b/ports/linux/noxattr/guts/lremovexattr.c index 38429da..e31c46c 100644 --- a/ports/linux/noxattr/guts/lremovexattr.c +++ b/ports/linux/noxattr/guts/lremovexattr.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int lremovexattr(const char *pathname, const char *name) * int rc = -1; */ diff --git a/ports/linux/noxattr/guts/lsetxattr.c b/ports/linux/noxattr/guts/lsetxattr.c index 140ae8d..096cbf2 100644 --- a/ports/linux/noxattr/guts/lsetxattr.c +++ b/ports/linux/noxattr/guts/lsetxattr.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int lsetxattr(const char *pathname, const char *name, const void *value, size_t size, int flags) * int rc = -1; */ diff --git a/ports/linux/noxattr/guts/removexattr.c b/ports/linux/noxattr/guts/removexattr.c index cd7f486..4adee0e 100644 --- a/ports/linux/noxattr/guts/removexattr.c +++ b/ports/linux/noxattr/guts/removexattr.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int removexattr(const char *pathname, const char *name) * int rc = -1; */ diff --git a/ports/linux/noxattr/guts/setxattr.c b/ports/linux/noxattr/guts/setxattr.c index de2de98..3172e6f 100644 --- a/ports/linux/noxattr/guts/setxattr.c +++ b/ports/linux/noxattr/guts/setxattr.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int setxattr(const char *pathname, const char *name, const void *value, size_t size, int flags) * int rc = -1; */ diff --git a/ports/linux/oldclone/guts/clone.c b/ports/linux/oldclone/guts/clone.c index c6771e5..e0ff768 100644 --- a/ports/linux/oldclone/guts/clone.c +++ b/ports/linux/oldclone/guts/clone.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2011 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * clone(...) { * .... diff --git a/ports/linux/oldclone/pseudo_wrappers.c b/ports/linux/oldclone/pseudo_wrappers.c index 1720dfb..ba9cf42 100644 --- a/ports/linux/oldclone/pseudo_wrappers.c +++ b/ports/linux/oldclone/pseudo_wrappers.c @@ -1,3 +1,7 @@ +/* + * SPDX-License-Identifier: LGPL-2.1-only + * + */ static int wrap_clone(int (*fn)(void *), void *child_stack, int flags, void *arg) { /* unused */ diff --git a/ports/linux/portdefs.h b/ports/linux/portdefs.h index 86aa4f9..d419365 100644 --- a/ports/linux/portdefs.h +++ b/ports/linux/portdefs.h @@ -1,3 +1,7 @@ +/* + * SPDX-License-Identifier: LGPL-2.1-only + * + */ #define PRELINK_LIBRARIES "LD_PRELOAD" #define PRELINK_PATH "LD_LIBRARY_PATH" #define PSEUDO_STATBUF_64 1 diff --git a/ports/linux/pseudo_wrappers.c b/ports/linux/pseudo_wrappers.c index 6a76632..cd7e173 100644 --- a/ports/linux/pseudo_wrappers.c +++ b/ports/linux/pseudo_wrappers.c @@ -1,3 +1,7 @@ +/* + * SPDX-License-Identifier: LGPL-2.1-only + * + */ /* the unix port wants to know that real_stat() and * friends exist. So they do. And because the Linux * port really uses stat64 for those... diff --git a/ports/linux/statvfs/guts/statvfs.c b/ports/linux/statvfs/guts/statvfs.c index c516649..e69ee41 100644 --- a/ports/linux/statvfs/guts/statvfs.c +++ b/ports/linux/statvfs/guts/statvfs.c @@ -2,6 +2,8 @@ * Copyright (c) 2018 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int statvfs(const char *path, struct statvfs *buf) * int rc = -1; */ diff --git a/ports/linux/xattr/guts/fgetxattr.c b/ports/linux/xattr/guts/fgetxattr.c index ae8c3a3..91a4bd6 100644 --- a/ports/linux/xattr/guts/fgetxattr.c +++ b/ports/linux/xattr/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) * ssize_t rc = -1; */ diff --git a/ports/linux/xattr/guts/flistxattr.c b/ports/linux/xattr/guts/flistxattr.c index cdd9454..aeb7e4e 100644 --- a/ports/linux/xattr/guts/flistxattr.c +++ b/ports/linux/xattr/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) * ssize_t rc = -1; */ diff --git a/ports/linux/xattr/guts/fremovexattr.c b/ports/linux/xattr/guts/fremovexattr.c index a029d2c..e6c5b0d 100644 --- a/ports/linux/xattr/guts/fremovexattr.c +++ b/ports/linux/xattr/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 rc = -1; */ diff --git a/ports/linux/xattr/guts/fsetxattr.c b/ports/linux/xattr/guts/fsetxattr.c index 376cf08..679c1f6 100644 --- a/ports/linux/xattr/guts/fsetxattr.c +++ b/ports/linux/xattr/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, int xflags) * int rc = -1; */ diff --git a/ports/linux/xattr/guts/getxattr.c b/ports/linux/xattr/guts/getxattr.c index 7bd2bf5..20e7c72 100644 --- a/ports/linux/xattr/guts/getxattr.c +++ b/ports/linux/xattr/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) * ssize_t rc = -1; */ diff --git a/ports/linux/xattr/guts/lgetxattr.c b/ports/linux/xattr/guts/lgetxattr.c index 675d3da..f24771e 100644 --- a/ports/linux/xattr/guts/lgetxattr.c +++ b/ports/linux/xattr/guts/lgetxattr.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 lgetxattr(const char *path, const char *name, void *value, size_t size) * ssize_t rc = -1; */ diff --git a/ports/linux/xattr/guts/listxattr.c b/ports/linux/xattr/guts/listxattr.c index 0decf71..ac733b2 100644 --- a/ports/linux/xattr/guts/listxattr.c +++ b/ports/linux/xattr/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) * ssize_t rc = -1; */ diff --git a/ports/linux/xattr/guts/llistxattr.c b/ports/linux/xattr/guts/llistxattr.c index 9934256..42bbf10 100644 --- a/ports/linux/xattr/guts/llistxattr.c +++ b/ports/linux/xattr/guts/llistxattr.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 llistxattr(const char *path, char *list, size_t size) * ssize_t rc = -1; */ diff --git a/ports/linux/xattr/guts/lremovexattr.c b/ports/linux/xattr/guts/lremovexattr.c index 1f39788..38c83dc 100644 --- a/ports/linux/xattr/guts/lremovexattr.c +++ b/ports/linux/xattr/guts/lremovexattr.c @@ -2,6 +2,8 @@ * Copyright (c) 2014 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int lremovexattr(const char *path, const char *name) * int rc = -1; */ diff --git a/ports/linux/xattr/guts/lsetxattr.c b/ports/linux/xattr/guts/lsetxattr.c index 9fe35bc..8eeec75 100644 --- a/ports/linux/xattr/guts/lsetxattr.c +++ b/ports/linux/xattr/guts/lsetxattr.c @@ -2,6 +2,8 @@ * Copyright (c) 2014 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int lsetxattr(const char *path, const char *name, const void *value, size_t size, int xflags) * int rc = -1; */ diff --git a/ports/linux/xattr/guts/removexattr.c b/ports/linux/xattr/guts/removexattr.c index 0d4d8e3..2b5719f 100644 --- a/ports/linux/xattr/guts/removexattr.c +++ b/ports/linux/xattr/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 rc = -1; */ diff --git a/ports/linux/xattr/guts/setxattr.c b/ports/linux/xattr/guts/setxattr.c index bace0d8..ba318ee 100644 --- a/ports/linux/xattr/guts/setxattr.c +++ b/ports/linux/xattr/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, int xflags) * int rc = -1; */ diff --git a/ports/linux/xattr/portdefs.h b/ports/linux/xattr/portdefs.h index 367ca60..56cd3ca 100644 --- a/ports/linux/xattr/portdefs.h +++ b/ports/linux/xattr/portdefs.h @@ -1,2 +1,6 @@ +/* + * SPDX-License-Identifier: LGPL-2.1-only + * + */ #include <attr/xattr.h> #include <stdint.h> diff --git a/ports/linux/xattr/pseudo_wrappers.c b/ports/linux/xattr/pseudo_wrappers.c index 1c228a2..590af30 100644 --- a/ports/linux/xattr/pseudo_wrappers.c +++ b/ports/linux/xattr/pseudo_wrappers.c @@ -1,3 +1,7 @@ +/* + * SPDX-License-Identifier: LGPL-2.1-only + * + */ /* shared functionality for the xattr code */ /* Each of these functions is expecting to get an optional name, and * a populated statbuf to use for sending messages to the server. |