From 7c2409fa337c585a7a1bfb6c5b437f55213aa849 Mon Sep 17 00:00:00 2001 From: pgoyette Date: Mon, 27 Dec 2010 03:33:46 +0000 Subject: [PATCH] The ssp tests have moved to atf format in src/tests/lib/libc/ssp/ --- regress/lib/libc/ssp/Makefile | 5 ----- regress/lib/libc/ssp/Makefile.inc | 16 --------------- regress/lib/libc/ssp/fgets/Makefile | 14 ------------- regress/lib/libc/ssp/fgets/fgets.c | 12 ----------- regress/lib/libc/ssp/getcwd/Makefile | 14 ------------- regress/lib/libc/ssp/getcwd/getcwd.c | 14 ------------- regress/lib/libc/ssp/gets/Makefile | 14 ------------- regress/lib/libc/ssp/gets/gets.c | 10 --------- regress/lib/libc/ssp/memcpy/Makefile | 14 ------------- regress/lib/libc/ssp/memcpy/memcpy.c | 14 ------------- regress/lib/libc/ssp/memmove/Makefile | 14 ------------- regress/lib/libc/ssp/memmove/memmove.c | 14 ------------- regress/lib/libc/ssp/memset/Makefile | 14 ------------- regress/lib/libc/ssp/memset/memset.c | 12 ----------- regress/lib/libc/ssp/raw/Makefile | 14 ------------- regress/lib/libc/ssp/raw/raw.c | 22 -------------------- regress/lib/libc/ssp/read/Makefile | 14 ------------- regress/lib/libc/ssp/read/read.c | 14 ------------- regress/lib/libc/ssp/readlink/Makefile | 14 ------------- regress/lib/libc/ssp/readlink/readlink.c | 14 ------------- regress/lib/libc/ssp/snprintf/Makefile | 14 ------------- regress/lib/libc/ssp/snprintf/snprintf.c | 12 ----------- regress/lib/libc/ssp/sprintf/Makefile | 14 ------------- regress/lib/libc/ssp/sprintf/sprintf.c | 10 --------- regress/lib/libc/ssp/strcat/Makefile | 14 ------------- regress/lib/libc/ssp/strcat/strcat.c | 13 ------------ regress/lib/libc/ssp/strcpy/Makefile | 14 ------------- regress/lib/libc/ssp/strcpy/strcpy.c | 12 ----------- regress/lib/libc/ssp/strncat/Makefile | 14 ------------- regress/lib/libc/ssp/strncat/strncat.c | 15 -------------- regress/lib/libc/ssp/strncpy/Makefile | 14 ------------- regress/lib/libc/ssp/strncpy/strncpy.c | 14 ------------- regress/lib/libc/ssp/vsnprintf/Makefile | 14 ------------- regress/lib/libc/ssp/vsnprintf/vsnprintf.c | 24 ---------------------- regress/lib/libc/ssp/vsprintf/Makefile | 14 ------------- regress/lib/libc/ssp/vsprintf/vsprintf.c | 22 -------------------- 36 files changed, 507 deletions(-) delete mode 100644 regress/lib/libc/ssp/Makefile delete mode 100644 regress/lib/libc/ssp/Makefile.inc delete mode 100644 regress/lib/libc/ssp/fgets/Makefile delete mode 100644 regress/lib/libc/ssp/fgets/fgets.c delete mode 100644 regress/lib/libc/ssp/getcwd/Makefile delete mode 100644 regress/lib/libc/ssp/getcwd/getcwd.c delete mode 100644 regress/lib/libc/ssp/gets/Makefile delete mode 100644 regress/lib/libc/ssp/gets/gets.c delete mode 100644 regress/lib/libc/ssp/memcpy/Makefile delete mode 100644 regress/lib/libc/ssp/memcpy/memcpy.c delete mode 100644 regress/lib/libc/ssp/memmove/Makefile delete mode 100644 regress/lib/libc/ssp/memmove/memmove.c delete mode 100644 regress/lib/libc/ssp/memset/Makefile delete mode 100644 regress/lib/libc/ssp/memset/memset.c delete mode 100644 regress/lib/libc/ssp/raw/Makefile delete mode 100644 regress/lib/libc/ssp/raw/raw.c delete mode 100644 regress/lib/libc/ssp/read/Makefile delete mode 100644 regress/lib/libc/ssp/read/read.c delete mode 100644 regress/lib/libc/ssp/readlink/Makefile delete mode 100644 regress/lib/libc/ssp/readlink/readlink.c delete mode 100644 regress/lib/libc/ssp/snprintf/Makefile delete mode 100644 regress/lib/libc/ssp/snprintf/snprintf.c delete mode 100644 regress/lib/libc/ssp/sprintf/Makefile delete mode 100644 regress/lib/libc/ssp/sprintf/sprintf.c delete mode 100644 regress/lib/libc/ssp/strcat/Makefile delete mode 100644 regress/lib/libc/ssp/strcat/strcat.c delete mode 100644 regress/lib/libc/ssp/strcpy/Makefile delete mode 100644 regress/lib/libc/ssp/strcpy/strcpy.c delete mode 100644 regress/lib/libc/ssp/strncat/Makefile delete mode 100644 regress/lib/libc/ssp/strncat/strncat.c delete mode 100644 regress/lib/libc/ssp/strncpy/Makefile delete mode 100644 regress/lib/libc/ssp/strncpy/strncpy.c delete mode 100644 regress/lib/libc/ssp/vsnprintf/Makefile delete mode 100644 regress/lib/libc/ssp/vsnprintf/vsnprintf.c delete mode 100644 regress/lib/libc/ssp/vsprintf/Makefile delete mode 100644 regress/lib/libc/ssp/vsprintf/vsprintf.c diff --git a/regress/lib/libc/ssp/Makefile b/regress/lib/libc/ssp/Makefile deleted file mode 100644 index c37316534729..000000000000 --- a/regress/lib/libc/ssp/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:48 christos Exp $ -SUBDIR= fgets gets getcwd memcpy memmove memset raw read readlink \ - snprintf sprintf strcat strcpy strncat strncpy vsnprintf vsprintf - -.include diff --git a/regress/lib/libc/ssp/Makefile.inc b/regress/lib/libc/ssp/Makefile.inc deleted file mode 100644 index 4d5289ceac52..000000000000 --- a/regress/lib/libc/ssp/Makefile.inc +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile.inc,v 1.3 2007/06/01 17:15:19 martin Exp $ - -WARNS= 4 - -CPPFLAGS+=-D_FORTIFY_SOURCE=2 -CFLAGS+=-fstack-protector-all -Wstack-protector -LDFLAGS+=-fstack-protector-all -Wstack-protector - -# Bootstrap hack - -.ifmake !clean && !obj && !cleandir -.BEGIN: - ${AR} cr libssp_nonshared.a -.endif -CLEANFILES+= libssp_nonshared.a -LDFLAGS+=-L. diff --git a/regress/lib/libc/ssp/fgets/Makefile b/regress/lib/libc/ssp/fgets/Makefile deleted file mode 100644 index 5eec38f088c8..000000000000 --- a/regress/lib/libc/ssp/fgets/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:49 christos Exp $ - -NOMAN= #defined - -.include - -PROG= fgets -SRCS= fgets.c - -regress: ${PROG} - echo ok | ./${PROG} 10 - -(echo busted | ./${PROG} 11) - -.include diff --git a/regress/lib/libc/ssp/fgets/fgets.c b/regress/lib/libc/ssp/fgets/fgets.c deleted file mode 100644 index da1fc5675266..000000000000 --- a/regress/lib/libc/ssp/fgets/fgets.c +++ /dev/null @@ -1,12 +0,0 @@ -#include -#include - -int -main(int argc, char *argv[]) -{ - char b[10]; - int len = atoi(argv[1]); - (void)fgets(b, len, stdin); - (void)printf("%s\n", b); - return 0; -} diff --git a/regress/lib/libc/ssp/getcwd/Makefile b/regress/lib/libc/ssp/getcwd/Makefile deleted file mode 100644 index 24d8af8cab29..000000000000 --- a/regress/lib/libc/ssp/getcwd/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:49 christos Exp $ - -NOMAN= #defined - -.include - -PROG= getcwd -SRCS= getcwd.c - -regress: ${PROG} - ./${PROG} 1024 - -./${PROG} 1025 - -.include diff --git a/regress/lib/libc/ssp/getcwd/getcwd.c b/regress/lib/libc/ssp/getcwd/getcwd.c deleted file mode 100644 index a59a8e116d68..000000000000 --- a/regress/lib/libc/ssp/getcwd/getcwd.c +++ /dev/null @@ -1,14 +0,0 @@ -#include -#include -#include -#include - -int -main(int argc, char *argv[]) -{ - char b[MAXPATHLEN]; - size_t len = atoi(argv[1]); - (void)getcwd(b, len); - (void)printf("%s\n", b); - return 0; -} diff --git a/regress/lib/libc/ssp/gets/Makefile b/regress/lib/libc/ssp/gets/Makefile deleted file mode 100644 index 754d3f7cd057..000000000000 --- a/regress/lib/libc/ssp/gets/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:50 christos Exp $ - -NOMAN= #defined - -.include - -PROG= gets -SRCS= gets.c - -regress: ${PROG} - echo ok | ./${PROG} - -(echo 0123456789 | ./${PROG}) - -.include diff --git a/regress/lib/libc/ssp/gets/gets.c b/regress/lib/libc/ssp/gets/gets.c deleted file mode 100644 index 0a608fde4b65..000000000000 --- a/regress/lib/libc/ssp/gets/gets.c +++ /dev/null @@ -1,10 +0,0 @@ -#include - -int -main(int argc, char *argv[]) -{ - char b[10]; - (void)gets(b); - (void)printf("%s\n", b); - return 0; -} diff --git a/regress/lib/libc/ssp/memcpy/Makefile b/regress/lib/libc/ssp/memcpy/Makefile deleted file mode 100644 index 086b1a41504f..000000000000 --- a/regress/lib/libc/ssp/memcpy/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:50 christos Exp $ - -NOMAN= #defined - -.include - -PROG= memcpy -SRCS= memcpy.c - -regress: ${PROG} - ./${PROG} 10 - -./${PROG} 11 - -.include diff --git a/regress/lib/libc/ssp/memcpy/memcpy.c b/regress/lib/libc/ssp/memcpy/memcpy.c deleted file mode 100644 index 68d6c9fcf2b4..000000000000 --- a/regress/lib/libc/ssp/memcpy/memcpy.c +++ /dev/null @@ -1,14 +0,0 @@ -#include -#include -#include - -int -main(int argc, char *argv[]) -{ - char b[10]; - int len = atoi(argv[1]); - (void)memcpy(b, "1020202020202", len); - - (void)printf("%*.*s\n", len, len, b); - return 0; -} diff --git a/regress/lib/libc/ssp/memmove/Makefile b/regress/lib/libc/ssp/memmove/Makefile deleted file mode 100644 index a68f3e923e21..000000000000 --- a/regress/lib/libc/ssp/memmove/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:50 christos Exp $ - -NOMAN= #defined - -.include - -PROG= memmove -SRCS= memmove.c - -regress: ${PROG} - ./${PROG} 10 - -./${PROG} 11 - -.include diff --git a/regress/lib/libc/ssp/memmove/memmove.c b/regress/lib/libc/ssp/memmove/memmove.c deleted file mode 100644 index c8a7eebbb00a..000000000000 --- a/regress/lib/libc/ssp/memmove/memmove.c +++ /dev/null @@ -1,14 +0,0 @@ -#include -#include -#include - -int -main(int argc, char *argv[]) -{ - char b[10]; - int len = atoi(argv[1]); - (void)memmove(b, "1020202020202", len); - - (void)printf("%*.*s\n", len, len, b); - return 0; -} diff --git a/regress/lib/libc/ssp/memset/Makefile b/regress/lib/libc/ssp/memset/Makefile deleted file mode 100644 index b38a10c7929d..000000000000 --- a/regress/lib/libc/ssp/memset/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:51 christos Exp $ - -NOMAN= #defined - -.include - -PROG= memset -SRCS= memset.c - -regress: ${PROG} - ./${PROG} 10 - -./${PROG} 11 - -.include diff --git a/regress/lib/libc/ssp/memset/memset.c b/regress/lib/libc/ssp/memset/memset.c deleted file mode 100644 index c2a204a6bcef..000000000000 --- a/regress/lib/libc/ssp/memset/memset.c +++ /dev/null @@ -1,12 +0,0 @@ -#include -#include -#include - -int -main(int argc, char *argv[]) -{ - char b[10]; - size_t len = atoi(argv[1]); - (void)memset(b, 0, len); - return 0; -} diff --git a/regress/lib/libc/ssp/raw/Makefile b/regress/lib/libc/ssp/raw/Makefile deleted file mode 100644 index 333e71a965fa..000000000000 --- a/regress/lib/libc/ssp/raw/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:51 christos Exp $ - -NOMAN= #defined - -.include - -PROG= raw -SRCS= raw.c - -regress: ${PROG} - ./${PROG} 9 - -./${PROG} 10 - -.include diff --git a/regress/lib/libc/ssp/raw/raw.c b/regress/lib/libc/ssp/raw/raw.c deleted file mode 100644 index 30c369449c29..000000000000 --- a/regress/lib/libc/ssp/raw/raw.c +++ /dev/null @@ -1,22 +0,0 @@ -#include -#include -#include - -static void raw(char *, size_t); - -static void -raw(char *b, size_t len) { - b[len] = '\0'; -} - -int -main(int argc, char *argv[]) -{ - char b[10]; - size_t len = atoi(argv[1]); - - (void)strncpy(b, "0000000000", sizeof(b)); - raw(b, len); - (void)printf("%s\n", b); - return 0; -} diff --git a/regress/lib/libc/ssp/read/Makefile b/regress/lib/libc/ssp/read/Makefile deleted file mode 100644 index 1ae757b1525d..000000000000 --- a/regress/lib/libc/ssp/read/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:51 christos Exp $ - -NOMAN= #defined - -.include - -PROG= read -SRCS= read.c - -regress: ${PROG} - echo foo | ./${PROG} 1024 - -(echo bar | ./${PROG} 1025) - -.include diff --git a/regress/lib/libc/ssp/read/read.c b/regress/lib/libc/ssp/read/read.c deleted file mode 100644 index 77a301328577..000000000000 --- a/regress/lib/libc/ssp/read/read.c +++ /dev/null @@ -1,14 +0,0 @@ -#include -#include -#include -#include - -int -main(int argc, char *argv[]) -{ - char b[MAXPATHLEN]; - size_t len = atoi(argv[1]); - (void)read(0, b, len); - (void)printf("%s\n", b); - return 0; -} diff --git a/regress/lib/libc/ssp/readlink/Makefile b/regress/lib/libc/ssp/readlink/Makefile deleted file mode 100644 index 7c7ee7340f20..000000000000 --- a/regress/lib/libc/ssp/readlink/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:52 christos Exp $ - -NOMAN= #defined - -.include - -PROG= readlink -SRCS= readlink.c - -regress: ${PROG} - ./${PROG} 1024 - -./${PROG} 1025 - -.include diff --git a/regress/lib/libc/ssp/readlink/readlink.c b/regress/lib/libc/ssp/readlink/readlink.c deleted file mode 100644 index c0ffbebf3282..000000000000 --- a/regress/lib/libc/ssp/readlink/readlink.c +++ /dev/null @@ -1,14 +0,0 @@ -#include -#include -#include -#include - -int -main(int argc, char *argv[]) -{ - char b[MAXPATHLEN]; - size_t len = atoi(argv[1]); - (void)readlink("/", b, len); - (void)printf("%s\n", b); - return 0; -} diff --git a/regress/lib/libc/ssp/snprintf/Makefile b/regress/lib/libc/ssp/snprintf/Makefile deleted file mode 100644 index 7543795b2e64..000000000000 --- a/regress/lib/libc/ssp/snprintf/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:52 christos Exp $ - -NOMAN= #defined - -.include - -PROG= snprintf -SRCS= snprintf.c - -regress: ${PROG} - ./${PROG} 10 - -./${PROG} 11 - -.include diff --git a/regress/lib/libc/ssp/snprintf/snprintf.c b/regress/lib/libc/ssp/snprintf/snprintf.c deleted file mode 100644 index 77bb03566dd1..000000000000 --- a/regress/lib/libc/ssp/snprintf/snprintf.c +++ /dev/null @@ -1,12 +0,0 @@ -#include -#include - -int -main(int argc, char *argv[]) -{ - char b[10]; - size_t len = atoi(argv[1]); - (void)snprintf(b, len, "%s", "0123456789"); - (void)printf("%s\n", b); - return 0; -} diff --git a/regress/lib/libc/ssp/sprintf/Makefile b/regress/lib/libc/ssp/sprintf/Makefile deleted file mode 100644 index 57ed4f1ad628..000000000000 --- a/regress/lib/libc/ssp/sprintf/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:52 christos Exp $ - -NOMAN= #defined - -.include - -PROG= sprintf -SRCS= sprintf.c - -regress: ${PROG} - ./${PROG} ok - -./${PROG} 0123456789 - -.include diff --git a/regress/lib/libc/ssp/sprintf/sprintf.c b/regress/lib/libc/ssp/sprintf/sprintf.c deleted file mode 100644 index bc7cc1173c88..000000000000 --- a/regress/lib/libc/ssp/sprintf/sprintf.c +++ /dev/null @@ -1,10 +0,0 @@ -#include - -int -main(int argc, char *argv[]) -{ - char b[10]; - (void)sprintf(b, "%s", argv[1]); - (void)printf("%s\n", b); - return 0; -} diff --git a/regress/lib/libc/ssp/strcat/Makefile b/regress/lib/libc/ssp/strcat/Makefile deleted file mode 100644 index f17155077368..000000000000 --- a/regress/lib/libc/ssp/strcat/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:53 christos Exp $ - -NOMAN= #defined - -.include - -PROG= strcat -SRCS= strcat.c - -regress: ${PROG} - ./${PROG} 0123456 - -./${PROG} 012345678 - -.include diff --git a/regress/lib/libc/ssp/strcat/strcat.c b/regress/lib/libc/ssp/strcat/strcat.c deleted file mode 100644 index 304ce58ecefe..000000000000 --- a/regress/lib/libc/ssp/strcat/strcat.c +++ /dev/null @@ -1,13 +0,0 @@ -#include -#include - -int -main(int argc, char *argv[]) -{ - char b[10]; - (void)strcpy(b, "1"); - (void)strcat(b, argv[1]); - - (void)printf("%s\n", b); - return 0; -} diff --git a/regress/lib/libc/ssp/strcpy/Makefile b/regress/lib/libc/ssp/strcpy/Makefile deleted file mode 100644 index 60d3fb06ba84..000000000000 --- a/regress/lib/libc/ssp/strcpy/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:53 christos Exp $ - -NOMAN= #defined - -.include - -PROG= strcpy -SRCS= strcpy.c - -regress: ${PROG} - ./${PROG} 0123456 - -./${PROG} 0123456789 - -.include diff --git a/regress/lib/libc/ssp/strcpy/strcpy.c b/regress/lib/libc/ssp/strcpy/strcpy.c deleted file mode 100644 index f4ac6cc3e35e..000000000000 --- a/regress/lib/libc/ssp/strcpy/strcpy.c +++ /dev/null @@ -1,12 +0,0 @@ -#include -#include - -int -main(int argc, char *argv[]) -{ - char b[10]; - (void)strcpy(b, argv[1]); - - (void)printf("%s\n", b); - return 0; -} diff --git a/regress/lib/libc/ssp/strncat/Makefile b/regress/lib/libc/ssp/strncat/Makefile deleted file mode 100644 index 0a4de6a3b12e..000000000000 --- a/regress/lib/libc/ssp/strncat/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:54 christos Exp $ - -NOMAN= #defined - -.include - -PROG= strncat -SRCS= strncat.c - -regress: ${PROG} - ./${PROG} 8 - -./${PROG} 9 - -.include diff --git a/regress/lib/libc/ssp/strncat/strncat.c b/regress/lib/libc/ssp/strncat/strncat.c deleted file mode 100644 index b7f20e861c46..000000000000 --- a/regress/lib/libc/ssp/strncat/strncat.c +++ /dev/null @@ -1,15 +0,0 @@ -#include -#include -#include - -int -main(int argc, char *argv[]) -{ - char b[10]; - int len = atoi(argv[1]); - (void)strcpy(b, "1"); - (void)strncat(b, "1020202020202", len); - - (void)printf("%*.*s\n", len, len, b); - return 0; -} diff --git a/regress/lib/libc/ssp/strncpy/Makefile b/regress/lib/libc/ssp/strncpy/Makefile deleted file mode 100644 index dfaddccfcc9f..000000000000 --- a/regress/lib/libc/ssp/strncpy/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:54 christos Exp $ - -NOMAN= #defined - -.include - -PROG= strncpy -SRCS= strncpy.c - -regress: ${PROG} - ./${PROG} 10 - -./${PROG} 11 - -.include diff --git a/regress/lib/libc/ssp/strncpy/strncpy.c b/regress/lib/libc/ssp/strncpy/strncpy.c deleted file mode 100644 index dfc005ed18bc..000000000000 --- a/regress/lib/libc/ssp/strncpy/strncpy.c +++ /dev/null @@ -1,14 +0,0 @@ -#include -#include -#include - -int -main(int argc, char *argv[]) -{ - char b[10]; - int len = atoi(argv[1]); - (void)strncpy(b, "1020202020202", len); - - (void)printf("%*.*s\n", len, len, b); - return 0; -} diff --git a/regress/lib/libc/ssp/vsnprintf/Makefile b/regress/lib/libc/ssp/vsnprintf/Makefile deleted file mode 100644 index 0b5544d35b26..000000000000 --- a/regress/lib/libc/ssp/vsnprintf/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:54 christos Exp $ - -NOMAN= #defined - -.include - -PROG= vsnprintf -SRCS= vsnprintf.c - -regress: ${PROG} - ./${PROG} 10 - -./${PROG} 11 - -.include diff --git a/regress/lib/libc/ssp/vsnprintf/vsnprintf.c b/regress/lib/libc/ssp/vsnprintf/vsnprintf.c deleted file mode 100644 index 86fc66f4fd20..000000000000 --- a/regress/lib/libc/ssp/vsnprintf/vsnprintf.c +++ /dev/null @@ -1,24 +0,0 @@ -#include -#include -#include - -static void wrap(char *str, size_t, const char *, ...); - -static void -wrap(char *str, size_t len, const char *fmt, ...) -{ - va_list ap; - va_start(ap, fmt); - (void)vsnprintf(str, len, fmt, ap); - va_end(ap); -} - -int -main(int argc, char *argv[]) -{ - char b[10]; - size_t len = atoi(argv[1]); - wrap(b, len, "%s", "012345678910"); - (void)printf("%s\n", b); - return 0; -} diff --git a/regress/lib/libc/ssp/vsprintf/Makefile b/regress/lib/libc/ssp/vsprintf/Makefile deleted file mode 100644 index faf9e138f4c4..000000000000 --- a/regress/lib/libc/ssp/vsprintf/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:55 christos Exp $ - -NOMAN= #defined - -.include - -PROG= vsprintf -SRCS= vsprintf.c - -regress: ${PROG} - ./${PROG} ok - -./${PROG} 0123456789 - -.include diff --git a/regress/lib/libc/ssp/vsprintf/vsprintf.c b/regress/lib/libc/ssp/vsprintf/vsprintf.c deleted file mode 100644 index f8076487fd3f..000000000000 --- a/regress/lib/libc/ssp/vsprintf/vsprintf.c +++ /dev/null @@ -1,22 +0,0 @@ -#include -#include - -static void wrap(char *str, const char *, ...); - -static void -wrap(char *str, const char *fmt, ...) -{ - va_list ap; - va_start(ap, fmt); - (void)vsprintf(str, fmt, ap); - va_end(ap); -} - -int -main(int argc, char *argv[]) -{ - char b[10]; - wrap(b, "%s", argv[1]); - (void)printf("%s\n", b); - return 0; -}