From 69e188067616d258cdafa5a8a4ac6f03945090a8 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 19 May 2022 23:08:13 +0300 Subject: Refine copyright terms in GPL source files The GPL terms are copied from COPYING file. * src/atomic_ops_malloc.c: Refine GPL copyright text in the header comment by copying it as-is from COPYING file (as recommended in "Apply These Terms to Your New Programs" section). * src/atomic_ops_stack.c: Likewise. * tests/list_atomic.template: Likewise. * tests/run_parallel.h: Likewise. * tests/test_atomic.c: Likewise. * tests/test_atomic_include.template: Likewise. * tests/test_malloc.c: Likewise. * tests/test_stack.c: Likewise. * tests/test_atomic_include.h: Regenerate. --- src/atomic_ops_malloc.c | 19 ++++-- src/atomic_ops_stack.c | 19 ++++-- tests/list_atomic.template | 15 ++++- tests/run_parallel.h | 15 ++++- tests/test_atomic.c | 19 ++++-- tests/test_atomic_include.h | 135 ++++++++++++++++++++++++++++++++----- tests/test_atomic_include.template | 15 ++++- tests/test_malloc.c | 19 ++++-- tests/test_stack.c | 19 ++++-- 9 files changed, 216 insertions(+), 59 deletions(-) diff --git a/src/atomic_ops_malloc.c b/src/atomic_ops_malloc.c index fc4fbaa..595ec83 100644 --- a/src/atomic_ops_malloc.c +++ b/src/atomic_ops_malloc.c @@ -1,14 +1,19 @@ /* * Copyright (c) 2005 Hewlett-Packard Development Company, L.P. * - * This file may be redistributed and/or modified under the - * terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2, or (at your option) any later version. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * It 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 General Public License in the - * file COPYING for more details. + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #if defined(HAVE_CONFIG_H) diff --git a/src/atomic_ops_stack.c b/src/atomic_ops_stack.c index 2e8626a..e8cd96f 100644 --- a/src/atomic_ops_stack.c +++ b/src/atomic_ops_stack.c @@ -1,14 +1,19 @@ /* * Copyright (c) 2005 Hewlett-Packard Development Company, L.P. * - * This file may be redistributed and/or modified under the - * terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2, or (at your option) any later version. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * It 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 General Public License in the - * file COPYING for more details. + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #if defined(HAVE_CONFIG_H) diff --git a/tests/list_atomic.template b/tests/list_atomic.template index 26a13f4..dbdc231 100644 --- a/tests/list_atomic.template +++ b/tests/list_atomic.template @@ -1,8 +1,19 @@ /* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. * - * This file is covered by the GNU general public license, version 2. - * see COPYING for details. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* This generates a compilable program. But it is really meant to be */ diff --git a/tests/run_parallel.h b/tests/run_parallel.h index 376b3c7..97e29cb 100644 --- a/tests/run_parallel.h +++ b/tests/run_parallel.h @@ -1,8 +1,19 @@ /* * Copyright (c) 2003-2005 Hewlett-Packard Development Company, L.P. * - * This file is covered by the GNU general public license, version 2. - * see COPYING for details. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #if defined(_MSC_VER) || \ diff --git a/tests/test_atomic.c b/tests/test_atomic.c index a905308..e773b26 100644 --- a/tests/test_atomic.c +++ b/tests/test_atomic.c @@ -1,14 +1,19 @@ /* * Copyright (c) 2003-2005 Hewlett-Packard Development Company, L.P. * - * This file may be redistributed and/or modified under the - * terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2, or (at your option) any later version. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * It 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 General Public License in the - * file COPYING for more details. + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #if defined(HAVE_CONFIG_H) diff --git a/tests/test_atomic_include.h b/tests/test_atomic_include.h index 2ec6396..a60bbb9 100644 --- a/tests/test_atomic_include.h +++ b/tests/test_atomic_include.h @@ -1,8 +1,19 @@ /* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. * - * This file is covered by the GNU general public license, version 2. - * see COPYING for details. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Some basic sanity tests. These do not test the barrier semantics. */ @@ -586,8 +597,19 @@ void test_atomic(void) /* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. * - * This file is covered by the GNU general public license, version 2. - * see COPYING for details. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Some basic sanity tests. These do not test the barrier semantics. */ @@ -1171,8 +1193,19 @@ void test_atomic_release(void) /* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. * - * This file is covered by the GNU general public license, version 2. - * see COPYING for details. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Some basic sanity tests. These do not test the barrier semantics. */ @@ -1756,8 +1789,19 @@ void test_atomic_acquire(void) /* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. * - * This file is covered by the GNU general public license, version 2. - * see COPYING for details. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Some basic sanity tests. These do not test the barrier semantics. */ @@ -2341,8 +2385,19 @@ void test_atomic_read(void) /* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. * - * This file is covered by the GNU general public license, version 2. - * see COPYING for details. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Some basic sanity tests. These do not test the barrier semantics. */ @@ -2926,8 +2981,19 @@ void test_atomic_write(void) /* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. * - * This file is covered by the GNU general public license, version 2. - * see COPYING for details. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Some basic sanity tests. These do not test the barrier semantics. */ @@ -3511,8 +3577,19 @@ void test_atomic_full(void) /* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. * - * This file is covered by the GNU general public license, version 2. - * see COPYING for details. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Some basic sanity tests. These do not test the barrier semantics. */ @@ -4096,8 +4173,19 @@ void test_atomic_release_write(void) /* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. * - * This file is covered by the GNU general public license, version 2. - * see COPYING for details. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Some basic sanity tests. These do not test the barrier semantics. */ @@ -4681,8 +4769,19 @@ void test_atomic_acquire_read(void) /* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. * - * This file is covered by the GNU general public license, version 2. - * see COPYING for details. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Some basic sanity tests. These do not test the barrier semantics. */ diff --git a/tests/test_atomic_include.template b/tests/test_atomic_include.template index e246b66..fc2c470 100644 --- a/tests/test_atomic_include.template +++ b/tests/test_atomic_include.template @@ -1,8 +1,19 @@ /* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. * - * This file is covered by the GNU general public license, version 2. - * see COPYING for details. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* Some basic sanity tests. These do not test the barrier semantics. */ diff --git a/tests/test_malloc.c b/tests/test_malloc.c index 45a8c2c..7a0b421 100644 --- a/tests/test_malloc.c +++ b/tests/test_malloc.c @@ -1,14 +1,19 @@ /* * Copyright (c) 2005 Hewlett-Packard Development Company, L.P. * - * This file may be redistributed and/or modified under the - * terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2, or (at your option) any later version. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * It 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 General Public License in the - * file COPYING for more details. + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #if defined(HAVE_CONFIG_H) diff --git a/tests/test_stack.c b/tests/test_stack.c index 367cda5..4f9bfbe 100644 --- a/tests/test_stack.c +++ b/tests/test_stack.c @@ -1,14 +1,19 @@ /* * Copyright (c) 2005 Hewlett-Packard Development Company, L.P. * - * This file may be redistributed and/or modified under the - * terms of the GNU General Public License as published by the Free Software - * Foundation; either version 2, or (at your option) any later version. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * - * It 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 General Public License in the - * file COPYING for more details. + * 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #if defined(HAVE_CONFIG_H) -- cgit v1.2.1