diff options
260 files changed, 542 insertions, 343 deletions
@@ -457,48 +457,10 @@ DAMAGES. END OF TERMS AND CONDITIONS - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - <one line to give the library's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - <signature of Ty Coon>, 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! +Note: +Individual files contain the following tag instead of the full license text. + SPDX-License-Identifier: LGPL-2.1-only +This enables machine processing of license information based on the SPDX +License Identifiers that are here available: http://spdx.org/licenses/ diff --git a/ChangeLog.txt b/ChangeLog.txt index 60666e5..81e3584 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,6 @@ +2019-05-15: + * (RP) Add SDPX license headers to source files. + 2019-04-10: * (seebs) Experimental workaround for special non-blocking open case. diff --git a/Makefile.in b/Makefile.in index ad6541b..b43d2d6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -3,18 +3,7 @@ # # Copyright (c) 2008-2015 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 # # configuration flags @@ -4,18 +4,7 @@ # # Copyright (c) 2008-2014 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 # # not a real configure script... opt_prefix= diff --git a/guts/COPYRIGHT b/guts/COPYRIGHT index 06188b2..1b478d1 100644 --- a/guts/COPYRIGHT +++ b/guts/COPYRIGHT @@ -1,17 +1,6 @@ /* * Copyright (c) 2008-2014 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 * */ @@ -2,18 +2,7 @@ # # Copyright (c) 2008-2010, 2013 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 # """convert tables.in files to enums, tables, and support code. diff --git a/makewrappers b/makewrappers index fa514ba..e84607d 100755 --- a/makewrappers +++ b/makewrappers @@ -2,18 +2,7 @@ # # Copyright (c) 2008-2011,2013 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 # """convert wrapfuncs.in to wrapper function stubs and tables""" @@ -3,18 +3,7 @@ * * 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 * */ #ifndef _LARGEFILE64_SOURCE @@ -1,4 +1,8 @@ #!/bin/sh +# +# SPDX-License-Identifier: LGPL-2.1-only +# + # do a quick performance test of pseudo opt_f=false flag_f= diff --git a/ports/common/guts/execl.c b/ports/common/guts/execl.c index be86b49..21a18cc 100644 --- a/ports/common/guts/execl.c +++ b/ports/common/guts/execl.c @@ -2,6 +2,8 @@ * Copyright (c) 2011 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int execl(const char *file, const char *arg, va_list ap) * int rc = -1; */ diff --git a/ports/common/guts/execle.c b/ports/common/guts/execle.c index a3bc3ca..0b15e91 100644 --- a/ports/common/guts/execle.c +++ b/ports/common/guts/execle.c @@ -2,6 +2,8 @@ * Copyright (c) 2011 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int execle(const char *file, const char *arg, va_list ap) * int rc = -1; */ diff --git a/ports/common/guts/execlp.c b/ports/common/guts/execlp.c index 3cf2889..93f85d0 100644 --- a/ports/common/guts/execlp.c +++ b/ports/common/guts/execlp.c @@ -2,6 +2,8 @@ * Copyright (c) 2011 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * int execlp(const char *file, const char *arg, va_list ap) * int rc = -1; */ diff --git a/ports/common/guts/execv.c b/ports/common/guts/execv.c index c071626..7819911 100644 --- a/ports/common/guts/execv.c +++ b/ports/common/guts/execv.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_execv(const char *file, char *const *argv) { * int rc = -1; diff --git a/ports/common/guts/execve.c b/ports/common/guts/execve.c index 24cc177..1144f7c 100644 --- a/ports/common/guts/execve.c +++ b/ports/common/guts/execve.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_execve(const char *file, char *const *argv, char *const *envp) { * int rc = -1; diff --git a/ports/common/guts/execvp.c b/ports/common/guts/execvp.c index e6bf09f..acc9fdc 100644 --- a/ports/common/guts/execvp.c +++ b/ports/common/guts/execvp.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_execvp(const char *file, char *const *argv) { * int rc = -1; diff --git a/ports/common/guts/fork.c b/ports/common/guts/fork.c index bebe3b0..4f5f4e4 100644 --- a/ports/common/guts/fork.c +++ b/ports/common/guts/fork.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_fork(void) { * int rc = -1; diff --git a/ports/common/pseudo_wrappers.c b/ports/common/pseudo_wrappers.c index 81be635..92dfaa8 100644 --- a/ports/common/pseudo_wrappers.c +++ b/ports/common/pseudo_wrappers.c @@ -1,3 +1,8 @@ +/* + * SPDX-License-Identifier: LGPL-2.1-only + * + */ + /* these aren't used, but the wrapper table isn't happy unless they * exist */ diff --git a/ports/common/subports b/ports/common/subports index e2aac56..4a47252 100755 --- a/ports/common/subports +++ b/ports/common/subports @@ -1,4 +1,8 @@ #!/bin/sh +# +# SPDX-License-Identifier: LGPL-2.1-only +# + case $(uname -s) in Linux) echo "linux";; Darwin) echo "darwin";; 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 */ 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. diff --git a/ports/uids_generic/guts/COPYRIGHT b/ports/uids_generic/guts/COPYRIGHT index c96e1b1..b860a36 100644 --- a/ports/uids_generic/guts/COPYRIGHT +++ b/ports/uids_generic/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/uids_generic/guts/endgrent.c b/ports/uids_generic/guts/endgrent.c index 843cad0..8ddbb99 100644 --- a/ports/uids_generic/guts/endgrent.c +++ b/ports/uids_generic/guts/endgrent.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static void * wrap_endgrent(void) { * diff --git a/ports/uids_generic/guts/endpwent.c b/ports/uids_generic/guts/endpwent.c index f76cf10..92947ea 100644 --- a/ports/uids_generic/guts/endpwent.c +++ b/ports/uids_generic/guts/endpwent.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static void * wrap_endpwent(void) { * diff --git a/ports/uids_generic/guts/getegid.c b/ports/uids_generic/guts/getegid.c index 7c14f48..56e9d44 100644 --- a/ports/uids_generic/guts/getegid.c +++ b/ports/uids_generic/guts/getegid.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 gid_t * wrap_getegid(void) { * gid_t rc = 0; diff --git a/ports/uids_generic/guts/geteuid.c b/ports/uids_generic/guts/geteuid.c index 1745e13..276a51d 100644 --- a/ports/uids_generic/guts/geteuid.c +++ b/ports/uids_generic/guts/geteuid.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 uid_t * wrap_geteuid(void) { * uid_t rc = 0; diff --git a/ports/uids_generic/guts/getgid.c b/ports/uids_generic/guts/getgid.c index ca8bad3..43e18d0 100644 --- a/ports/uids_generic/guts/getgid.c +++ b/ports/uids_generic/guts/getgid.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 gid_t * wrap_getgid(void) { * gid_t rc = 0; diff --git a/ports/uids_generic/guts/getgrent.c b/ports/uids_generic/guts/getgrent.c index d6592e6..ff0051b 100644 --- a/ports/uids_generic/guts/getgrent.c +++ b/ports/uids_generic/guts/getgrent.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static struct group * * wrap_getgrent(void) { * struct group * rc = NULL; diff --git a/ports/uids_generic/guts/getgrgid.c b/ports/uids_generic/guts/getgrgid.c index 0d3dafb..29af413 100644 --- a/ports/uids_generic/guts/getgrgid.c +++ b/ports/uids_generic/guts/getgrgid.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static struct group * * wrap_getgrgid(gid_t gid) { * struct group * rc = NULL; diff --git a/ports/uids_generic/guts/getgrgid_r.c b/ports/uids_generic/guts/getgrgid_r.c index b043995..0c5ae44 100644 --- a/ports/uids_generic/guts/getgrgid_r.c +++ b/ports/uids_generic/guts/getgrgid_r.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_getgrgid_r(gid_t gid, struct group *gbuf, char *buf, size_t buflen, struct group **gbufp) { * int rc = -1; diff --git a/ports/uids_generic/guts/getgrnam.c b/ports/uids_generic/guts/getgrnam.c index 19006ad..7644e3a 100644 --- a/ports/uids_generic/guts/getgrnam.c +++ b/ports/uids_generic/guts/getgrnam.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static struct group * * wrap_getgrnam(const char *name) { * struct group * rc = NULL; diff --git a/ports/uids_generic/guts/getgrnam_r.c b/ports/uids_generic/guts/getgrnam_r.c index 39de641..e2196ef 100644 --- a/ports/uids_generic/guts/getgrnam_r.c +++ b/ports/uids_generic/guts/getgrnam_r.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_getgrnam_r(const char *name, struct group *gbuf, char *buf, size_t buflen, struct group **gbufp) { * int rc = -1; diff --git a/ports/uids_generic/guts/getpwent.c b/ports/uids_generic/guts/getpwent.c index 3b1f837..a860e7e 100644 --- a/ports/uids_generic/guts/getpwent.c +++ b/ports/uids_generic/guts/getpwent.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static struct passwd * * wrap_getpwent(void) { * struct passwd * rc = NULL; diff --git a/ports/uids_generic/guts/getpwnam.c b/ports/uids_generic/guts/getpwnam.c index 024b3d8..0f99038 100644 --- a/ports/uids_generic/guts/getpwnam.c +++ b/ports/uids_generic/guts/getpwnam.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static struct passwd * * wrap_getpwnam(const char *name) { * struct passwd * rc = NULL; diff --git a/ports/uids_generic/guts/getpwnam_r.c b/ports/uids_generic/guts/getpwnam_r.c index 5d7a4ea..cb9f2c6 100644 --- a/ports/uids_generic/guts/getpwnam_r.c +++ b/ports/uids_generic/guts/getpwnam_r.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_getpwnam_r(const char *name, struct passwd *pwbuf, char *buf, size_t buflen, struct passwd **pwbufp) { * int rc = -1; diff --git a/ports/uids_generic/guts/getpwuid.c b/ports/uids_generic/guts/getpwuid.c index 11142de..315647c 100644 --- a/ports/uids_generic/guts/getpwuid.c +++ b/ports/uids_generic/guts/getpwuid.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static struct passwd * * wrap_getpwuid(uid_t uid) { * struct passwd * rc = NULL; diff --git a/ports/uids_generic/guts/getpwuid_r.c b/ports/uids_generic/guts/getpwuid_r.c index 06b920e..bfeb649 100644 --- a/ports/uids_generic/guts/getpwuid_r.c +++ b/ports/uids_generic/guts/getpwuid_r.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_getpwuid_r(uid_t uid, struct passwd *pwbuf, char *buf, size_t buflen, struct passwd **pwbufp) { * int rc = -1; diff --git a/ports/uids_generic/guts/getuid.c b/ports/uids_generic/guts/getuid.c index e783cc8..3945836 100644 --- a/ports/uids_generic/guts/getuid.c +++ b/ports/uids_generic/guts/getuid.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 uid_t * wrap_getuid(void) { * uid_t rc = 0; diff --git a/ports/uids_generic/guts/setegid.c b/ports/uids_generic/guts/setegid.c index ff777a0..d6ddca7 100644 --- a/ports/uids_generic/guts/setegid.c +++ b/ports/uids_generic/guts/setegid.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_setegid(gid_t egid) { * int rc = -1; diff --git a/ports/uids_generic/guts/seteuid.c b/ports/uids_generic/guts/seteuid.c index 430768f..032e5f1 100644 --- a/ports/uids_generic/guts/seteuid.c +++ b/ports/uids_generic/guts/seteuid.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_seteuid(uid_t euid) { * int rc = -1; diff --git a/ports/uids_generic/guts/setgid.c b/ports/uids_generic/guts/setgid.c index b94db1a..c5746f9 100644 --- a/ports/uids_generic/guts/setgid.c +++ b/ports/uids_generic/guts/setgid.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_setgid(gid_t gid) { * int rc = -1; diff --git a/ports/uids_generic/guts/setgrent.c b/ports/uids_generic/guts/setgrent.c index 75aab61..97faec0 100644 --- a/ports/uids_generic/guts/setgrent.c +++ b/ports/uids_generic/guts/setgrent.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static void * wrap_setgrent(void) { * diff --git a/ports/uids_generic/guts/setpwent.c b/ports/uids_generic/guts/setpwent.c index fb35e07..53661fd 100644 --- a/ports/uids_generic/guts/setpwent.c +++ b/ports/uids_generic/guts/setpwent.c @@ -2,6 +2,8 @@ * Copyright (c) 2010 Wind River Systems; see * guts/COPYRIGHT for information. * + * SPDX-License-Identifier: LGPL-2.1-only + * * static void * wrap_setpwent(void) { * diff --git a/ports/uids_generic/guts/setregid.c b/ports/uids_generic/guts/setregid.c index 78b2037..865553f 100644 --- a/ports/uids_generic/guts/setregid.c +++ b/ports/uids_generic/guts/setregid.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_setregid(gid_t rgid, gid_t egid) { * int rc = -1; diff --git a/ports/uids_generic/guts/setreuid.c b/ports/uids_generic/guts/setreuid.c index 3ff82ab..d189d65 100644 --- a/ports/uids_generic/guts/setreuid.c +++ b/ports/uids_generic/guts/setreuid.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_setreuid(uid_t ruid, uid_t euid) { * int rc = -1; diff --git a/ports/uids_generic/guts/setuid.c b/ports/uids_generic/guts/setuid.c index 6bfdf6c..831f8ff 100644 --- a/ports/uids_generic/guts/setuid.c +++ b/ports/uids_generic/guts/setuid.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_setuid(uid_t uid) { * int rc = -1; 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; */ @@ -3,18 +3,7 @@ * * Copyright (c) 2008-2013 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 * */ #include <stdlib.h> @@ -3,18 +3,7 @@ * * Copyright (c) 2008-2010, 2013 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 * */ #include <stdlib.h> diff --git a/pseudo_client.c b/pseudo_client.c index 5604cbf..478e450 100644 --- a/pseudo_client.c +++ b/pseudo_client.c @@ -3,18 +3,7 @@ * * Copyright (c) 2008-2013 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 * */ #define _GNU_SOURCE diff --git a/pseudo_client.h b/pseudo_client.h index 28b23dc..457b095 100644 --- a/pseudo_client.h +++ b/pseudo_client.h @@ -3,18 +3,7 @@ * * 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 * */ extern pseudo_msg_t *pseudo_client_op(pseudo_op_t op, int access, int fd, int dirfd, const char *path, const PSEUDO_STATBUF *buf, ...); diff --git a/pseudo_db.c b/pseudo_db.c index d7b28f1..92e4f50 100644 --- a/pseudo_db.c +++ b/pseudo_db.c @@ -3,18 +3,7 @@ * * Copyright (c) 2008-2010,2013 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 * */ #include <stdio.h> diff --git a/pseudo_db.h b/pseudo_db.h index 1b2599c..5a4aa59 100644 --- a/pseudo_db.h +++ b/pseudo_db.h @@ -3,18 +3,7 @@ * * 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 * */ typedef struct { diff --git a/pseudo_ipc.c b/pseudo_ipc.c index 3571dad..838eba2 100644 --- a/pseudo_ipc.c +++ b/pseudo_ipc.c @@ -3,18 +3,7 @@ * * 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 * */ #include <stddef.h> diff --git a/pseudo_ipc.h b/pseudo_ipc.h index 46277bc..caeae5c 100644 --- a/pseudo_ipc.h +++ b/pseudo_ipc.h @@ -3,18 +3,7 @@ * * 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/pseudo_profile.c b/pseudo_profile.c index c4af803..c4b16e6 100644 --- a/pseudo_profile.c +++ b/pseudo_profile.c @@ -1,3 +1,7 @@ +/* + * SPDX-License-Identifier: LGPL-2.1-only + * + */ #define _GNU_SOURCE #include <errno.h> diff --git a/pseudo_server.c b/pseudo_server.c index d4428cf..898aab4 100644 --- a/pseudo_server.c +++ b/pseudo_server.c @@ -3,18 +3,7 @@ * * Copyright (c) 2008-2010, 2013 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 * */ #include <stdio.h> diff --git a/pseudo_server.h b/pseudo_server.h index 06598e7..35f5b78 100644 --- a/pseudo_server.h +++ b/pseudo_server.h @@ -3,18 +3,7 @@ * * Copyright (c) 2008-2009 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 * */ extern int pseudo_server_start(int); diff --git a/pseudo_util.c b/pseudo_util.c index b46417d..c867ed6 100644 --- a/pseudo_util.c +++ b/pseudo_util.c @@ -3,18 +3,7 @@ * * Copyright (c) 2008-2013 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 access to RTLD_NEXT for a horrible workaround */ diff --git a/pseudo_wrappers.c b/pseudo_wrappers.c index e05f73a..99aabff 100644 --- a/pseudo_wrappers.c +++ b/pseudo_wrappers.c @@ -3,18 +3,7 @@ * * Copyright (c) 2008-2012 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 * */ #include <assert.h> @@ -3,18 +3,7 @@ * * 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 * */ #include <stdio.h> diff --git a/pseudolog.c b/pseudolog.c index ced421d..1101f28 100644 --- a/pseudolog.c +++ b/pseudolog.c @@ -3,18 +3,7 @@ * * 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 * */ /* We need _XOPEN_SOURCE for strptime(), but if we define that, diff --git a/run_tests.sh b/run_tests.sh index 0eced9f..c637c27 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,4 +1,8 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1-only +# + opt_verbose= usage() diff --git a/templatefile.py b/templatefile.py index abf9a2c..be82de3 100644 --- a/templatefile.py +++ b/templatefile.py @@ -1,3 +1,7 @@ +# +# SPDX-License-Identifier: LGPL-2.1-only +# + from string import Template import os diff --git a/templates/guts b/templates/guts index 70607e6..05605ea 100644 --- a/templates/guts +++ b/templates/guts @@ -8,6 +8,8 @@ * [Note: copyright added by code generator, may be * incorrect. Remove this if you fix it.] * + * SPDX-License-Identifier: LGPL-2.1-only + * * ${comment} * ${rc_decl} */ diff --git a/test/test-chroot.sh b/test/test-chroot.sh index 02c9ff6..faa4ffe 100755 --- a/test/test-chroot.sh +++ b/test/test-chroot.sh @@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1-only +# # Return vals: 2 - invalid arg list # 1 - chroot failed diff --git a/test/test-cp-setuid.sh b/test/test-cp-setuid.sh index cdb2cd3..0759608 100755 --- a/test/test-cp-setuid.sh +++ b/test/test-cp-setuid.sh @@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1-only +# set -e # Verify that special bits (setuid/setgid/sticky) are preserved. diff --git a/test/test-dir-move.sh b/test/test-dir-move.sh index 37182f3..7bb0256 100755 --- a/test/test-dir-move.sh +++ b/test/test-dir-move.sh @@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1-only +# mkdir d1 touch d1/f1 mv d1 d2 diff --git a/test/test-env_i.sh b/test/test-env_i.sh index c38cf1d..454a7b4 100755 --- a/test/test-env_i.sh +++ b/test/test-env_i.sh @@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1-only +# env -i A=A B=B C=C env | grep -q "PSEUDO_" diff --git a/test/test-execl.sh b/test/test-execl.sh index 1a1c580..134055b 100755 --- a/test/test-execl.sh +++ b/test/test-execl.sh @@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1-only +# cat > execl_test.c << EOF #include <unistd.h> int main() { diff --git a/test/test-pseudo_disable-fork-env_i.sh b/test/test-pseudo_disable-fork-env_i.sh index 1e679aa..0bcf797 100755 --- a/test/test-pseudo_disable-fork-env_i.sh +++ b/test/test-pseudo_disable-fork-env_i.sh @@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1-only +# # Verify normal operation... uid=`env -i id -u` diff --git a/test/test-pseudo_disable-fork.sh b/test/test-pseudo_disable-fork.sh index 13a42a4..e0f5fd3 100755 --- a/test/test-pseudo_disable-fork.sh +++ b/test/test-pseudo_disable-fork.sh @@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1-only +# # Verify normal operation... uid=`id -u` diff --git a/test/test-pseudo_unload-fork-env_i.sh b/test/test-pseudo_unload-fork-env_i.sh index d6658e0..0e89ba0 100755 --- a/test/test-pseudo_unload-fork-env_i.sh +++ b/test/test-pseudo_unload-fork-env_i.sh @@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1-only +# # Verify normal operation... uid=`env -i id -u` diff --git a/test/test-pseudo_unload-fork.sh b/test/test-pseudo_unload-fork.sh index 9f79198..822f478 100755 --- a/test/test-pseudo_unload-fork.sh +++ b/test/test-pseudo_unload-fork.sh @@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1-only +# # Verify normal operation... uid=`id -u` diff --git a/test/test-reexec-chroot.sh b/test/test-reexec-chroot.sh index bde93f1..f6412bc 100755 --- a/test/test-reexec-chroot.sh +++ b/test/test-reexec-chroot.sh @@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1-only +# # Test if we re-invoke pseudo that chroot still works diff --git a/test/test-tclsh-fork.sh b/test/test-tclsh-fork.sh index e9dec66..e06f36b 100755 --- a/test/test-tclsh-fork.sh +++ b/test/test-tclsh-fork.sh @@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1-only +# # Check that tclsh doesn't hang. Note that the timeout is not needed to # reproduce the hang in tclsh, it's only there to ensure that this test script diff --git a/test/test-umask.sh b/test/test-umask.sh index 8ca4963..e4e366b 100755 --- a/test/test-umask.sh +++ b/test/test-umask.sh @@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1-only +# mode() { ls -l "$1" | awk '{ print $1 }' diff --git a/test/test-xattr.sh b/test/test-xattr.sh index 7d818d2..09cd6b0 100755 --- a/test/test-xattr.sh +++ b/test/test-xattr.sh @@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1-only +# # Return vals: 2 - Unable to run xattr commands # 1 - Invalid return value |