From c1912df285f9c5517e88dd31fb1181e07e15186b Mon Sep 17 00:00:00 2001 From: Himanshu40 Date: Thu, 13 Dec 2018 23:43:31 +0530 Subject: psxhdrs: Changed the copyright license to BSD-2-Clause (GCI 2018) --- testsuites/psxtests/psxhdrs/dirent/alphasort.c | 59 +++++++++++++---------- testsuites/psxtests/psxhdrs/dirent/closedir.c | 59 +++++++++++++---------- testsuites/psxtests/psxhdrs/dirent/dirfd.c | 59 +++++++++++++---------- testsuites/psxtests/psxhdrs/dirent/fdopendir.c | 65 +++++++++++++++----------- testsuites/psxtests/psxhdrs/dirent/opendir.c | 55 +++++++++++++--------- testsuites/psxtests/psxhdrs/dirent/readdir.c | 59 +++++++++++++---------- testsuites/psxtests/psxhdrs/dirent/readdir_r.c | 65 +++++++++++++++----------- testsuites/psxtests/psxhdrs/dirent/rewinddir.c | 57 +++++++++++++--------- testsuites/psxtests/psxhdrs/dirent/scandir.c | 57 +++++++++++++--------- testsuites/psxtests/psxhdrs/dirent/seekdir.c | 61 ++++++++++++++---------- testsuites/psxtests/psxhdrs/dirent/telldir.c | 59 +++++++++++++---------- 11 files changed, 388 insertions(+), 267 deletions(-) (limited to 'testsuites/psxtests/psxhdrs/dirent') diff --git a/testsuites/psxtests/psxhdrs/dirent/alphasort.c b/testsuites/psxtests/psxhdrs/dirent/alphasort.c index 1906066601..067ce89180 100644 --- a/testsuites/psxtests/psxhdrs/dirent/alphasort.c +++ b/testsuites/psxtests/psxhdrs/dirent/alphasort.c @@ -4,36 +4,47 @@ */ /* - * COPYRIGHT (c) 2018. - * Himanshu Sekhar Nayak + * SPDX-License-Identifier: BSD-2-Clause * - * Permission to use, copy, modify, and/or distribute this software - * for any purpose with or without fee is hereby granted. + * Copyright (C) 2018, Himanshu Sekhar Nayak * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL - * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR - * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES - * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, - * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, - * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ - #ifdef HAVE_CONFIG_H - #include "config.h" - #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif - #include +#include - int test( void ); +int test( void ); - int test( void ) - { - const struct dirent **d1 = NULL; - const struct dirent **d2 = NULL; - int result; +int test( void ) +{ + const struct dirent **d1 = NULL; + const struct dirent **d2 = NULL; + int result; - result = alphasort( d1, d2 ); + result = alphasort( d1, d2 ); - return result; - } + return result; +} diff --git a/testsuites/psxtests/psxhdrs/dirent/closedir.c b/testsuites/psxtests/psxhdrs/dirent/closedir.c index e213313276..5b817b8c07 100644 --- a/testsuites/psxtests/psxhdrs/dirent/closedir.c +++ b/testsuites/psxtests/psxhdrs/dirent/closedir.c @@ -4,36 +4,47 @@ */ /* - * COPYRIGHT (c) 2018. - * Himanshu Sekhar Nayak + * SPDX-License-Identifier: BSD-2-Clause * - * Permission to use, copy, modify, and/or distribute this software - * for any purpose with or without fee is hereby granted. + * Copyright (C) 2018, Himanshu Sekhar Nayak * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL - * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR - * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES - * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, - * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, - * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ - #ifdef HAVE_CONFIG_H - #include "config.h" - #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif - #include +#include - int test( void ); +int test( void ); - int test( void ) - { - DIR *dir; - int result; +int test( void ) +{ + DIR *dir; + int result; - dir = opendir( "/" ); - result = closedir( dir ); + dir = opendir( "/" ); + result = closedir( dir ); - return result; - } + return result; +} diff --git a/testsuites/psxtests/psxhdrs/dirent/dirfd.c b/testsuites/psxtests/psxhdrs/dirent/dirfd.c index 01076a05b1..8c83308bea 100644 --- a/testsuites/psxtests/psxhdrs/dirent/dirfd.c +++ b/testsuites/psxtests/psxhdrs/dirent/dirfd.c @@ -4,36 +4,47 @@ */ /* - * COPYRIGHT (c) 2018. - * Himanshu Sekhar Nayak + * SPDX-License-Identifier: BSD-2-Clause * - * Permission to use, copy, modify, and/or distribute this software - * for any purpose with or without fee is hereby granted. + * Copyright (C) 2018, Himanshu Sekhar Nayak * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL - * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR - * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES - * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, - * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, - * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ - #ifdef HAVE_CONFIG_H - #include "config.h" - #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif - #include +#include - int test( void ); +int test( void ); - int test( void ) - { - DIR *dirp; - int result; +int test( void ) +{ + DIR *dirp; + int result; - dirp = opendir( "/" ); - result = dirfd( dirp ); + dirp = opendir( "/" ); + result = dirfd( dirp ); - return result; - } + return result; +} diff --git a/testsuites/psxtests/psxhdrs/dirent/fdopendir.c b/testsuites/psxtests/psxhdrs/dirent/fdopendir.c index 0b346f380c..e78f68bdba 100644 --- a/testsuites/psxtests/psxhdrs/dirent/fdopendir.c +++ b/testsuites/psxtests/psxhdrs/dirent/fdopendir.c @@ -4,39 +4,50 @@ */ /* - * COPYRIGHT (c) 2018. - * Himanshu Sekhar Nayak + * SPDX-License-Identifier: BSD-2-Clause * - * Permission to use, copy, modify, and/or distribute this software - * for any purpose with or without fee is hereby granted. + * Copyright (C) 2018, Himanshu Sekhar Nayak * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL - * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR - * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES - * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, - * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, - * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ - #ifdef HAVE_CONFIG_H - #include "config.h" - #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif - #include - #include - #include - #include +#include +#include +#include +#include - int test( void ); +int test( void ); - int test( void ) - { - int fd; - DIR *result; +int test( void ) +{ + int fd; + DIR *result; - fd = open( "./", O_RDONLY ); - result = fdopendir( fd ); + fd = open( "./", O_RDONLY ); + result = fdopendir( fd ); - return ( result != NULL ); - } + return ( result != NULL ); +} diff --git a/testsuites/psxtests/psxhdrs/dirent/opendir.c b/testsuites/psxtests/psxhdrs/dirent/opendir.c index b60d4d9487..8ab4d69b26 100644 --- a/testsuites/psxtests/psxhdrs/dirent/opendir.c +++ b/testsuites/psxtests/psxhdrs/dirent/opendir.c @@ -4,34 +4,45 @@ */ /* - * COPYRIGHT (c) 2018. - * Himanshu Sekhar Nayak + * SPDX-License-Identifier: BSD-2-Clause * - * Permission to use, copy, modify, and/or distribute this software - * for any purpose with or without fee is hereby granted. + * Copyright (C) 2018, Himanshu Sekhar Nayak * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL - * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR - * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES - * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, - * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, - * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ - #ifdef HAVE_CONFIG_H - #include "config.h" - #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif - #include +#include - int test( void ); +int test( void ); - int test( void ) - { - DIR *dir; +int test( void ) +{ + DIR *dir; - dir = opendir( "/" ); + dir = opendir( "/" ); - return ( dir != NULL ); - } + return ( dir != NULL ); +} diff --git a/testsuites/psxtests/psxhdrs/dirent/readdir.c b/testsuites/psxtests/psxhdrs/dirent/readdir.c index 5c1e2e0118..bb37cbe12a 100644 --- a/testsuites/psxtests/psxhdrs/dirent/readdir.c +++ b/testsuites/psxtests/psxhdrs/dirent/readdir.c @@ -4,36 +4,47 @@ */ /* - * COPYRIGHT (c) 2018. - * Himanshu Sekhar Nayak + * SPDX-License-Identifier: BSD-2-Clause * - * Permission to use, copy, modify, and/or distribute this software - * for any purpose with or without fee is hereby granted. + * Copyright (C) 2018, Himanshu Sekhar Nayak * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL - * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR - * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES - * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, - * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, - * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ - #ifdef HAVE_CONFIG_H - #include "config.h" - #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif - #include +#include - int test( void ); +int test( void ); - int test( void ) - { - DIR *dirp; - struct dirent *result; +int test( void ) +{ + DIR *dirp; + struct dirent *result; - dirp = opendir( "/" ); - result = readdir( dirp ); + dirp = opendir( "/" ); + result = readdir( dirp ); - return ( result != NULL ); - } + return ( result != NULL ); +} diff --git a/testsuites/psxtests/psxhdrs/dirent/readdir_r.c b/testsuites/psxtests/psxhdrs/dirent/readdir_r.c index 0d26cc4edb..503033619b 100644 --- a/testsuites/psxtests/psxhdrs/dirent/readdir_r.c +++ b/testsuites/psxtests/psxhdrs/dirent/readdir_r.c @@ -4,39 +4,50 @@ */ /* - * COPYRIGHT (c) 2018. - * Himanshu Sekhar Nayak + * SPDX-License-Identifier: BSD-2-Clause * - * Permission to use, copy, modify, and/or distribute this software - * for any purpose with or without fee is hereby granted. + * Copyright (C) 2018, Himanshu Sekhar Nayak * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL - * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR - * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES - * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, - * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, - * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ - #ifdef HAVE_CONFIG_H - #include "config.h" - #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif - #include +#include - int test( void ); +int test( void ); - int test( void ) - { - DIR *dirp; - struct dirent *entry = NULL; - struct dirent *result = NULL; - int pass; +int test( void ) +{ + DIR *dirp; + struct dirent *entry = NULL; + struct dirent *result = NULL; + int pass; - dirp = opendir( "/" ); - entry = readdir(dirp); - pass = readdir_r( dirp, entry, &result); + dirp = opendir( "/" ); + entry = readdir(dirp); + pass = readdir_r( dirp, entry, &result); - return pass; - } + return pass; +} diff --git a/testsuites/psxtests/psxhdrs/dirent/rewinddir.c b/testsuites/psxtests/psxhdrs/dirent/rewinddir.c index 1fd29030e4..58e366a2a3 100644 --- a/testsuites/psxtests/psxhdrs/dirent/rewinddir.c +++ b/testsuites/psxtests/psxhdrs/dirent/rewinddir.c @@ -4,35 +4,46 @@ */ /* - * COPYRIGHT (c) 2018. - * Himanshu Sekhar Nayak + * SPDX-License-Identifier: BSD-2-Clause * - * Permission to use, copy, modify, and/or distribute this software - * for any purpose with or without fee is hereby granted. + * Copyright (C) 2018, Himanshu Sekhar Nayak * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL - * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR - * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES - * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, - * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, - * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ - #ifdef HAVE_CONFIG_H - #include "config.h" - #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif - #include +#include - int test( void ); +int test( void ); - int test( void ) - { - DIR *dirp; +int test( void ) +{ + DIR *dirp; - dirp = opendir( "/" ); - rewinddir( dirp ); + dirp = opendir( "/" ); + rewinddir( dirp ); - return ( dirp != NULL ); - } + return ( dirp != NULL ); +} diff --git a/testsuites/psxtests/psxhdrs/dirent/scandir.c b/testsuites/psxtests/psxhdrs/dirent/scandir.c index dc553d8bc1..45376e0c32 100644 --- a/testsuites/psxtests/psxhdrs/dirent/scandir.c +++ b/testsuites/psxtests/psxhdrs/dirent/scandir.c @@ -4,35 +4,46 @@ */ /* - * COPYRIGHT (c) 2018. - * Himanshu Sekhar Nayak + * SPDX-License-Identifier: BSD-2-Clause * - * Permission to use, copy, modify, and/or distribute this software - * for any purpose with or without fee is hereby granted. + * Copyright (C) 2018, Himanshu Sekhar Nayak * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL - * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR - * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES - * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, - * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, - * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ - #ifdef HAVE_CONFIG_H - #include "config.h" - #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif - #include +#include - int test( void ); +int test( void ); - int test( void ) - { - struct dirent **namelist; - int result; +int test( void ) +{ + struct dirent **namelist; + int result; - result = scandir( ".", &namelist, NULL, alphasort ); + result = scandir( ".", &namelist, NULL, alphasort ); - return result; - } + return result; +} diff --git a/testsuites/psxtests/psxhdrs/dirent/seekdir.c b/testsuites/psxtests/psxhdrs/dirent/seekdir.c index 5d263f91c2..051f051ce0 100644 --- a/testsuites/psxtests/psxhdrs/dirent/seekdir.c +++ b/testsuites/psxtests/psxhdrs/dirent/seekdir.c @@ -4,37 +4,48 @@ */ /* - * COPYRIGHT (c) 2018. - * Himanshu Sekhar Nayak + * SPDX-License-Identifier: BSD-2-Clause * - * Permission to use, copy, modify, and/or distribute this software - * for any purpose with or without fee is hereby granted. + * Copyright (C) 2018, Himanshu Sekhar Nayak * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL - * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR - * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES - * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, - * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, - * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ - #ifdef HAVE_CONFIG_H - #include "config.h" - #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif - #include +#include - int test( void ); +int test( void ); - int test( void ) - { - DIR *dirp; - long loc; +int test( void ) +{ + DIR *dirp; + long loc; - dirp = opendir( "/" ); - loc = telldir( dirp ); - seekdir( dirp, loc ); + dirp = opendir( "/" ); + loc = telldir( dirp ); + seekdir( dirp, loc ); - return ( (int)loc ); - } + return ( (int)loc ); +} diff --git a/testsuites/psxtests/psxhdrs/dirent/telldir.c b/testsuites/psxtests/psxhdrs/dirent/telldir.c index e4f0adb3b7..93fc226080 100644 --- a/testsuites/psxtests/psxhdrs/dirent/telldir.c +++ b/testsuites/psxtests/psxhdrs/dirent/telldir.c @@ -4,36 +4,47 @@ */ /* - * COPYRIGHT (c) 2018. - * Himanshu Sekhar Nayak + * SPDX-License-Identifier: BSD-2-Clause * - * Permission to use, copy, modify, and/or distribute this software - * for any purpose with or without fee is hereby granted. + * Copyright (C) 2018, Himanshu Sekhar Nayak * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL - * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR - * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES - * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, - * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, - * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ - #ifdef HAVE_CONFIG_H - #include "config.h" - #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif - #include +#include - int test( void ); +int test( void ); - int test( void ) - { - DIR *dirp; - long loc; +int test( void ) +{ + DIR *dirp; + long loc; - dirp = opendir( "/" ); - loc = telldir( dirp ); + dirp = opendir( "/" ); + loc = telldir( dirp ); - return ( (int)loc ); - } + return ( (int)loc ); +} -- cgit v1.2.3