diff options
Diffstat (limited to 'ports/unix')
71 files changed, 143 insertions, 12 deletions
diff --git a/ports/unix/guts/COPYRIGHT b/ports/unix/guts/COPYRIGHT index c96e1b1..b860a36 100644 --- a/ports/unix/guts/COPYRIGHT +++ b/ports/unix/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/unix/guts/access.c b/ports/unix/guts/access.c index 0093a3b..1cc8d58 100644 --- a/ports/unix/guts/access.c +++ b/ports/unix/guts/access.c @@ -2,6 +2,8 @@ * Copyright (c) 2010, 2012 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_access(const char *path, int mode) { * int rc = -1; diff --git a/ports/unix/guts/acct.c b/ports/unix/guts/acct.c index b8dca5d..4acd3fb 100644 --- a/ports/unix/guts/acct.c +++ b/ports/unix/guts/acct.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_acct(const char *path) { * int rc = -1; diff --git a/ports/unix/guts/bind.c b/ports/unix/guts/bind.c index 46164be..6f8a1d2 100644 --- a/ports/unix/guts/bind.c +++ b/ports/unix/guts/bind.c @@ -2,6 +2,8 @@ * Copyright (c) 2016 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen) * int rc = -1; */ diff --git a/ports/unix/guts/chdir.c b/ports/unix/guts/chdir.c index 9e30348..d796c2e 100644 --- a/ports/unix/guts/chdir.c +++ b/ports/unix/guts/chdir.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_chdir(const char *path) { * int rc = -1; diff --git a/ports/unix/guts/chmod.c b/ports/unix/guts/chmod.c index a157335..77a5c9a 100644 --- a/ports/unix/guts/chmod.c +++ b/ports/unix/guts/chmod.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_chmod(const char *path, mode_t mode) { * int rc = -1; diff --git a/ports/unix/guts/chown.c b/ports/unix/guts/chown.c index 4fcbdda..69bef79 100644 --- a/ports/unix/guts/chown.c +++ b/ports/unix/guts/chown.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_chown(const char *path, uid_t owner, gid_t group) { * int rc = -1; diff --git a/ports/unix/guts/chroot.c b/ports/unix/guts/chroot.c index ac24955..62d5e88 100644 --- a/ports/unix/guts/chroot.c +++ b/ports/unix/guts/chroot.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_chroot(const char *path) { * int rc = -1; diff --git a/ports/unix/guts/close.c b/ports/unix/guts/close.c index 09c73e6..2f1c385 100644 --- a/ports/unix/guts/close.c +++ b/ports/unix/guts/close.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_close(int fd) { * int rc = -1; diff --git a/ports/unix/guts/closedir.c b/ports/unix/guts/closedir.c index 1085361..32c008f 100644 --- a/ports/unix/guts/closedir.c +++ b/ports/unix/guts/closedir.c @@ -2,6 +2,8 @@ * Copyright (c) 2012 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_closedir(DIR *dirp) { * int rc = -1; diff --git a/ports/unix/guts/creat.c b/ports/unix/guts/creat.c index 8593cd4..7aaf735 100644 --- a/ports/unix/guts/creat.c +++ b/ports/unix/guts/creat.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_creat(const char *path, mode_t mode) { * int rc = -1; diff --git a/ports/unix/guts/dup.c b/ports/unix/guts/dup.c index 927b264..be8626a 100644 --- a/ports/unix/guts/dup.c +++ b/ports/unix/guts/dup.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_dup(int fd) { * int rc = -1; diff --git a/ports/unix/guts/dup2.c b/ports/unix/guts/dup2.c index 8180039..0b20f01 100644 --- a/ports/unix/guts/dup2.c +++ b/ports/unix/guts/dup2.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_dup2(int oldfd, int newfd) { * int rc = -1; diff --git a/ports/unix/guts/fchdir.c b/ports/unix/guts/fchdir.c index ba77ebf..cace897 100644 --- a/ports/unix/guts/fchdir.c +++ b/ports/unix/guts/fchdir.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_fchdir(int dirfd) { * int rc = -1; diff --git a/ports/unix/guts/fchmod.c b/ports/unix/guts/fchmod.c index e2301e3..4d2d127 100644 --- a/ports/unix/guts/fchmod.c +++ b/ports/unix/guts/fchmod.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010, 2012, 2013 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_fchmod(int fd, mode_t mode) { * int rc = -1; diff --git a/ports/unix/guts/fchmodat.c b/ports/unix/guts/fchmodat.c index 0506794..55dbd35 100644 --- a/ports/unix/guts/fchmodat.c +++ b/ports/unix/guts/fchmodat.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010, 2012, 2013 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_fchmodat(int dirfd, const char *path, mode_t mode, int flags) { * int rc = -1; diff --git a/ports/unix/guts/fchown.c b/ports/unix/guts/fchown.c index 89cabe2..fb3343d 100644 --- a/ports/unix/guts/fchown.c +++ b/ports/unix/guts/fchown.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010, 2012, 2013 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_fchown(int fd, uid_t owner, gid_t group) { * int rc = -1; diff --git a/ports/unix/guts/fchownat.c b/ports/unix/guts/fchownat.c index 2888087..76d276a 100644 --- a/ports/unix/guts/fchownat.c +++ b/ports/unix/guts/fchownat.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010, 2012, 2013 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_fchownat(int dirfd, const char *path, uid_t owner, gid_t group, int flags) { * int rc = -1; diff --git a/ports/unix/guts/fclose.c b/ports/unix/guts/fclose.c index 4469f5b..15d0f85 100644 --- a/ports/unix/guts/fclose.c +++ b/ports/unix/guts/fclose.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_fclose(FILE *fp) { * int rc = -1; diff --git a/ports/unix/guts/fdatasync.c b/ports/unix/guts/fdatasync.c index 4aa77a8..594ad8f 100644 --- a/ports/unix/guts/fdatasync.c +++ b/ports/unix/guts/fdatasync.c @@ -2,6 +2,8 @@ * Copyright (c) 2013 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int fdatasync(int fd) * int rc = -1; */ diff --git a/ports/unix/guts/fopen.c b/ports/unix/guts/fopen.c index 87c7d78..26a6abc 100644 --- a/ports/unix/guts/fopen.c +++ b/ports/unix/guts/fopen.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 FILE * * wrap_fopen(const char *path, const char *mode) { * FILE * rc = 0; diff --git a/ports/unix/guts/freopen.c b/ports/unix/guts/freopen.c index e706d9f..703b6aa 100644 --- a/ports/unix/guts/freopen.c +++ b/ports/unix/guts/freopen.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_freopen(const char *path, const char *mode, FILE *stream) { * FILE * rc = NULL; diff --git a/ports/unix/guts/fsync.c b/ports/unix/guts/fsync.c index 6c87a56..c78f43c 100644 --- a/ports/unix/guts/fsync.c +++ b/ports/unix/guts/fsync.c @@ -2,6 +2,8 @@ * Copyright (c) 2013 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int fsync(int fd) * int rc = -1; */ diff --git a/ports/unix/guts/fts_open.c b/ports/unix/guts/fts_open.c index 964314e..e5b27ba 100644 --- a/ports/unix/guts/fts_open.c +++ b/ports/unix/guts/fts_open.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static FTS * * wrap_fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT **, const FTSENT **)) { * FTS * rc = NULL; diff --git a/ports/unix/guts/ftw.c b/ports/unix/guts/ftw.c index 0861194..58945a1 100644 --- a/ports/unix/guts/ftw.c +++ b/ports/unix/guts/ftw.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_ftw(const char *path, int (*fn)(const char *, const struct stat *, int), int nopenfd) { * int rc = -1; diff --git a/ports/unix/guts/getcwd.c b/ports/unix/guts/getcwd.c index 2915a18..a5bf2ef 100644 --- a/ports/unix/guts/getcwd.c +++ b/ports/unix/guts/getcwd.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_getcwd(char *buf, size_t size) { * char * rc = NULL; diff --git a/ports/unix/guts/getwd.c b/ports/unix/guts/getwd.c index b1bcf90..bc99f93 100644 --- a/ports/unix/guts/getwd.c +++ b/ports/unix/guts/getwd.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_getwd(char *buf) { * char * rc = NULL; diff --git a/ports/unix/guts/glob.c b/ports/unix/guts/glob.c index 0012179..8c17123 100644 --- a/ports/unix/guts/glob.c +++ b/ports/unix/guts/glob.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_glob(const char *pattern, int flags, int (*errfunc)(const char *, int), glob_t *pglob) { * int rc = -1; diff --git a/ports/unix/guts/lchown.c b/ports/unix/guts/lchown.c index 60727d0..3a14e2f 100644 --- a/ports/unix/guts/lchown.c +++ b/ports/unix/guts/lchown.c @@ -2,6 +2,8 @@ * Copyright (c) 2008,2011 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int lchown(const char *path, uid_t owner, gid_t group) * int rc = -1; */ diff --git a/ports/unix/guts/link.c b/ports/unix/guts/link.c index 3b340ee..1e03902 100644 --- a/ports/unix/guts/link.c +++ b/ports/unix/guts/link.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2010, 2012, 2013 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_link(const char *oldname, const char *newname) { * int rc = -1; diff --git a/ports/unix/guts/linkat.c b/ports/unix/guts/linkat.c index 279a15b..381f9d0 100644 --- a/ports/unix/guts/linkat.c +++ b/ports/unix/guts/linkat.c @@ -2,6 +2,8 @@ * Copyright (c) 2012, 2013 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int linkat(int olddirfd, const char *oldname, int newdirfd, const char *newname, int flags) * int rc = -1; */ diff --git a/ports/unix/guts/lutimes.c b/ports/unix/guts/lutimes.c index cdadbbd..07cab66 100644 --- a/ports/unix/guts/lutimes.c +++ b/ports/unix/guts/lutimes.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_lutimes(const char *path, const struct timeval *tv) { * int rc = -1; diff --git a/ports/unix/guts/mkdir.c b/ports/unix/guts/mkdir.c index 9f116e2..2eaf81b 100644 --- a/ports/unix/guts/mkdir.c +++ b/ports/unix/guts/mkdir.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_mkdir(const char *path, mode_t mode) { * int rc = -1; diff --git a/ports/unix/guts/mkdirat.c b/ports/unix/guts/mkdirat.c index ef2e3a1..f66e99a 100644 --- a/ports/unix/guts/mkdirat.c +++ b/ports/unix/guts/mkdirat.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_mkdirat(int dirfd, const char *path, mode_t mode) { * int rc = -1; diff --git a/ports/unix/guts/mkdtemp.c b/ports/unix/guts/mkdtemp.c index 5337661..61cd11c 100644 --- a/ports/unix/guts/mkdtemp.c +++ b/ports/unix/guts/mkdtemp.c @@ -2,6 +2,8 @@ * Copyright (c) 2010, 2012 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static char * * wrap_mkdtemp(char *template) { * char * rc = NULL; diff --git a/ports/unix/guts/mkfifo.c b/ports/unix/guts/mkfifo.c index 32f79fb..81d9c0c 100644 --- a/ports/unix/guts/mkfifo.c +++ b/ports/unix/guts/mkfifo.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_mkfifo(const char *path, mode_t mode) { * int rc = -1; diff --git a/ports/unix/guts/mkfifoat.c b/ports/unix/guts/mkfifoat.c index 6947e70..bc547eb 100644 --- a/ports/unix/guts/mkfifoat.c +++ b/ports/unix/guts/mkfifoat.c @@ -2,6 +2,8 @@ * Copyright (c) 2015 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_mkfifoat(int dirfd, const char *path, mode_t mode) { * int rc = -1; diff --git a/ports/unix/guts/mknod.c b/ports/unix/guts/mknod.c index eeca65d..aff3a0b 100644 --- a/ports/unix/guts/mknod.c +++ b/ports/unix/guts/mknod.c @@ -2,6 +2,8 @@ * Copyright (c) 2011,2014 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/unix/guts/mknodat.c b/ports/unix/guts/mknodat.c index afeab46..9e86c93 100644 --- a/ports/unix/guts/mknodat.c +++ b/ports/unix/guts/mknodat.c @@ -2,6 +2,8 @@ * Copyright (c) 2011 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/unix/guts/mkostemp.c b/ports/unix/guts/mkostemp.c index bce0939..199ff20 100644 --- a/ports/unix/guts/mkostemp.c +++ b/ports/unix/guts/mkostemp.c @@ -2,6 +2,8 @@ * Copyright (c) 2018 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int mkostemp(char *template, int oflags) * int rc = -1; */ diff --git a/ports/unix/guts/mkostemps.c b/ports/unix/guts/mkostemps.c index 27ada46..013757d 100644 --- a/ports/unix/guts/mkostemps.c +++ b/ports/unix/guts/mkostemps.c @@ -5,6 +5,8 @@ * Copyright (c) 2018 Peter Seebach; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int mkostemps(char *template, int suffixlen, int oflags) * int rc = -1; */ diff --git a/ports/unix/guts/mkstemp.c b/ports/unix/guts/mkstemp.c index 8fab58b..0aab6ed 100644 --- a/ports/unix/guts/mkstemp.c +++ b/ports/unix/guts/mkstemp.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_mkstemp(char *template) { * int rc = -1; diff --git a/ports/unix/guts/mkstemps.c b/ports/unix/guts/mkstemps.c index 95b3b83..5b16457 100644 --- a/ports/unix/guts/mkstemps.c +++ b/ports/unix/guts/mkstemps.c @@ -2,6 +2,8 @@ * Copyright (c) 2018 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int mkstemps(char *template, int suffixlen) * int rc = -1; */ diff --git a/ports/unix/guts/mktemp.c b/ports/unix/guts/mktemp.c index a39d1b7..9aee829 100644 --- a/ports/unix/guts/mktemp.c +++ b/ports/unix/guts/mktemp.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static char * * wrap_mktemp(char *template) { * char * rc = NULL; diff --git a/ports/unix/guts/msync.c b/ports/unix/guts/msync.c index fbc5e26..926ab50 100644 --- a/ports/unix/guts/msync.c +++ b/ports/unix/guts/msync.c @@ -2,6 +2,8 @@ * Copyright (c) 2013 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int msync(void *addr, size_t length, int flags) * int rc = -1; */ diff --git a/ports/unix/guts/nftw.c b/ports/unix/guts/nftw.c index 73daec8..dac3106 100644 --- a/ports/unix/guts/nftw.c +++ b/ports/unix/guts/nftw.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_nftw(const char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int nopenfd, int flag) { * int rc = -1; diff --git a/ports/unix/guts/opendir.c b/ports/unix/guts/opendir.c index c8a78f8..5d6f1f2 100644 --- a/ports/unix/guts/opendir.c +++ b/ports/unix/guts/opendir.c @@ -2,6 +2,8 @@ * Copyright (c) 2010, 2012 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static DIR * * wrap_opendir(const char *path) { * DIR * rc = NULL; diff --git a/ports/unix/guts/pathconf.c b/ports/unix/guts/pathconf.c index c6caa34..9300595 100644 --- a/ports/unix/guts/pathconf.c +++ b/ports/unix/guts/pathconf.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static long * wrap_pathconf(const char *path, int name) { * long rc = -1; diff --git a/ports/unix/guts/popen.c b/ports/unix/guts/popen.c index 5d44c0e..d19ec7e 100644 --- a/ports/unix/guts/popen.c +++ b/ports/unix/guts/popen.c @@ -2,6 +2,8 @@ * Copyright (c) 2012 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * FILE *popen(const char *command, const char *mode) * FILE *rc = NULL; */ diff --git a/ports/unix/guts/readlink.c b/ports/unix/guts/readlink.c index 18d9dc7..4b3d492 100644 --- a/ports/unix/guts/readlink.c +++ b/ports/unix/guts/readlink.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static ssize_t * wrap_readlink(const char *path, char *buf, size_t bufsiz) { * ssize_t rc = -1; diff --git a/ports/unix/guts/readlinkat.c b/ports/unix/guts/readlinkat.c index 5282e2b..86832da 100644 --- a/ports/unix/guts/readlinkat.c +++ b/ports/unix/guts/readlinkat.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static ssize_t * wrap_readlinkat(int dirfd, const char *path, char *buf, size_t bufsiz) { * ssize_t rc = -1; diff --git a/ports/unix/guts/realpath.c b/ports/unix/guts/realpath.c index a59808d..085d2cb 100644 --- a/ports/unix/guts/realpath.c +++ b/ports/unix/guts/realpath.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static char * * wrap_realpath(const char *name, char *resolved_name) { * char * rc = NULL; diff --git a/ports/unix/guts/remove.c b/ports/unix/guts/remove.c index 4e2cecb..375e648 100644 --- a/ports/unix/guts/remove.c +++ b/ports/unix/guts/remove.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_remove(const char *path) { * int rc = -1; diff --git a/ports/unix/guts/rename.c b/ports/unix/guts/rename.c index b8ee8b0..5073c71 100644 --- a/ports/unix/guts/rename.c +++ b/ports/unix/guts/rename.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_rename(const char *oldpath, const char *newpath) { * int rc = -1; diff --git a/ports/unix/guts/renameat.c b/ports/unix/guts/renameat.c index d5e36fa..735a60a 100644 --- a/ports/unix/guts/renameat.c +++ b/ports/unix/guts/renameat.c @@ -2,6 +2,8 @@ * Copyright (c) 2008-2012 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static int * wrap_renameat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath) { * int rc = -1; diff --git a/ports/unix/guts/rmdir.c b/ports/unix/guts/rmdir.c index ebc522a..43fcecb 100644 --- a/ports/unix/guts/rmdir.c +++ b/ports/unix/guts/rmdir.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_rmdir(const char *path) { * int rc = -1; diff --git a/ports/unix/guts/symlink.c b/ports/unix/guts/symlink.c index 487c135..ce9fa1b 100644 --- a/ports/unix/guts/symlink.c +++ b/ports/unix/guts/symlink.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_symlink(const char *oldname, const char *newpath) { * int rc = -1; diff --git a/ports/unix/guts/symlinkat.c b/ports/unix/guts/symlinkat.c index 1346db1..c96ff3e 100644 --- a/ports/unix/guts/symlinkat.c +++ b/ports/unix/guts/symlinkat.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_symlinkat(const char *oldname, int dirfd, const char *newpath) { * int rc = -1; diff --git a/ports/unix/guts/sync.c b/ports/unix/guts/sync.c index c5d9554..a6eca98 100644 --- a/ports/unix/guts/sync.c +++ b/ports/unix/guts/sync.c @@ -2,6 +2,8 @@ * Copyright (c) 2013 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * void sync(void) * */ diff --git a/ports/unix/guts/sync_file_range.c b/ports/unix/guts/sync_file_range.c index 03cfc6c..7e03b7a 100644 --- a/ports/unix/guts/sync_file_range.c +++ b/ports/unix/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, off64_t offset, off64_t nbytes, unsigned int flags) * int rc = -1; */ diff --git a/ports/unix/guts/system.c b/ports/unix/guts/system.c index 6351592..1214314 100644 --- a/ports/unix/guts/system.c +++ b/ports/unix/guts/system.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 system(const char *command) * int rc = -1; */ diff --git a/ports/unix/guts/tempnam.c b/ports/unix/guts/tempnam.c index 9b0257f..26ae3e1 100644 --- a/ports/unix/guts/tempnam.c +++ b/ports/unix/guts/tempnam.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static char * * wrap_tempnam(const char *template, const char *pfx) { * char * rc = NULL; diff --git a/ports/unix/guts/tmpnam.c b/ports/unix/guts/tmpnam.c index 3fece57..190d260 100644 --- a/ports/unix/guts/tmpnam.c +++ b/ports/unix/guts/tmpnam.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static char * * wrap_tmpnam(char *s) { * char * rc = NULL; diff --git a/ports/unix/guts/truncate.c b/ports/unix/guts/truncate.c index 6a19a50..6a51105 100644 --- a/ports/unix/guts/truncate.c +++ b/ports/unix/guts/truncate.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_truncate(const char *path, off_t length) { * int rc = -1; diff --git a/ports/unix/guts/umask.c b/ports/unix/guts/umask.c index 6b060d3..df1fbb3 100644 --- a/ports/unix/guts/umask.c +++ b/ports/unix/guts/umask.c @@ -2,6 +2,8 @@ * Copyright (c) 2014 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * mode_t umask(mode_t mask) * mode_t rc = 0; */ diff --git a/ports/unix/guts/unlink.c b/ports/unix/guts/unlink.c index d8a5d01..fe96cad 100644 --- a/ports/unix/guts/unlink.c +++ b/ports/unix/guts/unlink.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_unlink(const char *path) { * int rc = -1; diff --git a/ports/unix/guts/unlinkat.c b/ports/unix/guts/unlinkat.c index e723a01..7e4f87c 100644 --- a/ports/unix/guts/unlinkat.c +++ b/ports/unix/guts/unlinkat.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_unlinkat(int dirfd, const char *path, int rflags) { * int rc = -1; diff --git a/ports/unix/guts/utime.c b/ports/unix/guts/utime.c index ff65237..c726ff8 100644 --- a/ports/unix/guts/utime.c +++ b/ports/unix/guts/utime.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_utime(const char *path, const struct utimbuf *buf) { * int rc = -1; diff --git a/ports/unix/guts/utimes.c b/ports/unix/guts/utimes.c index 69ad949..ec49f02 100644 --- a/ports/unix/guts/utimes.c +++ b/ports/unix/guts/utimes.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_utimes(const char *path, const struct timeval *times) { * int rc = -1; diff --git a/ports/unix/pseudo_wrappers.c b/ports/unix/pseudo_wrappers.c index b825d56..bf69aa9 100644 --- a/ports/unix/pseudo_wrappers.c +++ b/ports/unix/pseudo_wrappers.c @@ -1,3 +1,7 @@ +/* + * SPDX-License-Identifier: LGPL-2.1-only + * + */ FILE * popen(const char *command, const char *mode) { sigset_t saved; diff --git a/ports/unix/syncfs/guts/syncfs.c b/ports/unix/syncfs/guts/syncfs.c index 2c9a685..76b509e 100644 --- a/ports/unix/syncfs/guts/syncfs.c +++ b/ports/unix/syncfs/guts/syncfs.c @@ -2,6 +2,8 @@ * Copyright (c) 2013 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int syncfs(int fd) * int rc = -1; */ |