From eb8dd9dca1228af0cd132f515509051ecfabf6f6 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Mon, 14 Apr 2025 17:32:06 +0000 Subject: This commit was manufactured by cvs2git to create tag 'tb_20250414'. --- src/regress/lib/libc/cxa-atexit/Makefile | 7 --- src/regress/lib/libc/cxa-atexit/libgd1/Makefile | 9 ---- src/regress/lib/libc/cxa-atexit/libgd1/gd1.C | 32 ----------- .../lib/libc/cxa-atexit/libgd1/shlib_version | 2 - src/regress/lib/libc/cxa-atexit/libgd2/Makefile | 9 ---- src/regress/lib/libc/cxa-atexit/libgd2/gd2.C | 32 ----------- .../lib/libc/cxa-atexit/libgd2/shlib_version | 2 - src/regress/lib/libc/cxa-atexit/test1/Makefile | 29 ---------- src/regress/lib/libc/cxa-atexit/test1/test1.C | 63 ---------------------- 9 files changed, 185 deletions(-) delete mode 100644 src/regress/lib/libc/cxa-atexit/Makefile delete mode 100644 src/regress/lib/libc/cxa-atexit/libgd1/Makefile delete mode 100644 src/regress/lib/libc/cxa-atexit/libgd1/gd1.C delete mode 100644 src/regress/lib/libc/cxa-atexit/libgd1/shlib_version delete mode 100644 src/regress/lib/libc/cxa-atexit/libgd2/Makefile delete mode 100644 src/regress/lib/libc/cxa-atexit/libgd2/gd2.C delete mode 100644 src/regress/lib/libc/cxa-atexit/libgd2/shlib_version delete mode 100644 src/regress/lib/libc/cxa-atexit/test1/Makefile delete mode 100644 src/regress/lib/libc/cxa-atexit/test1/test1.C (limited to 'src/regress/lib/libc/cxa-atexit') diff --git a/src/regress/lib/libc/cxa-atexit/Makefile b/src/regress/lib/libc/cxa-atexit/Makefile deleted file mode 100644 index a2821e01d3..0000000000 --- a/src/regress/lib/libc/cxa-atexit/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# $OpenBSD: Makefile,v 1.3 2013/08/06 19:11:53 miod Exp $ - -SUBDIR+= libgd1 libgd2 test1 - -install: - -.include diff --git a/src/regress/lib/libc/cxa-atexit/libgd1/Makefile b/src/regress/lib/libc/cxa-atexit/libgd1/Makefile deleted file mode 100644 index 958b726d28..0000000000 --- a/src/regress/lib/libc/cxa-atexit/libgd1/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -# $OpenBSD: Makefile,v 1.1 2007/09/03 14:42:44 millert Exp $ - -LIB=gd1 -SRCS= gd1.C -NOPROFILE=yes - -regress: all - -.include diff --git a/src/regress/lib/libc/cxa-atexit/libgd1/gd1.C b/src/regress/lib/libc/cxa-atexit/libgd1/gd1.C deleted file mode 100644 index b3ecd56d91..0000000000 --- a/src/regress/lib/libc/cxa-atexit/libgd1/gd1.C +++ /dev/null @@ -1,32 +0,0 @@ -/* $OpenBSD: gd1.C,v 1.1 2007/09/03 14:42:44 millert Exp $ */ - -/* - * Copyright (c) 2007 Kurt Miller - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * 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. - */ - -#include - -extern int check1; - -struct global_destructor_test_obj1 { - inline ~global_destructor_test_obj1() { - check1 = 0; - } -}; - -extern "C" void gd_test1() -{ - static global_destructor_test_obj1 gdt; -} diff --git a/src/regress/lib/libc/cxa-atexit/libgd1/shlib_version b/src/regress/lib/libc/cxa-atexit/libgd1/shlib_version deleted file mode 100644 index 97c9f92d6b..0000000000 --- a/src/regress/lib/libc/cxa-atexit/libgd1/shlib_version +++ /dev/null @@ -1,2 +0,0 @@ -major=0 -minor=0 diff --git a/src/regress/lib/libc/cxa-atexit/libgd2/Makefile b/src/regress/lib/libc/cxa-atexit/libgd2/Makefile deleted file mode 100644 index 7ca21d8bd2..0000000000 --- a/src/regress/lib/libc/cxa-atexit/libgd2/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -# $OpenBSD: Makefile,v 1.1 2007/09/03 14:42:44 millert Exp $ - -LIB=gd2 -SRCS= gd2.C -NOPROFILE=yes - -regress: all - -.include diff --git a/src/regress/lib/libc/cxa-atexit/libgd2/gd2.C b/src/regress/lib/libc/cxa-atexit/libgd2/gd2.C deleted file mode 100644 index 69e7ffb220..0000000000 --- a/src/regress/lib/libc/cxa-atexit/libgd2/gd2.C +++ /dev/null @@ -1,32 +0,0 @@ -/* $OpenBSD: gd2.C,v 1.1 2007/09/03 14:42:44 millert Exp $ */ - -/* - * Copyright (c) 2007 Kurt Miller - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * 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. - */ - -#include - -extern int check2; - -struct global_destructor_test_obj2 { - inline ~global_destructor_test_obj2() { - check2 = 0; - } -}; - -extern "C" void gd_test2() -{ - static global_destructor_test_obj2 gdt; -} diff --git a/src/regress/lib/libc/cxa-atexit/libgd2/shlib_version b/src/regress/lib/libc/cxa-atexit/libgd2/shlib_version deleted file mode 100644 index 97c9f92d6b..0000000000 --- a/src/regress/lib/libc/cxa-atexit/libgd2/shlib_version +++ /dev/null @@ -1,2 +0,0 @@ -major=0 -minor=0 diff --git a/src/regress/lib/libc/cxa-atexit/test1/Makefile b/src/regress/lib/libc/cxa-atexit/test1/Makefile deleted file mode 100644 index 162922b35a..0000000000 --- a/src/regress/lib/libc/cxa-atexit/test1/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# $OpenBSD: Makefile,v 1.2 2015/05/29 04:17:11 miod Exp $ - -.include - -GD1_DIR=${.CURDIR}/../libgd1 -GD1_OBJDIR!= if [ -d $(GD1_DIR)/${__objdir} ]; then \ - echo "$(GD1_DIR)/${__objdir}"; \ - else \ - echo "$(GD1_DIR)"; \ - fi - -GD2_DIR=${.CURDIR}/../libgd2 -GD2_OBJDIR!= if [ -d $(GD2_DIR)/${__objdir} ]; then \ - echo "$(GD2_DIR)/${__objdir}"; \ - else \ - echo "$(GD2_DIR)"; \ - fi - -PROG= test1 - -SRCS= test1.C - -CXXFLAGS+= -DLIBGD1="\"$(GD1_OBJDIR)/libgd1.so\"" -CXXFLAGS+= -DLIBGD2="\"$(GD2_OBJDIR)/libgd2.so\"" -LDFLAGS+= -Wl,-E - -NOMAN= - -.include diff --git a/src/regress/lib/libc/cxa-atexit/test1/test1.C b/src/regress/lib/libc/cxa-atexit/test1/test1.C deleted file mode 100644 index 75fb967a90..0000000000 --- a/src/regress/lib/libc/cxa-atexit/test1/test1.C +++ /dev/null @@ -1,63 +0,0 @@ -/* $OpenBSD: test1.C,v 1.1 2007/09/03 14:42:44 millert Exp $ */ - -/* - * Copyright (c) 2007 Kurt Miller - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * 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. - */ - -#include -#include -#include - -int check1, check2; - -int -main() -{ - void *libgd1, *libgd2; - void (*gd_test)(); - int i; - - for (i=0; i < 50; i++) { - check1 = check2 = 1; - - libgd1 = dlopen(LIBGD1, RTLD_LAZY); - if (libgd1 == NULL) - errx(1, "dlopen(%s, RTLD_LAZY) FAILED\n", LIBGD1); - - gd_test = (void (*)())dlsym(libgd1, "gd_test1"); - if (gd_test == NULL) - errx(1, "dlsym(libgd1, \"gd_test1\") FAILED\n"); - - (*gd_test)(); - - libgd2 = dlopen(LIBGD2, RTLD_LAZY); - if (libgd2 == NULL) - errx(1, "dlopen(%s, RTLD_LAZY) FAILED\n", LIBGD2); - - gd_test = (void (*)())dlsym(libgd2, "gd_test2"); - if (gd_test == NULL) - errx(1, "dlsym(libgd2, \"gd_test2\") FAILED\n"); - - (*gd_test)(); - - dlclose(libgd1); - dlclose(libgd2); - - if (check1 || check2) - errx(1, "global destructors not called\n"); - } - - return (0); -} -- cgit v1.2.3-55-g6feb