CVS commit: src/regress/lib/libc

2020-06-27 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sat Jun 27 11:06:43 UTC 2020

Modified Files:
src/regress/lib/libc: Makefile

Log Message:
citrus SUBDIR is gone


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/regress/lib/libc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.82 src/regress/lib/libc/Makefile:1.83
--- src/regress/lib/libc/Makefile:1.82	Fri Jan 10 16:35:11 2014
+++ src/regress/lib/libc/Makefile	Sat Jun 27 11:06:43 2020
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.82 2014/01/10 16:35:11 christos Exp $
+#	$NetBSD: Makefile,v 1.83 2020/06/27 11:06:43 mlelstv Exp $
 
-SUBDIR+= citrus divrem
+SUBDIR+= divrem
 
 .include 
 



CVS commit: src/regress/sys/arch/i386

2020-04-22 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Apr 22 16:24:15 UTC 2020

Modified Files:
src/regress/sys/arch/i386: Makefile
Removed Files:
src/regress/sys/arch/i386/ldt: Makefile testldt.c

Log Message:
We have USER_LDT tests in ATF, remove the ones from regress.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/regress/sys/arch/i386/Makefile
cvs rdiff -u -r1.9 -r0 src/regress/sys/arch/i386/ldt/Makefile
cvs rdiff -u -r1.17 -r0 src/regress/sys/arch/i386/ldt/testldt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/arch/i386/Makefile
diff -u src/regress/sys/arch/i386/Makefile:1.8 src/regress/sys/arch/i386/Makefile:1.9
--- src/regress/sys/arch/i386/Makefile:1.8	Sat Aug 12 07:40:43 2017
+++ src/regress/sys/arch/i386/Makefile	Wed Apr 22 16:24:15 2020
@@ -1,6 +1,5 @@
-#	$NetBSD: Makefile,v 1.8 2017/08/12 07:40:43 maxv Exp $
+#	$NetBSD: Makefile,v 1.9 2020/04/22 16:24:15 maxv Exp $
 
-SUBDIR+= ldt
 #SUBDIR+= ioperm iopl
 
 .include 



CVS commit: src/regress/libexec/ld.elf_so

2019-04-06 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sat Apr  6 16:25:52 UTC 2019

Modified Files:
src/regress/libexec/ld.elf_so: Makefile
Removed Files:
src/regress/libexec/ld.elf_so/expand: Makefile

Log Message:
Eliminate regress/libexec/ld.elf_so/expand

This test does not contain any code.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/regress/libexec/ld.elf_so/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/libexec/ld.elf_so/expand/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/libexec/ld.elf_so/Makefile
diff -u src/regress/libexec/ld.elf_so/Makefile:1.2 src/regress/libexec/ld.elf_so/Makefile:1.3
--- src/regress/libexec/ld.elf_so/Makefile:1.2	Fri May 18 21:41:38 2007
+++ src/regress/libexec/ld.elf_so/Makefile	Sat Apr  6 16:25:52 2019
@@ -1,7 +1,7 @@
-#	$NetBSD: Makefile,v 1.2 2007/05/18 21:41:38 christos Exp $
+#	$NetBSD: Makefile,v 1.3 2019/04/06 16:25:52 kamil Exp $
 
 .include 
 
-SUBDIR+= expand origin
+SUBDIR+= origin
 
 .include 



CVS commit: src/regress/sys/arch/i386/ldt

2017-08-30 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Aug 30 15:46:20 UTC 2017

Modified Files:
src/regress/sys/arch/i386/ldt: testldt.c

Log Message:
Don't test call gates, they are not supported anymore.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/regress/sys/arch/i386/ldt/testldt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/arch/i386/ldt/testldt.c
diff -u src/regress/sys/arch/i386/ldt/testldt.c:1.16 src/regress/sys/arch/i386/ldt/testldt.c:1.17
--- src/regress/sys/arch/i386/ldt/testldt.c:1.16	Sat Sep  3 08:47:38 2016
+++ src/regress/sys/arch/i386/ldt/testldt.c	Wed Aug 30 15:46:19 2017
@@ -1,6 +1,6 @@
-/*	$NetBSD: testldt.c,v 1.16 2016/09/03 08:47:38 maxv Exp $	*/
+/*	$NetBSD: testldt.c,v 1.17 2017/08/30 15:46:19 maxv Exp $	*/
 
-/*-
+/*
  * Copyright (c) 1993 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
@@ -53,15 +53,6 @@ get_fs_byte(const char *addr)
 	return _v;
 }
 
-static unsigned short
-get_cs(void)
-{
-	unsigned short _v;
-
-	__asm ("movw %%cs,%0": "=r" (_v));
-	return _v;
-}
-
 static int
 check_desc(int desc)
 {
@@ -70,15 +61,6 @@ check_desc(int desc)
 	return get_fs_byte((char *)0);
 }
 
-static void
-gated_call(void)
-{
-	printf("Called from call gate...");
-	__asm volatile("movl %ebp,%esp");
-	__asm volatile("popl %ebp");
-	__asm volatile(".byte 0xcb");
-}
-
 static union descriptor *
 make_sd(void *basep, unsigned limit, int type, int dpl, int seg32, int inpgs)
 {
@@ -99,23 +81,6 @@ make_sd(void *basep, unsigned limit, int
 	return 
 }
 
-static union descriptor *
-make_gd(void *func, unsigned int sel, unsigned stkcpy, int type, int dpl)
-{
-	static union descriptor d;
-	unsigned long offset = (unsigned long)func;
-
-	d.gd.gd_looffset = offset & 0x;
-	d.gd.gd_selector = sel & 0x;
-	d.gd.gd_stkcpy   = stkcpy & 0x1ff;
-	d.gd.gd_type = type & 0x1ff;
-	d.gd.gd_dpl  = dpl & 0x3;
-	d.gd.gd_p= 1;
-	d.gd.gd_hioffset = (offset & 0x) >> 16;
-
-	return 
-}
-
 static const char *
 seg_type_name[] = {
 	"SYSNULL", "SYS286TSS", "SYSLDT", "SYS286BSY",
@@ -206,9 +171,8 @@ main(int argc, char *argv[])
 	union descriptor ldt[MAX_USER_LDT];
 	int n, ch;
 	int num;
-	unsigned int cs = get_cs();
 	unsigned char *data;
-	union descriptor *sd, *gd;
+	union descriptor *sd;
 	unsigned char one = 1, two = 2, val;
 	struct sigaction segv_act;
 	int verbose = 0;
@@ -229,10 +193,8 @@ main(int argc, char *argv[])
 	}
 
 	printf("Testing i386_get_ldt\n");
-	if ((num = i386_get_ldt(0, ldt, MAX_USER_LDT)) < 0)
-		err(2, "get_ldt");
-	if (num == 0)
-		errx(1, "i386_get_ldt() returned empty initial LDT");
+	if ((num = i386_get_ldt(0, ldt, MAX_USER_LDT)) >= 0)
+		err(2, "get_ldt succeeded");
 
 	if (verbose) {
 		printf("Got %d (initial) LDT entries\n", num);
@@ -275,39 +237,6 @@ main(int argc, char *argv[])
 		"expected 0x97, got 0x%x", check_desc(num));
 
 	/*
-	 * Test a Call Gate
-	 */
-	printf("Making call gate\n");
-	fflush(stdout);
-
-	gd = make_gd((void *)gated_call, cs, 0, SDT_SYS386CGT, SEL_UPL);
-	if ((num = i386_set_ldt(4095, gd, 1)) < 0)
-		err(1, "set_ldt: call gate");
-
-	if (verbose) {
-		printf("setldt returned: %d\n", num);
-		printf("Call gate sel = 0x%x\n", LSEL(num, SEL_UPL));
-	}
-
-	if ((n = i386_get_ldt(num, ldt, 1)) < 0)
-		err(1, "get_ldt");
-
-	if (verbose) {
-		printf("Entry %d: ", num);
-		print_ldt([0]);
-	}
-
-	printf("Testing call gate...");
-	fflush(stdout);
-	/*
-	 * Long call to call gate.
-	 * Only the selector matters; offset is irrelevant.
-	 */
-	__asm volatile("lcall $0x7fff,$0x0");
-
-	printf("Gated call returned\n");
-
-	/*
 	 * Test multiple sets.
 	 */
 



CVS commit: src/regress/sys/arch/i386

2017-08-12 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat Aug 12 07:40:43 UTC 2017

Modified Files:
src/regress/sys/arch/i386: Makefile
Removed Files:
src/regress/sys/arch/i386/vm86: Makefile vm86test.c vm86test.exp

Log Message:
Remove the vm86 tests.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/regress/sys/arch/i386/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/sys/arch/i386/vm86/Makefile \
src/regress/sys/arch/i386/vm86/vm86test.exp
cvs rdiff -u -r1.3 -r0 src/regress/sys/arch/i386/vm86/vm86test.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/arch/i386/Makefile
diff -u src/regress/sys/arch/i386/Makefile:1.7 src/regress/sys/arch/i386/Makefile:1.8
--- src/regress/sys/arch/i386/Makefile:1.7	Fri Jan  4 15:39:25 2008
+++ src/regress/sys/arch/i386/Makefile	Sat Aug 12 07:40:43 2017
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.7 2008/01/04 15:39:25 yamt Exp $
+#	$NetBSD: Makefile,v 1.8 2017/08/12 07:40:43 maxv Exp $
 
-SUBDIR+= ldt vm86
+SUBDIR+= ldt
 #SUBDIR+= ioperm iopl
 
 .include 



CVS commit: src/regress/sys

2017-05-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun May 14 04:26:40 UTC 2017

Modified Files:
src/regress/sys: Makefile
Removed Files:
src/regress/sys/fs/lseek: Makefile lseek.c

Log Message:
Remove regress lseek tests, obsoleted by ATF

Many tests verify lseek through rumpkernels:
 - tests/dev/cgd/t_cgd_3des
 - tests/dev/cgd/t_cgd_aes
 - tests/dev/cgd/t_cgd_blowfish
 - tests/rump/rumpvfs/t_basic
 - tests/rump/rumpvfs/t_etfs

There are traditional lseek(2) tests too:
 - tests/kernel/kqueue/read/t_file
 - tests/kernel/kqueue/read/t_file2
 - tests/kernel/t_lockf
 - tests/lib/libc/stdio/t_fflush
 - tests/lib/libc/stdio/t_fopen
 - tests/lib/libc/sys/t_msync
 - etc


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/regress/sys/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/sys/fs/lseek/Makefile
cvs rdiff -u -r1.8 -r0 src/regress/sys/fs/lseek/lseek.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/Makefile
diff -u src/regress/sys/Makefile:1.15 src/regress/sys/Makefile:1.16
--- src/regress/sys/Makefile:1.15	Sun May 14 04:17:25 2017
+++ src/regress/sys/Makefile	Sun May 14 04:26:40 2017
@@ -1,8 +1,8 @@
-#	$NetBSD: Makefile,v 1.15 2017/05/14 04:17:25 kamil Exp $
+#	$NetBSD: Makefile,v 1.16 2017/05/14 04:26:40 kamil Exp $
 
 .include 
 
-SUBDIR= kern fs
+SUBDIR= kern
 .if exists(arch/${MACHINE}/Makefile)
 SUBDIR+= arch/${MACHINE}
 .endif



CVS commit: src/regress/sys/fs

2017-05-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun May 14 04:21:52 UTC 2017

Modified Files:
src/regress/sys/fs: Makefile
Removed Files:
src/regress/sys/fs/getdents: Makefile getdents.c

Log Message:
Remove regress getdents test, obsoleted by ATF tests

There are ATF tests using rumpkernel to verify getdents:
 - tests/fs/hfs/t_pathconvert
 - tests/fs/kernfs/t_basic
 - tests/fs/vfs/t_union


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/regress/sys/fs/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/sys/fs/getdents/Makefile
cvs rdiff -u -r1.9 -r0 src/regress/sys/fs/getdents/getdents.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/fs/Makefile
diff -u src/regress/sys/fs/Makefile:1.8 src/regress/sys/fs/Makefile:1.9
--- src/regress/sys/fs/Makefile:1.8	Fri Feb 20 21:45:47 2009
+++ src/regress/sys/fs/Makefile	Sun May 14 04:21:52 2017
@@ -1,5 +1,5 @@
-#	$NetBSD: Makefile,v 1.8 2009/02/20 21:45:47 jmmv Exp $
+#	$NetBSD: Makefile,v 1.9 2017/05/14 04:21:52 kamil Exp $
 
-SUBDIR= getdents lseek
+SUBDIR= lseek
 
 .include 



CVS commit: src/regress/sys/uvm

2017-05-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun May 14 04:19:06 UTC 2017

Removed Files:
src/regress/sys/uvm: Makefile Makefile.inc

Log Message:
Remove dead leftover Makefiles from src/regress


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r0 src/regress/sys/uvm/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/sys/uvm/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/regress/sys

2017-05-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun May 14 04:17:26 UTC 2017

Modified Files:
src/regress/sys: Makefile
src/regress/sys/uvm: Makefile
Removed Files:
src/regress/sys/uvm/stack_exec: Makefile tramptest.c
src/regress/sys/uvm/stack_noexec: Makefile tramptest.c

Log Message:
Remove tests for executable/non-executable stack.

These tests were not portable across compilers and recently NetBSD moved
to PaX MPROTECT.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/regress/sys/Makefile
cvs rdiff -u -r1.10 -r1.11 src/regress/sys/uvm/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/sys/uvm/stack_exec/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/sys/uvm/stack_exec/tramptest.c
cvs rdiff -u -r1.4 -r0 src/regress/sys/uvm/stack_noexec/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/sys/uvm/stack_noexec/tramptest.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/Makefile
diff -u src/regress/sys/Makefile:1.14 src/regress/sys/Makefile:1.15
--- src/regress/sys/Makefile:1.14	Sun May 14 03:50:42 2017
+++ src/regress/sys/Makefile	Sun May 14 04:17:25 2017
@@ -1,8 +1,8 @@
-#	$NetBSD: Makefile,v 1.14 2017/05/14 03:50:42 kamil Exp $
+#	$NetBSD: Makefile,v 1.15 2017/05/14 04:17:25 kamil Exp $
 
 .include 
 
-SUBDIR= kern fs uvm
+SUBDIR= kern fs
 .if exists(arch/${MACHINE}/Makefile)
 SUBDIR+= arch/${MACHINE}
 .endif

Index: src/regress/sys/uvm/Makefile
diff -u src/regress/sys/uvm/Makefile:1.10 src/regress/sys/uvm/Makefile:1.11
--- src/regress/sys/uvm/Makefile:1.10	Thu Jul 14 11:08:44 2011
+++ src/regress/sys/uvm/Makefile	Sun May 14 04:17:25 2017
@@ -1,19 +1,5 @@
-#	$NetBSD: Makefile,v 1.10 2011/07/14 11:08:44 jruoho Exp $
+#	$NetBSD: Makefile,v 1.11 2017/05/14 04:17:25 kamil Exp $
 
 .include 
 
-.if !empty(SUPPORTED_CC:Mgcc)
-SUBDIR+= stack_exec
-.endif
-
-#
-# Test for no-executable stack; applies only to architectures
-# where CPU and kernel support it.
-#
-STACKNOX_ARCHS= alpha i386 powerpc sparc sparc64 x86_64
-
-.if !empty(SUPPORTED_CC:Mgcc) && !empty(STACKNOX_ARCHS:M${MACHINE_ARCH})
-SUBDIR+= stack_noexec
-.endif
-
 .include 



CVS commit: src/regress/sys/kern

2017-05-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun May 14 04:01:10 UTC 2017

Removed Files:
src/regress/sys/kern/callout1: Makefile test_callout1.c
src/regress/sys/kern/mutex1: Makefile test_mutex1.c
src/regress/sys/kern/mutex2: Makefile test_mutex2.c
src/regress/sys/kern/priority_inheritance1: Makefile
test_priority_inheritance1.c
src/regress/sys/kern/rwlock1: Makefile test_rwlock1.c

Log Message:
Drop broken tests (no longer builds in years)

Removed:
 - callout1
 - mutex1
 - mutex2
 - priority_inheritance1
 - rwlock1

These tests used to require lkm code, that has been removed.
Today they are implicitly mostly verified by rumpkernel tests in ATF.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/regress/sys/kern/callout1/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/sys/kern/callout1/test_callout1.c
cvs rdiff -u -r1.3 -r0 src/regress/sys/kern/mutex1/Makefile
cvs rdiff -u -r1.5 -r0 src/regress/sys/kern/mutex1/test_mutex1.c
cvs rdiff -u -r1.2 -r0 src/regress/sys/kern/mutex2/Makefile
cvs rdiff -u -r1.5 -r0 src/regress/sys/kern/mutex2/test_mutex2.c
cvs rdiff -u -r1.1 -r0 src/regress/sys/kern/priority_inheritance1/Makefile
cvs rdiff -u -r1.2 -r0 \
src/regress/sys/kern/priority_inheritance1/test_priority_inheritance1.c
cvs rdiff -u -r1.2 -r0 src/regress/sys/kern/rwlock1/Makefile
cvs rdiff -u -r1.6 -r0 src/regress/sys/kern/rwlock1/test_rwlock1.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/regress/sys

2017-05-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun May 14 03:50:43 UTC 2017

Modified Files:
src/regress/sys: Makefile
Removed Files:
src/regress/sys/net: Makefile
src/regress/sys/net/bpf: Makefile
src/regress/sys/net/bpf/interface: Makefile interface.c
src/regress/sys/net/bpf/out-of-bounds: Makefile out-of-bounds.sh

Log Message:
Remove bpf regress tests, obsoleted by ATF net/bpf and rump


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/regress/sys/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/sys/net/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/sys/net/bpf/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/sys/net/bpf/interface/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/sys/net/bpf/interface/interface.c
cvs rdiff -u -r1.1 -r0 src/regress/sys/net/bpf/out-of-bounds/Makefile \
src/regress/sys/net/bpf/out-of-bounds/out-of-bounds.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/Makefile
diff -u src/regress/sys/Makefile:1.13 src/regress/sys/Makefile:1.14
--- src/regress/sys/Makefile:1.13	Sun May 14 03:42:42 2017
+++ src/regress/sys/Makefile	Sun May 14 03:50:42 2017
@@ -1,8 +1,8 @@
-#	$NetBSD: Makefile,v 1.13 2017/05/14 03:42:42 kamil Exp $
+#	$NetBSD: Makefile,v 1.14 2017/05/14 03:50:42 kamil Exp $
 
 .include 
 
-SUBDIR= kern fs uvm net
+SUBDIR= kern fs uvm
 .if exists(arch/${MACHINE}/Makefile)
 SUBDIR+= arch/${MACHINE}
 .endif



CVS commit: src/regress/sys

2017-05-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun May 14 03:42:42 UTC 2017

Modified Files:
src/regress/sys: Makefile
Removed Files:
src/regress/sys/crypto: Makefile Makefile.inc
src/regress/sys/crypto/blowfish: Makefile bftest.c
src/regress/sys/crypto/blowfish_asm: Makefile
src/regress/sys/crypto/cast128: Makefile casttest.c
src/regress/sys/crypto/des_asm: Makefile
src/regress/sys/crypto/rijndael: Makefile rijndaeltest.c

Log Message:
Remove regress sys/crypto tests, obsoleted by ATF ones

These algorithms are used in ATF tests/net/ipsec

Today it's better to use rumpkernel to verify this code instead of
reinventing testsuites linking with selected kernel private source files.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/regress/sys/Makefile
cvs rdiff -u -r1.4 -r0 src/regress/sys/crypto/Makefile
cvs rdiff -u -r1.8 -r0 src/regress/sys/crypto/Makefile.inc
cvs rdiff -u -r1.5 -r0 src/regress/sys/crypto/blowfish/Makefile
cvs rdiff -u -r1.6 -r0 src/regress/sys/crypto/blowfish/bftest.c
cvs rdiff -u -r1.3 -r0 src/regress/sys/crypto/blowfish_asm/Makefile
cvs rdiff -u -r1.5 -r0 src/regress/sys/crypto/cast128/Makefile
cvs rdiff -u -r1.6 -r0 src/regress/sys/crypto/cast128/casttest.c
cvs rdiff -u -r1.4 -r0 src/regress/sys/crypto/des_asm/Makefile
cvs rdiff -u -r1.6 -r0 src/regress/sys/crypto/rijndael/Makefile
cvs rdiff -u -r1.8 -r0 src/regress/sys/crypto/rijndael/rijndaeltest.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/Makefile
diff -u src/regress/sys/Makefile:1.12 src/regress/sys/Makefile:1.13
--- src/regress/sys/Makefile:1.12	Wed Dec 14 23:56:45 2005
+++ src/regress/sys/Makefile	Sun May 14 03:42:42 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.12 2005/12/14 23:56:45 rpaulo Exp $
+#	$NetBSD: Makefile,v 1.13 2017/05/14 03:42:42 kamil Exp $
 
 .include 
 
@@ -9,9 +9,6 @@ SUBDIR+= arch/${MACHINE}
 .if exists(arch/${MACHINE_ARCH}/Makefile)
 SUBDIR+= arch/${MACHINE_ARCH}
 .endif
-.if ${MKCRYPTO} != "no"
-SUBDIR+=	crypto
-.endif
 
 SUBDIR := ${SUBDIR:O:u}
 



CVS commit: src/regress/sys/crypto

2017-05-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun May 14 03:36:36 UTC 2017

Modified Files:
src/regress/sys/crypto: Makefile
Removed Files:
src/regress/sys/crypto/des: Makefile destest.c

Log Message:
Drop regress test for des, obsoleted by ATF tests/lib/libdes/t_des


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/regress/sys/crypto/Makefile
cvs rdiff -u -r1.6 -r0 src/regress/sys/crypto/des/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/sys/crypto/des/destest.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/crypto/Makefile
diff -u src/regress/sys/crypto/Makefile:1.3 src/regress/sys/crypto/Makefile:1.4
--- src/regress/sys/crypto/Makefile:1.3	Wed Feb 27 02:21:08 2002
+++ src/regress/sys/crypto/Makefile	Sun May 14 03:36:36 2017
@@ -1,7 +1,7 @@
-#	$NetBSD: Makefile,v 1.3 2002/02/27 02:21:08 itojun Exp $
+#	$NetBSD: Makefile,v 1.4 2017/05/14 03:36:36 kamil Exp $
 #	$KAME: Makefile,v 1.4 2000/11/01 14:55:39 itojun Exp $
 
-SUBDIR=	des blowfish cast128 rijndael
+SUBDIR=	blowfish cast128 rijndael
 .if ${MACHINE_ARCH} == "i386"
 SUBDIR+=	des_asm blowfish_asm
 .endif



CVS commit: src/regress

2017-05-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun May 14 02:30:27 UTC 2017

Modified Files:
src/regress: Makefile
Removed Files:
src/regress/usr.bin: Makefile
src/regress/usr.bin/rtld: Makefile
src/regress/usr.bin/rtld/testlib: Makefile ccexc.cc construct.cc
virt.cc

Log Message:
Drop usr.bin/rtld/testlib, replaced with ATF tests in usr.bin/c++/*

This regress tests used to check dynamically loaded objects:
constructor/destructor call for static objects, C++ runtime support.

This is mostly - although without virtual functions, inheritance - covered
by existing ATF tests.

Stop descending into regress/usr.bin.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/regress/Makefile
cvs rdiff -u -r1.20 -r0 src/regress/usr.bin/Makefile
cvs rdiff -u -r1.4 -r0 src/regress/usr.bin/rtld/Makefile
cvs rdiff -u -r1.10 -r0 src/regress/usr.bin/rtld/testlib/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/usr.bin/rtld/testlib/ccexc.cc \
src/regress/usr.bin/rtld/testlib/virt.cc
cvs rdiff -u -r1.2 -r0 src/regress/usr.bin/rtld/testlib/construct.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/Makefile
diff -u src/regress/Makefile:1.19 src/regress/Makefile:1.20
--- src/regress/Makefile:1.19	Sun Jul 18 12:44:38 2010
+++ src/regress/Makefile	Sun May 14 02:30:27 2017
@@ -1,6 +1,5 @@
-#	$NetBSD: Makefile,v 1.19 2010/07/18 12:44:38 jmmv Exp $
+#	$NetBSD: Makefile,v 1.20 2017/05/14 02:30:27 kamil Exp $
 
-# missing: libexec sbin usr.sbin share
-SUBDIR+= lib libexec sys usr.bin
+SUBDIR+= lib libexec sys
 
 .include 



CVS commit: src/regress/usr.bin

2017-05-13 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun May 14 02:07:59 UTC 2017

Modified Files:
src/regress/usr.bin: Makefile
Removed Files:
src/regress/usr.bin/c++: Makefile
src/regress/usr.bin/c++/static_destructor: Makefile expected
static_destructor.cc

Log Message:
Eliminate regress/usr.bin/c++/static_destructor - obsoleted with ATF tests

Replaced and enhanced with tests/usr.bin/c++/t_static_destructor.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/regress/usr.bin/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/usr.bin/c++/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/usr.bin/c++/static_destructor/Makefile \
src/regress/usr.bin/c++/static_destructor/expected \
src/regress/usr.bin/c++/static_destructor/static_destructor.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/usr.bin/Makefile
diff -u src/regress/usr.bin/Makefile:1.19 src/regress/usr.bin/Makefile:1.20
--- src/regress/usr.bin/Makefile:1.19	Sun Aug  1 16:44:31 2010
+++ src/regress/usr.bin/Makefile	Sun May 14 02:07:58 2017
@@ -1,11 +1,7 @@
-#	$NetBSD: Makefile,v 1.19 2010/08/01 16:44:31 jmmv Exp $
+#	$NetBSD: Makefile,v 1.20 2017/05/14 02:07:58 kamil Exp $
 
 .include 
 
-.if ${MKCXX} != "no"
-SUBDIR+= c++
-.endif
-
 SUBDIR+= rtld
 
 .include 



CVS commit: src/regress/sys/kern/unfdpass

2017-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 10 22:37:44 UTC 2017

Modified Files:
src/regress/sys/kern/unfdpass: unfdpass.c

Log Message:
need 


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/regress/sys/kern/unfdpass/unfdpass.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/kern/unfdpass/unfdpass.c
diff -u src/regress/sys/kern/unfdpass/unfdpass.c:1.10 src/regress/sys/kern/unfdpass/unfdpass.c:1.11
--- src/regress/sys/kern/unfdpass/unfdpass.c:1.10	Mon Apr 28 16:23:07 2008
+++ src/regress/sys/kern/unfdpass/unfdpass.c	Tue Jan 10 17:37:44 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: unfdpass.c,v 1.10 2008/04/28 20:23:07 martin Exp $	*/
+/*	$NetBSD: unfdpass.c,v 1.11 2017/01/10 22:37:44 christos Exp $	*/
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -40,6 +40,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 



CVS commit: src/regress/sys/kern/lkmcommon

2016-12-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Dec 29 23:36:07 UTC 2016

Removed Files:
src/regress/sys/kern/lkmcommon: lkminit_test.c
src/regress/sys/kern/lkmcommon/test: Makefile testmisc.c

Log Message:
remove obsolete lkm tests


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r0 src/regress/sys/kern/lkmcommon/lkminit_test.c
cvs rdiff -u -r1.1 -r0 src/regress/sys/kern/lkmcommon/test/Makefile \
src/regress/sys/kern/lkmcommon/test/testmisc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/regress/sys/kern/kqueue

2016-11-23 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Nov 24 04:20:11 UTC 2016

Removed Files:
src/regress/sys/kern/kqueue/ioctl: Makefile
src/regress/sys/kern/kqueue/proc: Makefile Makefile.inc
src/regress/sys/kern/kqueue/read: Makefile Makefile.inc
src/regress/sys/kern/kqueue/sig: Makefile
src/regress/sys/kern/kqueue/write: Makefile Makefile.inc

Log Message:
Purge dummy Makefiles


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 src/regress/sys/kern/kqueue/ioctl/Makefile
cvs rdiff -u -r1.1.1.1 -r0 src/regress/sys/kern/kqueue/proc/Makefile \
src/regress/sys/kern/kqueue/proc/Makefile.inc
cvs rdiff -u -r1.2 -r0 src/regress/sys/kern/kqueue/read/Makefile
cvs rdiff -u -r1.1.1.1 -r0 src/regress/sys/kern/kqueue/read/Makefile.inc
cvs rdiff -u -r1.1.1.1 -r0 src/regress/sys/kern/kqueue/sig/Makefile
cvs rdiff -u -r1.1.1.1 -r0 src/regress/sys/kern/kqueue/write/Makefile \
src/regress/sys/kern/kqueue/write/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/regress/sys/arch/i386/ldt

2016-09-03 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat Sep  3 08:47:38 UTC 2016

Modified Files:
src/regress/sys/arch/i386/ldt: testldt.c

Log Message:
Fix the mmap call, KNF, and make the output more readable.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/regress/sys/arch/i386/ldt/testldt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/arch/i386/ldt/testldt.c
diff -u src/regress/sys/arch/i386/ldt/testldt.c:1.15 src/regress/sys/arch/i386/ldt/testldt.c:1.16
--- src/regress/sys/arch/i386/ldt/testldt.c:1.15	Fri Mar 18 03:06:21 2011
+++ src/regress/sys/arch/i386/ldt/testldt.c	Sat Sep  3 08:47:38 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: testldt.c,v 1.15 2011/03/18 03:06:21 joerg Exp $	*/
+/*	$NetBSD: testldt.c,v 1.16 2016/09/03 08:47:38 maxv Exp $	*/
 
 /*-
  * Copyright (c) 1993 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@ check_desc(int desc)
 {
 	unsigned int sel = LSEL(desc, SEL_UPL);
 	set_fs(sel);
-	return(get_fs_byte((char *) 0));
+	return get_fs_byte((char *)0);
 }
 
 static void
@@ -89,14 +89,14 @@ make_sd(void *basep, unsigned limit, int
 	d.sd.sd_lobase  = base & 0x00ff;
 	d.sd.sd_type= type & 0x01f;
 	d.sd.sd_dpl = dpl & 0x3;
-	d.sd.sd_p	 = 1;
+	d.sd.sd_p   = 1;
 	d.sd.sd_hilimit = (limit & 0x00ff) >> 16;
-	d.sd.sd_xx	 = 0;
+	d.sd.sd_xx  = 0;
 	d.sd.sd_def32   = seg32?1:0;
 	d.sd.sd_gran= inpgs?1:0;
 	d.sd.sd_hibase  = (base & 0xff00) >> 24;
 
-	return ();
+	return 
 }
 
 static union descriptor *
@@ -110,10 +110,10 @@ make_gd(void *func, unsigned int sel, un
 	d.gd.gd_stkcpy   = stkcpy & 0x1ff;
 	d.gd.gd_type = type & 0x1ff;
 	d.gd.gd_dpl  = dpl & 0x3;
-	d.gd.gd_p	  = 1;
+	d.gd.gd_p= 1;
 	d.gd.gd_hioffset = (offset & 0x) >> 16;
 
-	return();
+	return 
 }
 
 static const char *
@@ -133,10 +133,9 @@ segtype(unsigned int type)
 {
 	if (type >= 32)
 		return "Out of range";
-	
+
 	return seg_type_name[type];
 }
-	
 
 static void
 print_ldt(union descriptor *dp)
@@ -145,8 +144,8 @@ print_ldt(union descriptor *dp)
 	unsigned int type, dpl;
 	unsigned long lp[2];
 
-	(void) memcpy(lp, dp, sizeof(lp));
-
+	memcpy(lp, dp, sizeof(lp));
+
 	base_addr = dp->sd.sd_lobase | (dp->sd.sd_hibase << 24);
 	limit = dp->sd.sd_lolimit | (dp->sd.sd_hilimit << 16);
 	offset = dp->gd.gd_looffset | (dp->gd.gd_hioffset << 16);
@@ -157,13 +156,11 @@ print_ldt(union descriptor *dp)
 
 	if (type == SDT_SYS386CGT || type == SDT_SYS286CGT)
 		printf("LDT: Gate Off %8.8lx, Sel   %5.5x, Stkcpy %lu DPL %d,"
-		" Type %d/%s\n",
-		offset, dp->gd.gd_selector, stack_copy, dpl,
+		" Type %d/%s\n", offset, dp->gd.gd_selector, stack_copy, dpl,
 		type, segtype(type));
 	else
 		printf("LDT: Seg Base %8.8lx, Limit %5.5lx, DPL %d, "
-		"Type %d/%s\n",
-		base_addr, limit, dpl,
+		"Type %d/%s\n", base_addr, limit, dpl,
 		type, segtype(type));
 	printf("	  ");
 	if (type & 0x1)
@@ -188,7 +185,6 @@ print_ldt(union descriptor *dp)
 	printf("	  Raw descriptor: %08lx %08lx\n", lp[0], lp[1]);
 }
 
-/* ARGSUSED */
 static void
 busfault(int signo)
 {
@@ -196,12 +192,13 @@ busfault(int signo)
 }
 
 static void
-usage(int status)
+usage(void)
 {
-	errx(status, "Usage: testldt [-v]");
+	errx(1, "Usage: testldt [-v]");
 }
 
 #define MAX_USER_LDT 1024
+#define DATA_ADDR ((void *)0x005f)
 
 int
 main(int argc, char *argv[])
@@ -226,21 +223,20 @@ main(int argc, char *argv[])
 			verbose++;
 			break;
 		default:
-			usage(1);
+			usage();
 			break;
 		}
 	}
 
-	printf("Testing i386_get_ldt...\n");
+	printf("Testing i386_get_ldt\n");
 	if ((num = i386_get_ldt(0, ldt, MAX_USER_LDT)) < 0)
 		err(2, "get_ldt");
-
 	if (num == 0)
 		errx(1, "i386_get_ldt() returned empty initial LDT");
 
 	if (verbose) {
 		printf("Got %d (initial) LDT entries\n", num);
-		for (n=0; n < num; n++) {
+		for (n = 0; n < num; n++) {
 			printf("Entry %d: ", n);
 			print_ldt([n]);
 		}
@@ -249,24 +245,20 @@ main(int argc, char *argv[])
 	/*
 	 * mmap a data area and assign an LDT to it
 	 */
-	printf("Testing i386_set_ldt...\n");
-	data = (void *) mmap( (char *)0x005f, 0x0fff,
-	PROT_EXEC | PROT_READ | PROT_WRITE,
+	printf("Testing i386_set_ldt\n");
+	data = (void *)mmap(DATA_ADDR, 4096, PROT_READ | PROT_WRITE,
 	MAP_FIXED | MAP_PRIVATE | MAP_ANON, -1, (off_t)0);
-	if (data == NULL)
+	if (data != DATA_ADDR)
 		err(1, "mmap");
 
-	if (verbose)
-		printf("data address: %p\n", data);
-
 	*data = 0x97;
 
 	/* Get the next free LDT and set it to the allocated data. */
 	sd = make_sd(data, 2048, SDT_MEMRW, SEL_UPL, 0, 0);
 	if ((num = i386_set_ldt(1024, sd, 1)) < 0)
 		err(1, "set_ldt");
-
-	if (verbose) printf("setldt returned: %d\n", num);
+	if (verbose)
+		printf("setldt returned: %d\n", num);
 	if ((n = i386_get_ldt(num, ldt, 1)) < 0)
 		err(1, "get_ldt");
 
@@ -281,13 +273,13 @@ main(int argc, char *argv[])
 	if 

CVS commit: src/regress/sys/crypto/des_asm

2016-08-14 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sun Aug 14 19:05:24 UTC 2016

Modified Files:
src/regress/sys/crypto/des_asm: Makefile

Log Message:
Since the i386-specific DES assembly is not PIC, don't build this as PIE.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/regress/sys/crypto/des_asm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/crypto/des_asm/Makefile
diff -u src/regress/sys/crypto/des_asm/Makefile:1.3 src/regress/sys/crypto/des_asm/Makefile:1.4
--- src/regress/sys/crypto/des_asm/Makefile:1.3	Wed Sep 18 05:41:52 2002
+++ src/regress/sys/crypto/des_asm/Makefile	Sun Aug 14 19:05:24 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2002/09/18 05:41:52 lukem Exp $
+#	$NetBSD: Makefile,v 1.4 2016/08/14 19:05:24 joerg Exp $
 #	$KAME: Makefile,v 1.5 2000/11/08 05:58:25 itojun Exp $
 
 NOMAN=		# defined
@@ -6,6 +6,8 @@ NOMAN=		# defined
 PROG=		destest
 SRCS=		destest.c des_ecb.c des_enc.S des_setkey.c
 
+NOPIE=		yes
+
 .include "../Makefile.inc"
 .include 
 



CVS commit: src/regress/sys/kern/allocfree

2016-03-11 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Mar 11 18:26:40 UTC 2016

Modified Files:
src/regress/sys/kern/allocfree: allocfree.c

Log Message:
PR/50941: David Binderman: fix printf format


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/regress/sys/kern/allocfree/allocfree.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/kern/allocfree/allocfree.c
diff -u src/regress/sys/kern/allocfree/allocfree.c:1.1 src/regress/sys/kern/allocfree/allocfree.c:1.2
--- src/regress/sys/kern/allocfree/allocfree.c:1.1	Sat Dec 20 17:29:05 2008
+++ src/regress/sys/kern/allocfree/allocfree.c	Fri Mar 11 13:26:40 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: allocfree.c,v 1.1 2008/12/20 22:29:05 ad Exp $	*/
+/*	$NetBSD: allocfree.c,v 1.2 2016/03/11 18:26:40 christos Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: allocfree.c,v 1.1 2008/12/20 22:29:05 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: allocfree.c,v 1.2 2016/03/11 18:26:40 christos Exp $");
 
 #include 
 #include 
@@ -241,7 +241,7 @@ run0(void)
 	int i;
 
 	for (i = 1; i <= ncpu; i++) {
-		printf("%d\t%d", sz, i);
+		printf("%zu\t%d", sz, i);
 		run1(i);
 	}
 }



CVS commit: src/regress/sys/net/in_cksum

2015-01-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan  5 22:39:29 UTC 2015

Removed Files:
src/regress/sys/net/in_cksum: Makefile in_cksum.c

Log Message:
moved to tests/net/in_cksum.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r0 src/regress/sys/net/in_cksum/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/sys/net/in_cksum/in_cksum.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/regress/sys/arch/m68k/060sp

2014-09-19 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri Sep 19 21:35:42 UTC 2014

Modified Files:
src/regress/sys/arch/m68k/060sp: Makefile

Log Message:
Replace manual realdepend dependency with DPSRCS.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/regress/sys/arch/m68k/060sp/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/arch/m68k/060sp/Makefile
diff -u src/regress/sys/arch/m68k/060sp/Makefile:1.14 src/regress/sys/arch/m68k/060sp/Makefile:1.15
--- src/regress/sys/arch/m68k/060sp/Makefile:1.14	Fri Mar 28 22:29:16 2008
+++ src/regress/sys/arch/m68k/060sp/Makefile	Fri Sep 19 21:35:42 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.14 2008/03/28 22:29:16 apb Exp $
+#	$NetBSD: Makefile,v 1.15 2014/09/19 21:35:42 joerg Exp $
 
 NOMAN=		# defined
 
@@ -9,6 +9,7 @@ SRCS=		dotest.c dotestsubs.S
 AFLAGS+=	-I.
 CPPFLAGS+=	-I.
 SPDIR=		${NETBSDSRCDIR}/sys/arch/m68k/060sp
+DPSRCS+=	itest.S ftest.S
 CLEANFILES+=	itest.S ftest.S
 
 .SUFFIXES: .S .sa
@@ -19,7 +20,7 @@ CLEANFILES+=	itest.S ftest.S
 
 .PATH: ${SPDIR}/dist
 
-realdepend dotestsubs.o: itest.S ftest.S
+dotestsubs.o: itest.S ftest.S
 
 regress: ${PROG}
 	@/sbin/sysctl hw.model | grep -v -q 68060 || \



CVS commit: src/regress/sys/kern/ras

2014-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jan 10 15:52:25 UTC 2014

Modified Files:
src/regress/sys/kern/ras/ras1: Makefile
src/regress/sys/kern/ras/ras2: Makefile
src/regress/sys/kern/ras/ras3: Makefile

Log Message:
Fix NOMAN


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/regress/sys/kern/ras/ras1/Makefile
cvs rdiff -u -r1.7 -r1.8 src/regress/sys/kern/ras/ras2/Makefile
cvs rdiff -u -r1.7 -r1.8 src/regress/sys/kern/ras/ras3/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/kern/ras/ras1/Makefile
diff -u src/regress/sys/kern/ras/ras1/Makefile:1.7 src/regress/sys/kern/ras/ras1/Makefile:1.8
--- src/regress/sys/kern/ras/ras1/Makefile:1.7	Fri Jan 10 10:00:16 2014
+++ src/regress/sys/kern/ras/ras1/Makefile	Fri Jan 10 10:52:25 2014
@@ -1,11 +1,10 @@
-#	$NetBSD: Makefile,v 1.7 2014/01/10 15:00:16 martin Exp $
-
-.include bsd.own.mk	# ACVTIVE_CC
+#	$NetBSD: Makefile,v 1.8 2014/01/10 15:52:25 christos Exp $
 
 NOMAN=	#defined
 
+.include bsd.own.mk	# ACTIVE_CC
+
 PROG=	ras1
-WARNS=	2
 
 regress:
 	@if ./${PROG} ; then		\

Index: src/regress/sys/kern/ras/ras2/Makefile
diff -u src/regress/sys/kern/ras/ras2/Makefile:1.7 src/regress/sys/kern/ras/ras2/Makefile:1.8
--- src/regress/sys/kern/ras/ras2/Makefile:1.7	Fri Jan 10 10:00:16 2014
+++ src/regress/sys/kern/ras/ras2/Makefile	Fri Jan 10 10:52:25 2014
@@ -1,11 +1,10 @@
-#	$NetBSD: Makefile,v 1.7 2014/01/10 15:00:16 martin Exp $
-
-.include bsd.own.mk	# ACVTIVE_CC
+#	$NetBSD: Makefile,v 1.8 2014/01/10 15:52:25 christos Exp $
 
 NOMAN=	#defined
 
+.include bsd.own.mk	# ACTIVE_CC
+
 PROG=	ras2
-WARNS=	2
 
 regress:
 	@if ./${PROG} ; then		\

Index: src/regress/sys/kern/ras/ras3/Makefile
diff -u src/regress/sys/kern/ras/ras3/Makefile:1.7 src/regress/sys/kern/ras/ras3/Makefile:1.8
--- src/regress/sys/kern/ras/ras3/Makefile:1.7	Fri Jan 10 10:00:16 2014
+++ src/regress/sys/kern/ras/ras3/Makefile	Fri Jan 10 10:52:25 2014
@@ -1,10 +1,10 @@
-#	$NetBSD: Makefile,v 1.7 2014/01/10 15:00:16 martin Exp $
-
-.include bsd.own.mk	# ACVTIVE_CC
+#	$NetBSD: Makefile,v 1.8 2014/01/10 15:52:25 christos Exp $
 
 NOMAN=	#defined
+
+.include bsd.own.mk	# ACTIVE_CC
+
 PROG=	ras3
-WARNS=	2
 
 regress:
 	@if ./${PROG} ; then		\



CVS commit: src/regress/lib/libc

2014-01-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jan 10 16:35:11 UTC 2014

Modified Files:
src/regress/lib/libc: Makefile

Log Message:
don't include bsd.sys.mk


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/regress/lib/libc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.81 src/regress/lib/libc/Makefile:1.82
--- src/regress/lib/libc/Makefile:1.81	Sun Mar 18 03:54:00 2012
+++ src/regress/lib/libc/Makefile	Fri Jan 10 11:35:11 2014
@@ -1,9 +1,8 @@
-#	$NetBSD: Makefile,v 1.81 2012/03/18 07:54:00 jruoho Exp $
+#	$NetBSD: Makefile,v 1.82 2014/01/10 16:35:11 christos Exp $
 
 SUBDIR+= citrus divrem
 
 .include bsd.own.mk
-.include bsd.sys.mk
 
 .if exists(arch/${MACHINE_ARCH})
 SUBDIR+= arch/${MACHINE_ARCH}



CVS commit: src/regress/sys/kern

2012-11-07 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Nov  7 14:04:28 UTC 2012

Modified Files:
src/regress/sys/kern: Makefile
Removed Files:
src/regress/sys/kern/lockf: Makefile lockf.c
src/regress/sys/kern/lockf2: Makefile lockf2.c

Log Message:
The lockf/lockf2 tests are now converted to ATF


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/regress/sys/kern/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/sys/kern/lockf/Makefile
cvs rdiff -u -r1.8 -r0 src/regress/sys/kern/lockf/lockf.c
cvs rdiff -u -r1.1 -r0 src/regress/sys/kern/lockf2/Makefile \
src/regress/sys/kern/lockf2/lockf2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/kern/Makefile
diff -u src/regress/sys/kern/Makefile:1.31 src/regress/sys/kern/Makefile:1.32
--- src/regress/sys/kern/Makefile:1.31	Mon Nov  5 04:11:44 2012
+++ src/regress/sys/kern/Makefile	Wed Nov  7 14:04:28 2012
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.31 2012/11/05 04:11:44 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.32 2012/11/07 14:04:28 pgoyette Exp $
 
-SUBDIR+= execve getcwd lockf lockf2 ras \
+SUBDIR+= execve getcwd ras \
 	 sigtramp sleeping unfdpass
 
 .include bsd.subdir.mk



CVS commit: src/regress/sys/kern

2012-11-07 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Nov  7 16:52:01 UTC 2012

Modified Files:
src/regress/sys/kern: Makefile
Removed Files:
src/regress/sys/kern/sigtramp: Makefile dotest sigtramp.c

Log Message:
sigtramp has been incorporated into ATF test lib/libc/sys/t_sigaction


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/regress/sys/kern/Makefile
cvs rdiff -u -r1.5 -r0 src/regress/sys/kern/sigtramp/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/sys/kern/sigtramp/dotest
cvs rdiff -u -r1.4 -r0 src/regress/sys/kern/sigtramp/sigtramp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/kern/Makefile
diff -u src/regress/sys/kern/Makefile:1.32 src/regress/sys/kern/Makefile:1.33
--- src/regress/sys/kern/Makefile:1.32	Wed Nov  7 14:04:28 2012
+++ src/regress/sys/kern/Makefile	Wed Nov  7 16:52:01 2012
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.32 2012/11/07 14:04:28 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.33 2012/11/07 16:52:01 pgoyette Exp $
 
 SUBDIR+= execve getcwd ras \
-	 sigtramp sleeping unfdpass
+	 sleeping unfdpass
 
 .include bsd.subdir.mk



CVS commit: src/regress/sys/kern/write_append

2012-11-07 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Nov  7 17:14:02 UTC 2012

Removed Files:
src/regress/sys/kern/write_append: Makefile write_append.c

Log Message:
This functionality is tested in tests/fs/vfs/t_io


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/regress/sys/kern/write_append/Makefile \
src/regress/sys/kern/write_append/write_append.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/regress/sys/kern

2012-11-07 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Thu Nov  8 03:16:05 UTC 2012

Modified Files:
src/regress/sys/kern: Makefile
Removed Files:
src/regress/sys/kern/sleeping: Makefile sleeptest.c

Log Message:
The sleeping test has been converted to ATF


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/regress/sys/kern/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/sys/kern/sleeping/Makefile \
src/regress/sys/kern/sleeping/sleeptest.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/kern/Makefile
diff -u src/regress/sys/kern/Makefile:1.33 src/regress/sys/kern/Makefile:1.34
--- src/regress/sys/kern/Makefile:1.33	Wed Nov  7 16:52:01 2012
+++ src/regress/sys/kern/Makefile	Thu Nov  8 03:16:04 2012
@@ -1,6 +1,5 @@
-#	$NetBSD: Makefile,v 1.33 2012/11/07 16:52:01 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.34 2012/11/08 03:16:04 pgoyette Exp $
 
-SUBDIR+= execve getcwd ras \
-	 sleeping unfdpass
+SUBDIR+= execve getcwd ras unfdpass
 
 .include bsd.subdir.mk



CVS commit: src/regress/sys/kern

2012-11-04 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Nov  5 04:11:45 UTC 2012

Modified Files:
src/regress/sys/kern: Makefile
Removed Files:
src/regress/sys/kern/sysvmsg: Makefile msgtest.c
src/regress/sys/kern/sysvsem: Makefile semtest.c
src/regress/sys/kern/sysvshm: Makefile shmtest.c

Log Message:
The SysV IPC tests have been converted to atf


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/regress/sys/kern/Makefile
cvs rdiff -u -r1.4 -r0 src/regress/sys/kern/sysvmsg/Makefile
cvs rdiff -u -r1.10 -r0 src/regress/sys/kern/sysvmsg/msgtest.c
cvs rdiff -u -r1.4 -r0 src/regress/sys/kern/sysvsem/Makefile
cvs rdiff -u -r1.6 -r0 src/regress/sys/kern/sysvsem/semtest.c
cvs rdiff -u -r1.4 -r0 src/regress/sys/kern/sysvshm/Makefile
cvs rdiff -u -r1.5 -r0 src/regress/sys/kern/sysvshm/shmtest.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/kern/Makefile
diff -u src/regress/sys/kern/Makefile:1.30 src/regress/sys/kern/Makefile:1.31
--- src/regress/sys/kern/Makefile:1.30	Fri Feb 20 21:45:47 2009
+++ src/regress/sys/kern/Makefile	Mon Nov  5 04:11:44 2012
@@ -1,7 +1,6 @@
-#	$NetBSD: Makefile,v 1.30 2009/02/20 21:45:47 jmmv Exp $
+#	$NetBSD: Makefile,v 1.31 2012/11/05 04:11:44 pgoyette Exp $
 
 SUBDIR+= execve getcwd lockf lockf2 ras \
-	 sigtramp sleeping sysvmsg sysvsem sysvshm \
-	 unfdpass
+	 sigtramp sleeping unfdpass
 
 .include bsd.subdir.mk



CVS commit: src/regress/sys/kern/ras

2012-11-02 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Fri Nov  2 14:53:04 UTC 2012

Modified Files:
src/regress/sys/kern/ras/ras1: ras1.c
src/regress/sys/kern/ras/ras2: ras2.c
src/regress/sys/kern/ras/ras3: ras3.c

Log Message:
our current gcc puts the loop after the RAS_END() label on several
platforms, adjust the code so that gcc does the right thing again.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/regress/sys/kern/ras/ras1/ras1.c
cvs rdiff -u -r1.10 -r1.11 src/regress/sys/kern/ras/ras2/ras2.c
cvs rdiff -u -r1.9 -r1.10 src/regress/sys/kern/ras/ras3/ras3.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/kern/ras/ras1/ras1.c
diff -u src/regress/sys/kern/ras/ras1/ras1.c:1.8 src/regress/sys/kern/ras/ras1/ras1.c:1.9
--- src/regress/sys/kern/ras/ras1/ras1.c:1.8	Mon Apr 28 20:23:07 2008
+++ src/regress/sys/kern/ras/ras1/ras1.c	Fri Nov  2 14:53:03 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: ras1.c,v 1.8 2008/04/28 20:23:07 martin Exp $ */
+/* $NetBSD: ras1.c,v 1.9 2012/11/02 14:53:03 chs Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -26,6 +26,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include stdlib.h
 #include errno.h
 #include inttypes.h
 #include stdio.h
@@ -73,12 +74,11 @@ main(void)
 	RAS_START(main);
 	count++;
 	if (count  COUNT)
-		goto end;
+		exit(handled != 0);
 
 	while (!handled) {
 		continue;
 	}
- end:
 	RAS_END(main);
 
 	return (handled != 0);

Index: src/regress/sys/kern/ras/ras2/ras2.c
diff -u src/regress/sys/kern/ras/ras2/ras2.c:1.10 src/regress/sys/kern/ras/ras2/ras2.c:1.11
--- src/regress/sys/kern/ras/ras2/ras2.c:1.10	Mon Apr 28 20:23:07 2008
+++ src/regress/sys/kern/ras/ras2/ras2.c	Fri Nov  2 14:53:03 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: ras2.c,v 1.10 2008/04/28 20:23:07 martin Exp $ */
+/* $NetBSD: ras2.c,v 1.11 2012/11/02 14:53:03 chs Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -26,6 +26,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include stdlib.h
 #include errno.h
 #include inttypes.h
 #include stdio.h
@@ -81,12 +82,11 @@ main(void)
 	RAS_START(main);
 	count++;
 	if (count  COUNT)
-		goto end;
+		exit(handled != 0);
 
 	while (!handled) {
 		continue;
 	}
-end:
 	RAS_END(main);
 
 	return (handled != 0);

Index: src/regress/sys/kern/ras/ras3/ras3.c
diff -u src/regress/sys/kern/ras/ras3/ras3.c:1.9 src/regress/sys/kern/ras/ras3/ras3.c:1.10
--- src/regress/sys/kern/ras/ras3/ras3.c:1.9	Mon Apr 28 20:23:07 2008
+++ src/regress/sys/kern/ras/ras3/ras3.c	Fri Nov  2 14:53:04 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: ras3.c,v 1.9 2008/04/28 20:23:07 martin Exp $ */
+/* $NetBSD: ras3.c,v 1.10 2012/11/02 14:53:04 chs Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -26,6 +26,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include stdlib.h
 #include errno.h
 #include inttypes.h
 #include stdio.h
@@ -88,12 +89,11 @@ main(int argc, char *argv[])
 	RAS_START(main);
 	count++;
 	if (count  COUNT)
-		goto end;
+		exit(handled != 0);
 
 	while (!handled) {
 		continue;
 	}
-end:
 	RAS_END(main);
 
 	return (handled != 0);



CVS commit: src/regress/sys/kern/mqueue

2012-11-02 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Nov  3 05:22:24 UTC 2012

Removed Files:
src/regress/sys/kern/mqueue: Makefile mq_prio_test.c

Log Message:
The mqueue test has been atf-ified


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r0 src/regress/sys/kern/mqueue/Makefile \
src/regress/sys/kern/mqueue/mq_prio_test.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/regress/usr.bin/rtld/testlib

2012-08-10 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri Aug 10 16:04:28 UTC 2012

Modified Files:
src/regress/usr.bin/rtld/testlib: Makefile

Log Message:
Use LIBISCXX.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/regress/usr.bin/rtld/testlib/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/usr.bin/rtld/testlib/Makefile
diff -u src/regress/usr.bin/rtld/testlib/Makefile:1.9 src/regress/usr.bin/rtld/testlib/Makefile:1.10
--- src/regress/usr.bin/rtld/testlib/Makefile:1.9	Sun Mar  2 16:01:14 2008
+++ src/regress/usr.bin/rtld/testlib/Makefile	Fri Aug 10 16:04:28 2012
@@ -1,17 +1,17 @@
-# $NetBSD: Makefile,v 1.9 2008/03/02 16:01:14 jwise Exp $
+# $NetBSD: Makefile,v 1.10 2012/08/10 16:04:28 joerg Exp $
 
 NOPROFILE=	yes
 
 SRCS=	ccexc.cc construct.cc virt.cc
 
 LIB=	test
+LIBISCXX=	yes
 TESTLIB=	testlib.so
 
 CLEANFILES+=	${TESTLIB}
 SHLIB_MAJOR=	1
 SHLIB_MINOR=	0
 #CXXFLAGS+= -fno-rtti
-LDADD+=	-lstdc++ -lm -lgcc_s
 
 .if ${MACHINE_ARCH} == i386  ${MKPIC} != no
 all realall:	${TESTLIB}



CVS commit: src/regress/lib/libc/cdb

2012-07-22 Thread Mindaugas Rasiukevicius
Module Name:src
Committed By:   rmind
Date:   Sun Jul 22 11:30:14 UTC 2012

Removed Files:
src/regress/lib/libc/cdb: cdb_test.c

Log Message:
Revert the test addition.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/cdb/cdb_test.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/regress/lib/libc/cdb

2012-07-21 Thread Mindaugas Rasiukevicius
Module Name:src
Committed By:   rmind
Date:   Sat Jul 21 22:22:55 UTC 2012

Added Files:
src/regress/lib/libc/cdb: cdb_test.c

Log Message:
Add a simple test for cdb(5).


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/regress/lib/libc/cdb/cdb_test.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/regress/lib/libc/cdb/cdb_test.c
diff -u /dev/null src/regress/lib/libc/cdb/cdb_test.c:1.1
--- /dev/null	Sat Jul 21 22:22:55 2012
+++ src/regress/lib/libc/cdb/cdb_test.c	Sat Jul 21 22:22:55 2012
@@ -0,0 +1,90 @@
+/*	$NetBSD: cdb_test.c,v 1.1 2012/07/21 22:22:55 rmind Exp $	*/
+
+/*
+ * This file is in the Public Domain.
+ */
+
+#include stdio.h
+#include stdlib.h
+#include fcntl.h
+#include unistd.h
+#include inttypes.h
+#include assert.h
+
+#include cdbr.h
+#include cdbw.h
+
+#define	CDB_FILE		/tmp/test.cdb
+
+#define DATASOURCE_SIZE		8192
+
+static uint64_t			k[DATASOURCE_SIZE];
+static uint64_t			d[DATASOURCE_SIZE];
+
+static void
+build_cdb(uint32_t (*seedgen)(void))
+{
+	struct cdbw *cdbw = cdbw_open();
+	int i, fd, ret;
+
+	for (i = 0; i  DATASOURCE_SIZE; i++) {
+		k[i] = ((uint64_t)i  32UL) | random();
+		d[i] = random();
+		ret = cdbw_put(cdbw, k[i], sizeof(k[0]), d[i], sizeof(d[0]));
+		assert(ret == 0);
+	}
+
+	fd = open(CDB_FILE, O_RDWR | O_CREAT, 0644);
+	assert(fd  0);
+
+	ret = cdbw_output(cdbw, fd, test, seedgen);
+	assert(ret == 0);
+
+	cdbw_close(cdbw);
+	close(fd);
+}
+
+static void
+test_cdb(void)
+{
+	struct cdbr *cdbr = cdbr_open(CDB_FILE, CDBR_DEFAULT);
+	int i, ret;
+
+	assert(cdbr != NULL);
+	assert(cdbr_entries(cdbr) == DATASOURCE_SIZE);
+
+	for (i = 0; i  DATASOURCE_SIZE; i++) {
+		const void *val;
+		size_t len;
+
+		ret = cdbr_find(cdbr, k[i], sizeof(k[0]), val, len);
+		assert(ret == 0);
+		assert(len == sizeof(uint64_t));
+
+		const uint64_t num = *(const uint64_t *)val;
+		if (d[i] == num) {
+			continue;
+		}
+		fprintf(stderr, %d: 0x%PRIu64 != 0x%PRIu64\n, i, d[i], num);
+		abort();
+	}
+	cdbr_close(cdbr);
+}
+
+int
+main(int argc, char **argv)
+{
+	int i;
+
+	srandom(time(NULL) ^ getpid());
+
+	for (i = 0; i  64; i++) {
+		build_cdb((uint32_t (*)(void))random);
+		test_cdb();
+
+		build_cdb(cdbw_stable_seeder);
+		test_cdb();
+	}
+
+	return 0;
+}



CVS commit: src/regress/lib/libc

2012-03-18 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Sun Mar 18 07:54:00 UTC 2012

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/int_fmtio: Makefile fmtio_check.c

Log Message:
The inttypes(3) check has already been moved to ATF.


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.4 -r0 src/regress/lib/libc/int_fmtio/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/int_fmtio/fmtio_check.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.80 src/regress/lib/libc/Makefile:1.81
--- src/regress/lib/libc/Makefile:1.80	Sat Apr  9 17:55:51 2011
+++ src/regress/lib/libc/Makefile	Sun Mar 18 07:54:00 2012
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.80 2011/04/09 17:55:51 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.81 2012/03/18 07:54:00 jruoho Exp $
 
-SUBDIR+= citrus divrem int_fmtio
+SUBDIR+= citrus divrem
 
 .include bsd.own.mk
 .include bsd.sys.mk



CVS commit: src/regress/sys/kern/ipf

2012-01-30 Thread Darren Reed
Module Name:src
Committed By:   darrenr
Date:   Mon Jan 30 16:06:52 UTC 2012

Update of /cvsroot/src/regress/sys/kern/ipf
In directory ivanova.netbsd.org:/tmp/cvs-serv20794

Log Message:
Import IPFilter 5.1.1

Status:

Vendor Tag: DARRENR
Release Tags:   v5-1-1

C src/regress/sys/kern/ipf/iptest
C src/regress/sys/kern/ipf/bpftest
C src/regress/sys/kern/ipf/itest
C src/regress/sys/kern/ipf/nattest
C src/regress/sys/kern/ipf/test.format
C src/regress/sys/kern/ipf/vfycksum.pl
N src/regress/sys/kern/ipf/ipflib.sh
C src/regress/sys/kern/ipf/natipftest
C src/regress/sys/kern/ipf/intest
C src/regress/sys/kern/ipf/dotest
U src/regress/sys/kern/ipf/dotest6
C src/regress/sys/kern/ipf/ptest
U src/regress/sys/kern/ipf/README.TXT
C src/regress/sys/kern/ipf/logtest
C src/regress/sys/kern/ipf/mtest
N src/regress/sys/kern/ipf/expected/n2_6
C src/regress/sys/kern/ipf/expected/ni23
N src/regress/sys/kern/ipf/expected/p4
C src/regress/sys/kern/ipf/expected/f13
N src/regress/sys/kern/ipf/expected/in102
N src/regress/sys/kern/ipf/expected/ip3
N src/regress/sys/kern/ipf/expected/n14_6
U src/regress/sys/kern/ipf/expected/f19
C src/regress/sys/kern/ipf/expected/ni11
U src/regress/sys/kern/ipf/expected/f7
N src/regress/sys/kern/ipf/expected/f21
N src/regress/sys/kern/ipf/expected/n8_6
N src/regress/sys/kern/ipf/expected/p10
C src/regress/sys/kern/ipf/expected/n17
C src/regress/sys/kern/ipf/expected/ni6
U src/regress/sys/kern/ipf/expected/i16
C src/regress/sys/kern/ipf/expected/n7
U src/regress/sys/kern/ipf/expected/ipv6.5
C src/regress/sys/kern/ipf/expected/i7
N src/regress/sys/kern/ipf/expected/n100
U src/regress/sys/kern/ipf/expected/ipv6.2
U src/regress/sys/kern/ipf/expected/in7
C src/regress/sys/kern/ipf/expected/i11
C src/regress/sys/kern/ipf/expected/i19.dist
C src/regress/sys/kern/ipf/expected/n10
U src/regress/sys/kern/ipf/expected/ni1
N src/regress/sys/kern/ipf/expected/n9_6
U src/regress/sys/kern/ipf/expected/i23
N src/regress/sys/kern/ipf/expected/f26
U src/regress/sys/kern/ipf/expected/ni16
U src/regress/sys/kern/ipf/expected/f14
N src/regress/sys/kern/ipf/expected/n15_6
C src/regress/sys/kern/ipf/expected/l1
N src/regress/sys/kern/ipf/expected/p9
C src/regress/sys/kern/ipf/expected/p3
N src/regress/sys/kern/ipf/expected/n1_6
N src/regress/sys/kern/ipf/expected/in101
U src/regress/sys/kern/ipf/expected/f10
N src/regress/sys/kern/ipf/expected/p7
C src/regress/sys/kern/ipf/expected/ni20
N src/regress/sys/kern/ipf/expected/f28
N src/regress/sys/kern/ipf/expected/f22
U src/regress/sys/kern/ipf/expected/f4
C src/regress/sys/kern/ipf/expected/ni12
N src/regress/sys/kern/ipf/expected/ni18
C src/regress/sys/kern/ipf/expected/ni5
C src/regress/sys/kern/ipf/expected/n14
N src/regress/sys/kern/ipf/expected/p13
C src/regress/sys/kern/ipf/expected/i9
C src/regress/sys/kern/ipf/expected/ipv6.6
N src/regress/sys/kern/ipf/expected/n104
C src/regress/sys/kern/ipf/expected/n4
C src/regress/sys/kern/ipf/expected/i3
U src/regress/sys/kern/ipf/expected/i15
C src/regress/sys/kern/ipf/expected/in3
C src/regress/sys/kern/ipf/expected/i12
N src/regress/sys/kern/ipf/expected/n200
U src/regress/sys/kern/ipf/expected/in4
U src/regress/sys/kern/ipf/expected/i18
U src/regress/sys/kern/ipf/expected/ipv6.1
C src/regress/sys/kern/ipf/expected/n9
N src/regress/sys/kern/ipf/expected/n103
C src/regress/sys/kern/ipf/expected/i4
C src/regress/sys/kern/ipf/expected/n3
C src/regress/sys/kern/ipf/expected/i20
C src/regress/sys/kern/ipf/expected/ni2
C src/regress/sys/kern/ipf/expected/n13
U src/regress/sys/kern/ipf/expected/ni8
U src/regress/sys/kern/ipf/expected/ni15
U src/regress/sys/kern/ipf/expected/f9
N src/regress/sys/kern/ipf/expected/f25
U src/regress/sys/kern/ipf/expected/f3
U src/regress/sys/kern/ipf/expected/f17
N src/regress/sys/kern/ipf/expected/f27
N src/regress/sys/kern/ipf/expected/n4_6
U src/regress/sys/kern/ipf/expected/f1
N src/regress/sys/kern/ipf/expected/n12_6
N src/regress/sys/kern/ipf/expected/ni17
U src/regress/sys/kern/ipf/expected/f15
C src/regress/sys/kern/ipf/expected/p2
U src/regress/sys/kern/ipf/expected/bpf1
N src/regress/sys/kern/ipf/expected/n101
U src/regress/sys/kern/ipf/expected/ipv6.3
C src/regress/sys/kern/ipf/expected/i6
C src/regress/sys/kern/ipf/expected/n1
C src/regress/sys/kern/ipf/expected/i10
C src/regress/sys/kern/ipf/expected/in6
N src/regress/sys/kern/ipf/expected/n202
C src/regress/sys/kern/ipf/expected/n11
N src/regress/sys/kern/ipf/expected/i22
U src/regress/sys/kern/ipf/expected/ni7
C src/regress/sys/kern/ipf/expected/n16
N src/regress/sys/kern/ipf/expected/p11
C src/regress/sys/kern/ipf/expected/i17
C src/regress/sys/kern/ipf/expected/in1
N src/regress/sys/kern/ipf/expected/n106
N src/regress/sys/kern/ipf/expected/ipv6.4
C src/regress/sys/kern/ipf/expected/l1.b
C src/regress/sys/kern/ipf/expected/n6
C src/regress/sys/kern/ipf/expected/i1
C src/regress/sys/kern/ipf/expected/p5
C src/regress/sys/kern/ipf/expected/f18
C src/regress/sys/kern/ipf/expected/ip2
U 

CVS commit: src/regress/sys/kern/select

2011-11-02 Thread YAMAMOTO Takashi
Module Name:src
Committed By:   yamt
Date:   Wed Nov  2 16:49:12 UTC 2011

Modified Files:
src/regress/sys/kern/select: select.c

Log Message:
- count the number of bits correctly
- more check
- tweak numbers
- use more accurate time


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/regress/sys/kern/select/select.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/kern/select/select.c
diff -u src/regress/sys/kern/select/select.c:1.2 src/regress/sys/kern/select/select.c:1.3
--- src/regress/sys/kern/select/select.c:1.2	Fri Mar 21 16:03:33 2008
+++ src/regress/sys/kern/select/select.c	Wed Nov  2 16:49:12 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: select.c,v 1.2 2008/03/21 16:03:33 ad Exp $	*/
+/*	$NetBSD: select.c,v 1.3 2011/11/02 16:49:12 yamt Exp $	*/
 
 /*-
  * Copyright (c)2008 YAMAMOTO Takashi,
@@ -29,10 +29,13 @@
 #define	FD_SETSIZE	65536
 #include sys/select.h
 #include sys/atomic.h
+#include sys/time.h
 
+#include assert.h
 #include errno.h
 #include fcntl.h
 #include pthread.h
+#include stdint.h
 #include stdio.h
 #include stdlib.h
 #include string.h
@@ -40,6 +43,7 @@
 
 #define	NPIPE	128
 #define	NTHREAD	64
+#define	NBALLS	5
 #define	VERBOSE	0
 
 #if !defined(RANDOM_MAX)
@@ -48,7 +52,7 @@
 
 int fds[NPIPE][2];
 
-unsigned count;
+volatile unsigned count;
 
 pthread_barrier_t barrier;
 
@@ -97,10 +101,11 @@ f(void *dummy)
 	abort();
 }
 if (random()  1) {
+	assert(!FD_ISSET(fd, set));
 	FD_SET(fd, set);
+	nfd++;
 	if (fd  maxfd) {
 		maxfd = fd;
-		nfd++;
 	}
 }
 			}
@@ -127,6 +132,12 @@ f(void *dummy)
 			(void *)pthread_self(), ret);
 			abort();
 		}
+		if (ret  NBALLS) {
+			fprintf(stderr, [%p] unexpected return value %d
+			  NBALLS\n,
+			(void *)pthread_self(), ret);
+			abort();
+		}
 		nfd = 0;
 		for (fd = 0; fd = maxfd; fd++) {
 			if (FD_ISSET(fd, set)) {
@@ -167,6 +178,10 @@ main(int argc, char *argv[])
 	pthread_t pt[NTHREAD];
 	int i;
 	unsigned int secs;
+	struct timeval start_tv;
+	struct timeval end_tv;
+	uint64_t usecs;
+	unsigned int result;
 
 	secs = atoi(argv[1]);
 
@@ -190,12 +205,17 @@ main(int argc, char *argv[])
 		}
 	}
 	pthread_barrier_wait(barrier);
-	dowrite();
-	dowrite();
-	dowrite();
-	dowrite();
-
+	gettimeofday(start_tv, NULL);
+	assert(count == 0);
+	for (i = 0; i  NBALLS; i++) {
+		dowrite();
+	}
 	sleep(secs);
-	printf(%u / %u = %lf\n, count, secs, (double)count / secs);
+	gettimeofday(end_tv, NULL);
+	result = count;
+	usecs = (end_tv.tv_sec - start_tv.tv_sec) * 100
+	+ end_tv.tv_usec - start_tv.tv_usec;
+	printf(%u / %f = %f\n, result, (double)usecs / 100,
+	(double)result / usecs * 100);
 	exit(EXIT_SUCCESS);
 }



CVS commit: src/regress/sys/net/ether_aton_r

2011-11-01 Thread Wolfgang Solfrank
Module Name:src
Committed By:   ws
Date:   Tue Nov  1 12:52:28 UTC 2011

Modified Files:
src/regress/sys/net/ether_aton_r: autogen

Log Message:
Replace ed usage with awk script.
Fixes PR toolchain/45532, generating the exact same output as previously.
Note that it doesn't address Tsutsui's additional check request.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/regress/sys/net/ether_aton_r/autogen

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/net/ether_aton_r/autogen
diff -u src/regress/sys/net/ether_aton_r/autogen:1.1 src/regress/sys/net/ether_aton_r/autogen:1.2
--- src/regress/sys/net/ether_aton_r/autogen:1.1	Wed May 19 21:55:36 2010
+++ src/regress/sys/net/ether_aton_r/autogen	Tue Nov  1 12:52:28 2011
@@ -1,26 +1,25 @@
 #!/bin/sh
 
-cat  __EOF  $2
-
-#include ctype.h
-#include sys/types.h
-#include errno.h
-
-#define ETHER_ADDR_LEN 6
-
-int ether_aton_r(u_char *dest, size_t len, const char *str);
-
-__EOF
-
-ed $1  _EOF  /dev/null 21
-1
-/^ether_aton_r/
--
--
-1,.d
-/^}$/
-+
-.,\$d
-W $2
-q
-_EOF
+awk '
+BEGIN {
+	print
+	print #include ctype.h
+	print #include sys/types.h
+	print #include errno.h
+	print
+	print #define ETHER_ADDR_LEN 6
+	print
+	print int ether_aton_r(u_char *dest, size_t len, const char *str);
+	print
+}
+/^ether_aton_r/ {
+	print prevline
+	out = 1
+}
+{
+	if (out) print
+	else prevline = $0
+}
+/^}$/ {
+	if (out) exit(0)
+}' $1 $2



CVS commit: src/regress/sys/net/ether_aton_r

2011-11-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Nov  1 13:59:00 UTC 2011

Modified Files:
src/regress/sys/net/ether_aton_r: main.c

Log Message:
Test all digits.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/regress/sys/net/ether_aton_r/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/net/ether_aton_r/main.c
diff -u src/regress/sys/net/ether_aton_r/main.c:1.2 src/regress/sys/net/ether_aton_r/main.c:1.3
--- src/regress/sys/net/ether_aton_r/main.c:1.2	Wed May 19 17:59:34 2010
+++ src/regress/sys/net/ether_aton_r/main.c	Tue Nov  1 09:59:00 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.2 2010/05/19 21:59:34 christos Exp $	*/
+/*	$NetBSD: main.c,v 1.3 2011/11/01 13:59:00 christos Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: main.c,v 1.2 2010/05/19 21:59:34 christos Exp $);
+__RCSID($NetBSD: main.c,v 1.3 2011/11/01 13:59:00 christos Exp $);
 
 #include stdio.h
 #include ctype.h
@@ -49,24 +49,25 @@ __RCSID($NetBSD: main.c,v 1.2 2010/05/1
 
 int ether_aton_r(u_char *dest, size_t len, const char *str);
 
+static const struct {
+	u_char res[ETHER_ADDR_LEN];
+	const char *str;
+	int error;
+} tests[] = {
+	{ { 0x01, 0x23, 0x45, 0x67, 0x89, 0xab }, 01:23:45:67:89:ab, 0 },
+	{ { 0x00, 0x01, 0x22, 0x03, 0x14, 0x05 }, 0:1:22-3:14:05, 0 },
+	{ { 0x00, 0x01, 0x22, 0x03, 0x14, 0x05 }, 000122031405, 0 },
+	{ { 0x0a, 0x0B, 0xcc, 0xdD, 0xEE, 0x0f }, 0a0BccdDEE0f, 0 },
+#define ZERO { 0, 0, 0, 0, 0, 0 }
+	{ ZERO,	0:1:2-3:04:05:06, ENAMETOOLONG },
+	{ ZERO,	0:1:2-3:04:, ENOBUFS },
+	{ ZERO,	0:1:2-3:04:x7, EINVAL },
+	{ ZERO,	1:x-3:04:05:7, EINVAL },
+	{ ZERO,	NULL, 0 },
+};
 int
 main(int argc, char *argv[])
 {
-	static const struct {
-		u_char res[ETHER_ADDR_LEN];
-		const char *str;
-		int error;
-	} tests[] = {
-#define ZERO { 0, 0, 0, 0, 0, 0 }
-	{ { 0, 1, 0x22, 3, 0x14, 5 }, 0:1:22-3:14:05, 0 },
-	{ { 0, 1, 0x22, 3, 0x14, 5 }, 000122031405, 0 },
-	{ { 0xa, 0xB, 0xcc, 0xdD, 0xEE, 0xf }, 0a0BccdDEE0f, 0 },
-	{ ZERO,			  0:1:2-3:04:05:06, ENAMETOOLONG },
-	{ ZERO,			  0:1:2-3:04:, ENOBUFS },
-	{ ZERO,			  0:1:2-3:04:x7, EINVAL },
-	{ ZERO,			  1:x-3:04:05:7, EINVAL },
-	{ ZERO,			  NULL, 0 },
-	};
 	u_char dest[ETHER_ADDR_LEN];
 	size_t t;
 	int e, r;



CVS commit: src/regress/sys/net

2011-11-01 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Nov  1 23:07:34 UTC 2011

Modified Files:
src/regress/sys/net: Makefile
Removed Files:
src/regress/sys/net/ether_aton_r: Makefile autogen main.c

Log Message:
ether_aton test has been atf-ified


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/regress/sys/net/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/sys/net/ether_aton_r/Makefile \
src/regress/sys/net/ether_aton_r/autogen
cvs rdiff -u -r1.3 -r0 src/regress/sys/net/ether_aton_r/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/net/Makefile
diff -u src/regress/sys/net/Makefile:1.2 src/regress/sys/net/Makefile:1.3
--- src/regress/sys/net/Makefile:1.2	Wed May 19 21:55:35 2010
+++ src/regress/sys/net/Makefile	Tue Nov  1 23:07:34 2011
@@ -1,7 +1,7 @@
-#	$NetBSD: Makefile,v 1.2 2010/05/19 21:55:35 christos Exp $
+#	$NetBSD: Makefile,v 1.3 2011/11/01 23:07:34 pgoyette Exp $
 
 .include bsd.own.mk
 
-SUBDIR= bpf ether_aton_r
+SUBDIR= bpf
 
 .include bsd.subdir.mk



CVS commit: src/regress/sys/arch/arm/abort-fixup

2011-10-17 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Mon Oct 17 16:39:15 UTC 2011

Modified Files:
src/regress/sys/arch/arm/abort-fixup: abortfixup.c

Log Message:
Fix typo in output.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/regress/sys/arch/arm/abort-fixup/abortfixup.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/arch/arm/abort-fixup/abortfixup.c
diff -u src/regress/sys/arch/arm/abort-fixup/abortfixup.c:1.9 src/regress/sys/arch/arm/abort-fixup/abortfixup.c:1.10
--- src/regress/sys/arch/arm/abort-fixup/abortfixup.c:1.9	Wed May 18 19:44:18 2011
+++ src/regress/sys/arch/arm/abort-fixup/abortfixup.c	Mon Oct 17 16:39:15 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: abortfixup.c,v 1.9 2011/05/18 19:44:18 mellon Exp $ */
+/* $NetBSD: abortfixup.c,v 1.10 2011/10/17 16:39:15 mbalmer Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 
 #include sys/types.h
 
-__RCSID($NetBSD: abortfixup.c,v 1.9 2011/05/18 19:44:18 mellon Exp $);
+__RCSID($NetBSD: abortfixup.c,v 1.10 2011/10/17 16:39:15 mbalmer Exp $);
 
 #include setjmp.h
 #include signal.h
@@ -73,7 +73,7 @@ main(void)
 			str r1, [r0], r1, ror #10);
 		
 		/* Should not be reached if OK */
-		printf(!!! Regression test FAILED - no SEGV recieved\n);
+		printf(!!! Regression test FAILED - no SEGV received\n);
 		exit(1);
 	}
 
@@ -88,7 +88,7 @@ main(void)
 			str r1, [r0, r1, ror #10]);
 		
 		/* Should not be reached if OK */
-		printf(!!! Regression test FAILED - no SEGV recieved\n);
+		printf(!!! Regression test FAILED - no SEGV received\n);
 		exit(1);
 	}
 



CVS commit: src/regress/sys/kern/getcwd

2011-08-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Aug 18 02:32:32 UTC 2011

Modified Files:
src/regress/sys/kern/getcwd: Makefile getcwd.c

Log Message:
provide the out of address space test in a gcc-4.5 friendly way.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/regress/sys/kern/getcwd/Makefile
cvs rdiff -u -r1.9 -r1.10 src/regress/sys/kern/getcwd/getcwd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/kern/getcwd/Makefile
diff -u src/regress/sys/kern/getcwd/Makefile:1.6 src/regress/sys/kern/getcwd/Makefile:1.7
--- src/regress/sys/kern/getcwd/Makefile:1.6	Tue Jun 21 22:49:43 2011
+++ src/regress/sys/kern/getcwd/Makefile	Wed Aug 17 22:32:32 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.6 2011/06/22 02:49:43 mrg Exp $
+#	$NetBSD: Makefile,v 1.7 2011/08/18 02:32:32 christos Exp $
 
 NOMAN=		# defined
 LDSTATIC=	-static
@@ -15,8 +15,3 @@
 	@find /usr -type d -print | ./getcwd -s
 
 .include bsd.prog.mk
-
-# getcwd.c has an on-purpuse array bounds violation
-.if ${HAVE_GCC} == 45
-COPTS.getcwd.c+= -Wno-error
-.endif

Index: src/regress/sys/kern/getcwd/getcwd.c
diff -u src/regress/sys/kern/getcwd/getcwd.c:1.9 src/regress/sys/kern/getcwd/getcwd.c:1.10
--- src/regress/sys/kern/getcwd/getcwd.c:1.9	Mon Apr 28 16:23:06 2008
+++ src/regress/sys/kern/getcwd/getcwd.c	Wed Aug 17 22:32:32 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: getcwd.c,v 1.9 2008/04/28 20:23:06 martin Exp $	*/
+/*	$NetBSD: getcwd.c,v 1.10 2011/08/18 02:32:32 christos Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -343,7 +343,7 @@
 	CHECK(/, __getcwd(kbuf, 0xdeadbeef), -1, ERANGE); /* large negative */
 	CHECK(/, __getcwd(kbuf, 0x7000beef), 2, 0); /* large positive, rounds down */
 	CHECK(/, __getcwd(kbuf, 0x1), 2, 0); /* slightly less large positive, rounds down */
-	CHECK(/, __getcwd(kbuf+0x10, sizeof(kbuf)), -1, EFAULT); /* outside address space */	
+	CHECK(/, __getcwd((void *)0x1, sizeof(kbuf)), -1, EFAULT); /* outside address space */	
 	CHECK(/, __getcwd(0, 30), -1, EFAULT);
 	CHECK(/, __getcwd((void*)0xdeadbeef, 30), -1, EFAULT);
 	CHECK(/, __getcwd(kbuf, 2), 2, 0);



CVS commit: src/regress/sys/fs/lseek

2011-08-16 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Tue Aug 16 13:15:04 UTC 2011

Modified Files:
src/regress/sys/fs/lseek: lseek.c

Log Message:
Fix missing comma in errx() in normally not compiled code.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/regress/sys/fs/lseek/lseek.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/fs/lseek/lseek.c
diff -u src/regress/sys/fs/lseek/lseek.c:1.7 src/regress/sys/fs/lseek/lseek.c:1.8
--- src/regress/sys/fs/lseek/lseek.c:1.7	Mon May 16 12:43:59 2011
+++ src/regress/sys/fs/lseek/lseek.c	Tue Aug 16 13:15:04 2011
@@ -79,7 +79,7 @@
 		returns the current position\n);
 	cur = lseek(fd, st.st_size-50, SEEK_DATA);
 	if (cur != st.st_size - 50) {
-		errx(EXIT_FAILURESeek data didn't give passed seek position 
+		errx(EXIT_FAILURE, Seek data didn't give passed seek position 
 		back % PRIi64  should be % PRIi64, cur, st.st_size-50);
 		return EXIT_FAILURE;
 	}



CVS commit: src/regress/sys/uvm/mmap

2011-07-14 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Thu Jul 14 08:12:20 UTC 2011

Removed Files:
src/regress/sys/uvm/mmap: Makefile mmap.c

Log Message:
../regress/sys/uvm/mmap/mmap.c is now part of tests(7).


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r0 src/regress/sys/uvm/mmap/Makefile
cvs rdiff -u -r1.19 -r0 src/regress/sys/uvm/mmap/mmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/regress/sys/uvm

2011-07-14 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Thu Jul 14 10:27:36 UTC 2011

Modified Files:
src/regress/sys/uvm: Makefile

Log Message:
Remove mmap subdir.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/regress/sys/uvm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/uvm/Makefile
diff -u src/regress/sys/uvm/Makefile:1.8 src/regress/sys/uvm/Makefile:1.9
--- src/regress/sys/uvm/Makefile:1.8	Fri May 20 13:36:12 2011
+++ src/regress/sys/uvm/Makefile	Thu Jul 14 10:27:36 2011
@@ -1,8 +1,8 @@
-#	$NetBSD: Makefile,v 1.8 2011/05/20 13:36:12 joerg Exp $
+#	$NetBSD: Makefile,v 1.9 2011/07/14 10:27:36 jruoho Exp $
 
 .include bsd.own.mk
 
-SUBDIR+= mmap loan1
+SUBDIR+= loan1
 
 .if !empty(SUPPORTED_CC:Mgcc)
 SUBDIR+= stack_exec



CVS commit: src/regress/sys/kern/lockf

2011-05-24 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue May 24 16:04:14 UTC 2011

Modified Files:
src/regress/sys/kern/lockf: lockf.c

Log Message:
Use proper format string


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/regress/sys/kern/lockf/lockf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/kern/lockf/lockf.c
diff -u src/regress/sys/kern/lockf/lockf.c:1.7 src/regress/sys/kern/lockf/lockf.c:1.8
--- src/regress/sys/kern/lockf/lockf.c:1.7	Mon Apr 28 20:23:07 2008
+++ src/regress/sys/kern/lockf/lockf.c	Tue May 24 16:04:14 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: lockf.c,v 1.7 2008/04/28 20:23:07 martin Exp $	*/
+/*	$NetBSD: lockf.c,v 1.8 2011/05/24 16:04:14 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
 	fd = open (lockfile, O_RDWR, 0);
 	
 	if (fd  0)
-		err(1, lockfile);
+		err(1, %s, lockfile);
 	
 	printf(%d: start\n, id);
 	



CVS commit: src/regress/sys/uvm/mmap

2011-05-24 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue May 24 16:11:08 UTC 2011

Modified Files:
src/regress/sys/uvm/mmap: mmap.c

Log Message:
Fix format string


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/regress/sys/uvm/mmap/mmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/uvm/mmap/mmap.c
diff -u src/regress/sys/uvm/mmap/mmap.c:1.18 src/regress/sys/uvm/mmap/mmap.c:1.19
--- src/regress/sys/uvm/mmap/mmap.c:1.18	Mon Apr 28 20:23:07 2008
+++ src/regress/sys/uvm/mmap/mmap.c	Tue May 24 16:11:08 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: mmap.c,v 1.18 2008/04/28 20:23:07 martin Exp $	*/
+/*	$NetBSD: mmap.c,v 1.19 2011/05/24 16:11:08 joerg Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -433,7 +433,7 @@
 		if (vec[i] != 0)
 			resident++;
 		if (verbose)
-			printf(page 0x%lx is %sresident\n,
+			printf(page 0x%p is %sresident\n,
 			addr + (i * pgsize), vec[i] ?  : not );
 	}
 



CVS commit: src/regress/sys/uvm

2011-05-20 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri May 20 13:36:12 UTC 2011

Modified Files:
src/regress/sys/uvm: Makefile
src/regress/sys/uvm/stack_exec: Makefile
src/regress/sys/uvm/stack_noexec: Makefile

Log Message:
Require GCC for compilation


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/regress/sys/uvm/Makefile
cvs rdiff -u -r1.2 -r1.3 src/regress/sys/uvm/stack_exec/Makefile
cvs rdiff -u -r1.3 -r1.4 src/regress/sys/uvm/stack_noexec/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/uvm/Makefile
diff -u src/regress/sys/uvm/Makefile:1.7 src/regress/sys/uvm/Makefile:1.8
--- src/regress/sys/uvm/Makefile:1.7	Tue Sep  9 00:16:05 2008
+++ src/regress/sys/uvm/Makefile	Fri May 20 13:36:12 2011
@@ -1,8 +1,10 @@
-#	$NetBSD: Makefile,v 1.7 2008/09/09 00:16:05 gmcgarry Exp $
+#	$NetBSD: Makefile,v 1.8 2011/05/20 13:36:12 joerg Exp $
+
+.include bsd.own.mk
 
 SUBDIR+= mmap loan1
 
-.if !defined(HAVE_PCC)
+.if !empty(SUPPORTED_CC:Mgcc)
 SUBDIR+= stack_exec
 .endif
 
@@ -12,7 +14,7 @@
 #
 STACKNOX_ARCHS= alpha i386 powerpc sparc sparc64 x86_64
 
-.if !defined(HAVE_PCC)  !empty(STACKNOX_ARCHS:M${MACHINE_ARCH})
+.if !empty(SUPPORTED_CC:Mgcc)  !empty(STACKNOX_ARCHS:M${MACHINE_ARCH})
 SUBDIR+= stack_noexec
 .endif
 

Index: src/regress/sys/uvm/stack_exec/Makefile
diff -u src/regress/sys/uvm/stack_exec/Makefile:1.2 src/regress/sys/uvm/stack_exec/Makefile:1.3
--- src/regress/sys/uvm/stack_exec/Makefile:1.2	Sat Oct 14 20:57:10 2006
+++ src/regress/sys/uvm/stack_exec/Makefile	Fri May 20 13:36:12 2011
@@ -1,9 +1,12 @@
-# $NetBSD: Makefile,v 1.2 2006/10/14 20:57:10 bjh21 Exp $
+# $NetBSD: Makefile,v 1.3 2011/05/20 13:36:12 joerg Exp $
 
 NOMAN=	#
 PROG=	tramptest
 LDADD=	-lpthread
 
+UNSUPPORTED_COMPILER.clang=
+UNSUPPORTED_COMPILER.pcc=
+
 regress: ${PROG}
 	@if ./tramptest; then \
 		echo PASSED; \

Index: src/regress/sys/uvm/stack_noexec/Makefile
diff -u src/regress/sys/uvm/stack_noexec/Makefile:1.3 src/regress/sys/uvm/stack_noexec/Makefile:1.4
--- src/regress/sys/uvm/stack_noexec/Makefile:1.3	Sat Oct 14 20:57:10 2006
+++ src/regress/sys/uvm/stack_noexec/Makefile	Fri May 20 13:36:12 2011
@@ -1,7 +1,10 @@
-# $NetBSD: Makefile,v 1.3 2006/10/14 20:57:10 bjh21 Exp $
+# $NetBSD: Makefile,v 1.4 2011/05/20 13:36:12 joerg Exp $
 
 NOMAN=	#
 
+UNSUPPORTED_COMPILER.clang=
+UNSUPPORTED_COMPILER.pcc=
+
 .include bsd.own.mk
 #
 # tramptest.c relies on a trampoline generated by gcc,



CVS commit: src/regress/sys/arch/m68k/emuspeed

2011-05-18 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Wed May 18 18:41:59 UTC 2011

Modified Files:
src/regress/sys/arch/m68k/emuspeed: emuspeed.c

Log Message:
WARNSfy


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/regress/sys/arch/m68k/emuspeed/emuspeed.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/arch/m68k/emuspeed/emuspeed.c
diff -u src/regress/sys/arch/m68k/emuspeed/emuspeed.c:1.7 src/regress/sys/arch/m68k/emuspeed/emuspeed.c:1.8
--- src/regress/sys/arch/m68k/emuspeed/emuspeed.c:1.7	Mon Apr 28 20:23:06 2008
+++ src/regress/sys/arch/m68k/emuspeed/emuspeed.c	Wed May 18 18:41:59 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: emuspeed.c,v 1.7 2008/04/28 20:23:06 martin Exp $	*/
+/*	$NetBSD: emuspeed.c,v 1.8 2011/05/18 18:41:59 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -26,6 +26,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include err.h
 #include setjmp.h
 #include signal.h
 #include stdlib.h
@@ -38,9 +39,9 @@
 #define PRECISION 500
 
 const struct test {
-	char *name; 
+	const char *name; 
 	void (*func)(int);
-	char *comment;
+	const char *comment;
 } testlist[] = {
 	{Illegal, illegal, (test: unimplemented)},
 	{mulsl Da,Db, mul32sreg, (test: should be native)},
@@ -61,6 +62,7 @@
 
 jmp_buf jbuf;
 void illhand (int);
+int main(int, char *[]);
 
 int
 main(argc, argv)
@@ -94,7 +96,7 @@
 			t-func(count);
 			stop = clock();
 		} while ((stop - start)  PRECISION);
-		printf(%10d/s%s\n,
+		printf(%10lu/s%s\n,
 		CLOCKS_PER_SEC*(count /(stop - start)),
 		t-comment);
 	}



CVS commit: src/regress/sys/crypto

2011-05-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat May 14 16:26:23 UTC 2011

Modified Files:
src/regress/sys/crypto: Makefile.inc
src/regress/sys/crypto/blowfish: bftest.c
src/regress/sys/crypto/rijndael: rijndaeltest.c

Log Message:
Turn on WARNS to 4, so that magically -std=gnu99 gets turned on and fix
the few warnings. Since the kernel uses c99, this makes kernel code that
uses c99 features compile.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/regress/sys/crypto/Makefile.inc
cvs rdiff -u -r1.5 -r1.6 src/regress/sys/crypto/blowfish/bftest.c
cvs rdiff -u -r1.7 -r1.8 src/regress/sys/crypto/rijndael/rijndaeltest.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/crypto/Makefile.inc
diff -u src/regress/sys/crypto/Makefile.inc:1.7 src/regress/sys/crypto/Makefile.inc:1.8
--- src/regress/sys/crypto/Makefile.inc:1.7	Wed Sep 18 00:16:01 2002
+++ src/regress/sys/crypto/Makefile.inc	Sat May 14 12:26:23 2011
@@ -1,11 +1,11 @@
-#	$NetBSD: Makefile.inc,v 1.7 2002/09/18 04:16:01 lukem Exp $
+#	$NetBSD: Makefile.inc,v 1.8 2011/05/14 16:26:23 christos Exp $
 #	$KAME: Makefile.inc,v 1.3 2000/11/08 05:58:24 itojun Exp $
 
 .if !target(regress)
 .include bsd.own.mk
 
 SYSDIR=	${NETBSDSRCDIR}/sys
-WARNS?=	1
+WARNS?=	4
 
 regress:
 	@./${PROG}

Index: src/regress/sys/crypto/blowfish/bftest.c
diff -u src/regress/sys/crypto/blowfish/bftest.c:1.5 src/regress/sys/crypto/blowfish/bftest.c:1.6
--- src/regress/sys/crypto/blowfish/bftest.c:1.5	Sun Feb  6 01:05:19 2005
+++ src/regress/sys/crypto/blowfish/bftest.c	Sat May 14 12:26:23 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: bftest.c,v 1.5 2005/02/06 06:05:19 perry Exp $	*/
+/*	$NetBSD: bftest.c,v 1.6 2011/05/14 16:26:23 christos Exp $	*/
 /*	$KAME: bftest.c,v 1.3 2000/11/08 05:58:24 itojun Exp $	*/
 
 /*
@@ -97,7 +97,7 @@
 
 #include crypto/blowfish/blowfish.h
 
-static char *bf_key[2]={
+static const char *bf_key[2]={
 	abcdefghijklmnopqrstuvwxyz,
 	Who is John Galt?
 };
@@ -165,7 +165,8 @@
 	printf(testing blowfish in raw ecb mode\n);
 again:
 	for (n = 0; n  2; n++) {
-		BF_set_key(key, strlen(bf_key[n]), (unsigned char *)bf_key[n]);
+		BF_set_key(key, strlen(bf_key[n]),
+		(const unsigned char *)bf_key[n]);
 
 		hex2bin((u_int8_t *)plain, bf_plain[n]);
 		hex2bin((u_int8_t *)cipher, bf_cipher[n]);

Index: src/regress/sys/crypto/rijndael/rijndaeltest.c
diff -u src/regress/sys/crypto/rijndael/rijndaeltest.c:1.7 src/regress/sys/crypto/rijndael/rijndaeltest.c:1.8
--- src/regress/sys/crypto/rijndael/rijndaeltest.c:1.7	Thu May 11 21:56:39 2006
+++ src/regress/sys/crypto/rijndael/rijndaeltest.c	Sat May 14 12:26:23 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: rijndaeltest.c,v 1.7 2006/05/12 01:56:39 mrg Exp $	*/
+/*	$NetBSD: rijndaeltest.c,v 1.8 2011/05/14 16:26:23 christos Exp $	*/
 /*	$KAME: rijndaeltest.c,v 1.7 2001/05/27 01:56:45 itojun Exp $	*/
 
 /*
@@ -92,7 +92,7 @@
 	size_t l;
 	const char *s;
 {
-	int i;
+	size_t i;
 	u_int v;
 
 	for (i = 0; i  l  *s; i++) {



CVS commit: src/regress/lib/libc

2011-04-09 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Apr  9 17:55:54 UTC 2011

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/locale: Makefile
src/regress/lib/libc/locale/ctype1: Makefile ctype1.c
en_US.UTF-8.exp.uue en_US.UTF-8.in.uue ja_JP.ISO-2022-JP.exp.uue
ja_JP.ISO-2022-JP.in.uue ja_JP.SJIS.exp.uue ja_JP.SJIS.in.uue
ja_JP.eucJP.exp.uue ja_JP.eucJP.in.uue
src/regress/lib/libc/locale/ctype2: C.in.uue Makefile
en_US.UTF-8.in.uue ja_JP.ISO-2022-JP-2.in.uue ja_JP.SJIS.in.uue
ja_JP.eucJP.in.uue mbrtowc.c
src/regress/lib/libc/locale/ctype3: Makefile
src/regress/lib/libc/locale/mbtowc: Makefile en_US.UTF-8
ja_JP.ISO-2022-JP ja_JP.SJIS ja_JP.eucJP mbtowc_test.c
zh_CN.GB18030 zh_TW.Big5 zh_TW.eucTW
src/regress/lib/libc/locale/wcstod: Makefile wcstod_test.c
src/regress/lib/libc/locale/wctomb: Makefile Makefile.inc test.c
src/regress/lib/libc/locale/wctomb/iso2022-jp: Makefile iso2022-jp.c
src/regress/lib/libc/locale/wctomb/iso646: Makefile iso646.c

Log Message:
These tests have (finally) been atf-ified


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.4 -r0 src/regress/lib/libc/locale/Makefile
cvs rdiff -u -r1.4 -r0 src/regress/lib/libc/locale/ctype1/Makefile
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/locale/ctype1/ctype1.c
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/locale/ctype1/en_US.UTF-8.exp.uue \
src/regress/lib/libc/locale/ctype1/ja_JP.SJIS.exp.uue \
src/regress/lib/libc/locale/ctype1/ja_JP.eucJP.exp.uue
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/locale/ctype1/en_US.UTF-8.in.uue \
src/regress/lib/libc/locale/ctype1/ja_JP.ISO-2022-JP.exp.uue \
src/regress/lib/libc/locale/ctype1/ja_JP.ISO-2022-JP.in.uue \
src/regress/lib/libc/locale/ctype1/ja_JP.SJIS.in.uue \
src/regress/lib/libc/locale/ctype1/ja_JP.eucJP.in.uue
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/locale/ctype2/C.in.uue \
src/regress/lib/libc/locale/ctype2/en_US.UTF-8.in.uue \
src/regress/lib/libc/locale/ctype2/ja_JP.ISO-2022-JP-2.in.uue \
src/regress/lib/libc/locale/ctype2/ja_JP.SJIS.in.uue \
src/regress/lib/libc/locale/ctype2/ja_JP.eucJP.in.uue
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/locale/ctype2/Makefile \
src/regress/lib/libc/locale/ctype2/mbrtowc.c
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/locale/ctype3/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/locale/mbtowc/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/locale/mbtowc/en_US.UTF-8 \
src/regress/lib/libc/locale/mbtowc/ja_JP.ISO-2022-JP \
src/regress/lib/libc/locale/mbtowc/ja_JP.SJIS \
src/regress/lib/libc/locale/mbtowc/ja_JP.eucJP \
src/regress/lib/libc/locale/mbtowc/zh_CN.GB18030 \
src/regress/lib/libc/locale/mbtowc/zh_TW.Big5 \
src/regress/lib/libc/locale/mbtowc/zh_TW.eucTW
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/locale/mbtowc/mbtowc_test.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/locale/wcstod/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/locale/wcstod/wcstod_test.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/locale/wctomb/Makefile \
src/regress/lib/libc/locale/wctomb/Makefile.inc
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/locale/wctomb/test.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/locale/wctomb/iso2022-jp/Makefile
cvs rdiff -u -r1.2 -r0 \
src/regress/lib/libc/locale/wctomb/iso2022-jp/iso2022-jp.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/locale/wctomb/iso646/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/locale/wctomb/iso646/iso646.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.79 src/regress/lib/libc/Makefile:1.80
--- src/regress/lib/libc/Makefile:1.79	Tue Jan 11 16:34:27 2011
+++ src/regress/lib/libc/Makefile	Sat Apr  9 17:55:51 2011
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.79 2011/01/11 16:34:27 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.80 2011/04/09 17:55:51 pgoyette Exp $
 
-SUBDIR+= citrus divrem int_fmtio locale
+SUBDIR+= citrus divrem int_fmtio
 
 .include bsd.own.mk
 .include bsd.sys.mk



CVS commit: src/regress/sys/arch/i386/ldt

2011-03-17 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri Mar 18 03:06:22 UTC 2011

Modified Files:
src/regress/sys/arch/i386/ldt: testldt.c

Log Message:
Kill a redundant lvalue cast in assembler constrained.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/regress/sys/arch/i386/ldt/testldt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/arch/i386/ldt/testldt.c
diff -u src/regress/sys/arch/i386/ldt/testldt.c:1.14 src/regress/sys/arch/i386/ldt/testldt.c:1.15
--- src/regress/sys/arch/i386/ldt/testldt.c:1.14	Mon Apr 28 20:23:05 2008
+++ src/regress/sys/arch/i386/ldt/testldt.c	Fri Mar 18 03:06:21 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: testldt.c,v 1.14 2008/04/28 20:23:05 martin Exp $	*/
+/*	$NetBSD: testldt.c,v 1.15 2011/03/18 03:06:21 joerg Exp $	*/
 
 /*-
  * Copyright (c) 1993 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
 {
 	unsigned short _v;
 
-	__asm (movw %%cs,%0: =r ((unsigned short) _v));
+	__asm (movw %%cs,%0: =r (_v));
 	return _v;
 }
 



CVS commit: src/regress/lib/libc

2011-01-11 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Jan 11 16:34:28 UTC 2011

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/getaddrinfo: Makefile README answer-v4 answer-v4v6
gaitest.c testsuite.sh

Log Message:
The getqaddrinfo test has been atf-ified


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/getaddrinfo/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/getaddrinfo/README \
src/regress/lib/libc/getaddrinfo/answer-v4 \
src/regress/lib/libc/getaddrinfo/answer-v4v6
cvs rdiff -u -r1.6 -r0 src/regress/lib/libc/getaddrinfo/gaitest.c
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/getaddrinfo/testsuite.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.78 src/regress/lib/libc/Makefile:1.79
--- src/regress/lib/libc/Makefile:1.78	Sat Jan  8 18:42:47 2011
+++ src/regress/lib/libc/Makefile	Tue Jan 11 16:34:27 2011
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.78 2011/01/08 18:42:47 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.79 2011/01/11 16:34:27 pgoyette Exp $
 
-SUBDIR+= citrus divrem getaddrinfo int_fmtio locale
+SUBDIR+= citrus divrem int_fmtio locale
 
 .include bsd.own.mk
 .include bsd.sys.mk



CVS commit: src/regress/lib/libc/regex

2011-01-08 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Jan  8 18:13:42 UTC 2011

Removed Files:
src/regress/lib/libc/regex: Makefile debug.c debug.ih main.c main.ih
split.c tests

Log Message:
The regex test has been atf-ified


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r0 src/regress/lib/libc/regex/Makefile
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/regex/debug.c \
src/regress/lib/libc/regex/split.c src/regress/lib/libc/regex/tests
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/regex/debug.ih \
src/regress/lib/libc/regex/main.ih
cvs rdiff -u -r1.8 -r0 src/regress/lib/libc/regex/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/regress/lib/libc

2011-01-08 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Jan  8 18:42:48 UTC 2011

Modified Files:
src/regress/lib/libc: Makefile

Log Message:
Since the regex test is gone, don't try to descend into its SUBDIR


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/regress/lib/libc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.77 src/regress/lib/libc/Makefile:1.78
--- src/regress/lib/libc/Makefile:1.77	Sat Jan  8 07:02:17 2011
+++ src/regress/lib/libc/Makefile	Sat Jan  8 18:42:47 2011
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.77 2011/01/08 07:02:17 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.78 2011/01/08 18:42:47 pgoyette Exp $
 
-SUBDIR+= citrus divrem getaddrinfo int_fmtio locale regex
+SUBDIR+= citrus divrem getaddrinfo int_fmtio locale
 
 .include bsd.own.mk
 .include bsd.sys.mk



CVS commit: src/regress/lib/libc

2011-01-07 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Fri Jan  7 15:08:41 UTC 2011

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/db: Makefile README dbtest.c run.test

Log Message:
The db test has been atf-ified


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.19 -r0 src/regress/lib/libc/db/Makefile
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/db/README
cvs rdiff -u -r1.18 -r0 src/regress/lib/libc/db/dbtest.c
cvs rdiff -u -r1.11 -r0 src/regress/lib/libc/db/run.test

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.75 src/regress/lib/libc/Makefile:1.76
--- src/regress/lib/libc/Makefile:1.75	Fri Jan  7 02:51:38 2011
+++ src/regress/lib/libc/Makefile	Fri Jan  7 15:08:40 2011
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.75 2011/01/07 02:51:38 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.76 2011/01/07 15:08:40 pgoyette Exp $
 
-SUBDIR+= citrus db divrem getaddrinfo int_fmtio locale regex rpc
+SUBDIR+= citrus divrem getaddrinfo int_fmtio locale regex rpc
 
 .include bsd.own.mk
 .include bsd.sys.mk



CVS commit: src/regress/lib/libc

2011-01-07 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Jan  8 07:02:18 UTC 2011

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/rpc: Makefile Makefile.inc
src/regress/lib/libc/rpc/xdr: Makefile testbits.x xdrtest.c

Log Message:
rpc/xdr test has been atf-ified


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/rpc/Makefile \
src/regress/lib/libc/rpc/Makefile.inc
cvs rdiff -u -r1.10 -r0 src/regress/lib/libc/rpc/xdr/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/rpc/xdr/testbits.x
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/rpc/xdr/xdrtest.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.76 src/regress/lib/libc/Makefile:1.77
--- src/regress/lib/libc/Makefile:1.76	Fri Jan  7 15:08:40 2011
+++ src/regress/lib/libc/Makefile	Sat Jan  8 07:02:17 2011
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.76 2011/01/07 15:08:40 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.77 2011/01/08 07:02:17 pgoyette Exp $
 
-SUBDIR+= citrus divrem getaddrinfo int_fmtio locale regex rpc
+SUBDIR+= citrus divrem getaddrinfo int_fmtio locale regex
 
 .include bsd.own.mk
 .include bsd.sys.mk



CVS commit: src/regress/lib/libc

2011-01-06 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Thu Jan  6 17:22:15 UTC 2011

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/time: Makefile Makefile.inc
src/regress/lib/libc/time/mktime: Makefile mktime.c

Log Message:
mktime test has been atf-ified


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/time/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/time/Makefile.inc
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/time/mktime/Makefile \
src/regress/lib/libc/time/mktime/mktime.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.73 src/regress/lib/libc/Makefile:1.74
--- src/regress/lib/libc/Makefile:1.73	Wed Jan  5 21:20:25 2011
+++ src/regress/lib/libc/Makefile	Thu Jan  6 17:22:14 2011
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.73 2011/01/05 21:20:25 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.74 2011/01/06 17:22:14 pgoyette Exp $
 
-SUBDIR+= citrus db divrem getaddrinfo int_fmtio locale regex rpc sys time
+SUBDIR+= citrus db divrem getaddrinfo int_fmtio locale regex rpc sys
 
 .include bsd.own.mk
 .include bsd.sys.mk



CVS commit: src/regress/lib/libc

2011-01-06 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Fri Jan  7 02:51:39 UTC 2011

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/sys: Makefile Makefile.inc
src/regress/lib/libc/sys/cerror: Makefile cerror.c
src/regress/lib/libc/sys/ttyio: Makefile ioctl.c

Log Message:
cerror and ttyio tests have been atf-ified


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/sys/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/sys/Makefile.inc
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/sys/cerror/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/sys/cerror/cerror.c
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/sys/ttyio/Makefile \
src/regress/lib/libc/sys/ttyio/ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.74 src/regress/lib/libc/Makefile:1.75
--- src/regress/lib/libc/Makefile:1.74	Thu Jan  6 17:22:14 2011
+++ src/regress/lib/libc/Makefile	Fri Jan  7 02:51:38 2011
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.74 2011/01/06 17:22:14 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.75 2011/01/07 02:51:38 pgoyette Exp $
 
-SUBDIR+= citrus db divrem getaddrinfo int_fmtio locale regex rpc sys
+SUBDIR+= citrus db divrem getaddrinfo int_fmtio locale regex rpc
 
 .include bsd.own.mk
 .include bsd.sys.mk



CVS commit: src/regress/lib/libc/time

2011-01-05 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Jan  5 16:21:29 UTC 2011

Modified Files:
src/regress/lib/libc/time: Makefile
Removed Files:
src/regress/lib/libc/time/strptime: Makefile expected main.c tests

Log Message:
The strptime test has previously been atf-ified.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/regress/lib/libc/time/Makefile
cvs rdiff -u -r1.6 -r0 src/regress/lib/libc/time/strptime/Makefile \
src/regress/lib/libc/time/strptime/main.c
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/time/strptime/expected
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/time/strptime/tests

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/time/Makefile
diff -u src/regress/lib/libc/time/Makefile:1.2 src/regress/lib/libc/time/Makefile:1.3
--- src/regress/lib/libc/time/Makefile:1.2	Wed Aug 27 08:50:04 2008
+++ src/regress/lib/libc/time/Makefile	Wed Jan  5 16:21:29 2011
@@ -1,5 +1,5 @@
-#	$NetBSD: Makefile,v 1.2 2008/08/27 08:50:04 christos Exp $
+#	$NetBSD: Makefile,v 1.3 2011/01/05 16:21:29 pgoyette Exp $
 
-SUBDIR+=mktime strptime
+SUBDIR+=mktime
 
 .include bsd.subdir.mk



CVS commit: src/regress/lib/libc

2011-01-04 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Jan  4 14:22:06 UTC 2011

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/atexit: Makefile atexit.c expected

Log Message:
The atexit test has been atf-ified.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/atexit/Makefile \
src/regress/lib/libc/atexit/expected
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/atexit/atexit.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.71 src/regress/lib/libc/Makefile:1.72
--- src/regress/lib/libc/Makefile:1.71	Sun Jan  2 22:10:23 2011
+++ src/regress/lib/libc/Makefile	Tue Jan  4 14:22:06 2011
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.71 2011/01/02 22:10:23 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.72 2011/01/04 14:22:06 pgoyette Exp $
 
-SUBDIR+= atexit citrus db divrem getaddrinfo int_fmtio locale \
+SUBDIR+= citrus db divrem getaddrinfo int_fmtio locale \
 	nsdispatch regex rpc sys time
 
 .include bsd.own.mk



CVS commit: src/regress/lib/libc

2011-01-01 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Jan  2 03:59:35 UTC 2011

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/ieeefp: Makefile Makefile.inc
src/regress/lib/libc/ieeefp/except: Makefile except.c
src/regress/lib/libc/ieeefp/infinity: Makefile infinity.c
src/regress/lib/libc/ieeefp/nan: Makefile nan.c
src/regress/lib/libc/ieeefp/round: Makefile round.c
src/regress/lib/libc/ieeefp/subnormal: Makefile subnormal.c

Log Message:
The ieeefp stuff has been atf-ified, with the exception of ieeefp/testfloat
(which was never hooked into the build anyway).


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.14 -r0 src/regress/lib/libc/ieeefp/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/ieeefp/Makefile.inc
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/ieeefp/except/Makefile
cvs rdiff -u -r1.11 -r0 src/regress/lib/libc/ieeefp/except/except.c
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/ieeefp/infinity/Makefile \
src/regress/lib/libc/ieeefp/infinity/infinity.c
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/ieeefp/nan/Makefile \
src/regress/lib/libc/ieeefp/nan/nan.c
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/ieeefp/round/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ieeefp/round/round.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ieeefp/subnormal/Makefile \
src/regress/lib/libc/ieeefp/subnormal/subnormal.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.69 src/regress/lib/libc/Makefile:1.70
--- src/regress/lib/libc/Makefile:1.69	Sat Jan  1 23:59:19 2011
+++ src/regress/lib/libc/Makefile	Sun Jan  2 03:59:34 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.69 2011/01/01 23:59:19 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.70 2011/01/02 03:59:34 pgoyette Exp $
 
 SUBDIR+= atexit citrus db divrem getaddrinfo int_fmtio locale md5sha \
 	nsdispatch regex rpc servent sys time
@@ -6,10 +6,6 @@
 .include bsd.own.mk
 .include bsd.sys.mk
 
-.if (${MACHINE_ARCH} != vax  ${MACHINE_ARCH} != m68000)
-SUBDIR+= ieeefp
-.endif
-
 .if exists(arch/${MACHINE_ARCH})
 SUBDIR+= arch/${MACHINE_ARCH}
 .endif



CVS commit: src/regress/lib/libc

2010-12-31 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Fri Dec 31 14:37:40 UTC 2010

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/clone: Makefile clonetest.c
src/regress/lib/libc/context: Makefile context.c
src/regress/lib/libc/hsearch: Makefile hsearchtest.c
src/regress/lib/libc/inet: Makefile Makefile.inc
src/regress/lib/libc/inet/inet_network: Makefile inet_network.c inwtest
src/regress/lib/libc/pty: Makefile Makefile.inc
src/regress/lib/libc/pty/ptm: Makefile ptm.c
src/regress/lib/libc/pty/ptmx: Makefile ptmx.c
src/regress/lib/libc/strptime: Makefile strptimetest.c

Log Message:
More tests have been atf-ified


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.4 -r0 src/regress/lib/libc/clone/Makefile
cvs rdiff -u -r1.10 -r0 src/regress/lib/libc/clone/clonetest.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/context/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/context/context.c
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/hsearch/Makefile
cvs rdiff -u -r1.6 -r0 src/regress/lib/libc/hsearch/hsearchtest.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/inet/Makefile \
src/regress/lib/libc/inet/Makefile.inc
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/inet/inet_network/Makefile \
src/regress/lib/libc/inet/inet_network/inwtest
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/inet/inet_network/inet_network.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/pty/Makefile \
src/regress/lib/libc/pty/Makefile.inc
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/pty/ptm/Makefile
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/pty/ptm/ptm.c
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/pty/ptmx/Makefile
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/pty/ptmx/ptmx.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/strptime/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/strptime/strptimetest.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.67 src/regress/lib/libc/Makefile:1.68
--- src/regress/lib/libc/Makefile:1.67	Fri Dec 31 04:10:41 2010
+++ src/regress/lib/libc/Makefile	Fri Dec 31 14:37:37 2010
@@ -1,8 +1,7 @@
-#	$NetBSD: Makefile,v 1.67 2010/12/31 04:10:41 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.68 2010/12/31 14:37:37 pgoyette Exp $
 
-SUBDIR+= atexit citrus clone context db \
-	divrem getaddrinfo hsearch inet int_fmtio locale md5sha \
-	nsdispatch pty regex rpc servent stdlib strptime sys time
+SUBDIR+= atexit citrus db divrem getaddrinfo int_fmtio locale md5sha \
+	nsdispatch regex rpc servent stdlib sys time
 
 .include bsd.own.mk
 .include bsd.sys.mk



CVS commit: src/regress/lib/libc

2010-12-30 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Fri Dec 31 04:10:43 UTC 2010

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/convfp: Makefile convfp.c
src/regress/lib/libc/gdtoa: Makefile gdtoa.c
src/regress/lib/libc/randomid: Makefile idtest.c

Log Message:
These tests have been atf-ified


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/convfp/Makefile
cvs rdiff -u -r1.7 -r0 src/regress/lib/libc/convfp/convfp.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/gdtoa/Makefile \
src/regress/lib/libc/gdtoa/gdtoa.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/randomid/Makefile
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/randomid/idtest.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.66 src/regress/lib/libc/Makefile:1.67
--- src/regress/lib/libc/Makefile:1.66	Tue Dec 28 17:35:25 2010
+++ src/regress/lib/libc/Makefile	Fri Dec 31 04:10:41 2010
@@ -1,8 +1,8 @@
-#	$NetBSD: Makefile,v 1.66 2010/12/28 17:35:25 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.67 2010/12/31 04:10:41 pgoyette Exp $
 
-SUBDIR+= atexit citrus clone context convfp db \
-	divrem gdtoa getaddrinfo hsearch inet int_fmtio locale md5sha \
-	nsdispatch pty randomid regex rpc servent stdlib strptime sys time
+SUBDIR+= atexit citrus clone context db \
+	divrem getaddrinfo hsearch inet int_fmtio locale md5sha \
+	nsdispatch pty regex rpc servent stdlib strptime sys time
 
 .include bsd.own.mk
 .include bsd.sys.mk



CVS commit: src/regress/lib/libc

2010-12-28 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Dec 28 12:48:40 UTC 2010

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/gen: Makefile Makefile.inc
src/regress/lib/libc/gen/humanize_number: Makefile hntest.c
src/regress/lib/libc/gen/rbtree: Makefile rbstress.c
src/regress/lib/libc/gen/seekdir-twice: Makefile seekdir-twice.c
src/regress/lib/libc/gen/telldir-memuse: Makefile telldir-memuse.c
src/regress/lib/libc/gen/tfmtcheck: Makefile tfmtcheck.c
src/regress/lib/libc/gen/vis: Makefile vistest.c

Log Message:
The last of lib/libc/gen tests have been converted to atf.


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.6 -r0 src/regress/lib/libc/gen/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/gen/Makefile.inc
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/gen/humanize_number/Makefile
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/gen/humanize_number/hntest.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/gen/rbtree/Makefile \
src/regress/lib/libc/gen/rbtree/rbstress.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/gen/seekdir-twice/Makefile \
src/regress/lib/libc/gen/seekdir-twice/seekdir-twice.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/gen/telldir-memuse/Makefile \
src/regress/lib/libc/gen/telldir-memuse/telldir-memuse.c
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/gen/tfmtcheck/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/gen/tfmtcheck/tfmtcheck.c
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/gen/vis/Makefile \
src/regress/lib/libc/gen/vis/vistest.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.64 src/regress/lib/libc/Makefile:1.65
--- src/regress/lib/libc/Makefile:1.64	Mon Dec 27 19:39:09 2010
+++ src/regress/lib/libc/Makefile	Tue Dec 28 12:48:38 2010
@@ -1,7 +1,7 @@
-#	$NetBSD: Makefile,v 1.64 2010/12/27 19:39:09 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.65 2010/12/28 12:48:38 pgoyette Exp $
 
 SUBDIR+= atexit citrus clone context convfp db \
-	divrem gen gdtoa getaddrinfo hsearch inet int_fmtio locale md5sha \
+	divrem gdtoa getaddrinfo hsearch inet int_fmtio locale md5sha \
 	nsdispatch pty randomid regex rpc servent stdlib strptime sys time
 
 .include bsd.own.mk



CVS commit: src/regress/lib/libc

2010-12-27 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Dec 27 19:39:10 UTC 2010

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/_setjmp: Makefile
src/regress/lib/libc/setjmp: Makefile jmptest.c
src/regress/lib/libc/sigsetjmp: Makefile

Log Message:
The *setjmp tests have moved to atf


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.7 -r0 src/regress/lib/libc/_setjmp/Makefile
cvs rdiff -u -r1.7 -r0 src/regress/lib/libc/setjmp/Makefile
cvs rdiff -u -r1.8 -r0 src/regress/lib/libc/setjmp/jmptest.c
cvs rdiff -u -r1.7 -r0 src/regress/lib/libc/sigsetjmp/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.63 src/regress/lib/libc/Makefile:1.64
--- src/regress/lib/libc/Makefile:1.63	Sun Dec 26 13:38:08 2010
+++ src/regress/lib/libc/Makefile	Mon Dec 27 19:39:09 2010
@@ -1,16 +1,12 @@
-#	$NetBSD: Makefile,v 1.63 2010/12/26 13:38:08 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.64 2010/12/27 19:39:09 pgoyette Exp $
 
-SUBDIR+= _setjmp atexit citrus clone context convfp db \
+SUBDIR+= atexit citrus clone context convfp db \
 	divrem gen gdtoa getaddrinfo hsearch inet int_fmtio locale md5sha \
-	nsdispatch pty randomid regex rpc servent setjmp sigsetjmp \
-	stdlib strptime sys time
+	nsdispatch pty randomid regex rpc servent stdlib strptime sys time
 
 .include bsd.own.mk
 .include bsd.sys.mk
 
-.if defined(USE_SSP)  (${USE_SSP} == yes)
-SUBDIR+= ssp
-.endif
 .if (${MACHINE_ARCH} != vax  ${MACHINE_ARCH} != m68000)
 SUBDIR+= ieeefp
 .endif



CVS commit: src/regress/lib/libc

2010-12-26 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Dec 26 13:38:10 UTC 2010

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/string: Makefile
src/regress/lib/libc/string/memcpy: Makefile memcpy_test.c
src/regress/lib/libc/string/memmem: Makefile memmem_test.c
src/regress/lib/libc/string/stresep: Makefile stresep_test.c
src/regress/lib/libc/string/swab: Makefile swabcheck.c
src/regress/lib/libc/string/wcsncpy: Makefile wcsncpy_test.c

Log Message:
Remove the rest of the libc/string tests - they've moved to atf


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.10 -r0 src/regress/lib/libc/string/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/string/memcpy/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/string/memcpy/memcpy_test.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/string/memmem/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/string/memmem/memmem_test.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/string/stresep/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/string/stresep/stresep_test.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/string/swab/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/string/swab/swabcheck.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/string/wcsncpy/Makefile \
src/regress/lib/libc/string/wcsncpy/wcsncpy_test.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.62 src/regress/lib/libc/Makefile:1.63
--- src/regress/lib/libc/Makefile:1.62	Sat Dec 25 01:20:11 2010
+++ src/regress/lib/libc/Makefile	Sun Dec 26 13:38:08 2010
@@ -1,9 +1,9 @@
-#	$NetBSD: Makefile,v 1.62 2010/12/25 01:20:11 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.63 2010/12/26 13:38:08 pgoyette Exp $
 
 SUBDIR+= _setjmp atexit citrus clone context convfp db \
 	divrem gen gdtoa getaddrinfo hsearch inet int_fmtio locale md5sha \
 	nsdispatch pty randomid regex rpc servent setjmp sigsetjmp \
-	stdlib string strptime sys time
+	stdlib strptime sys time
 
 .include bsd.own.mk
 .include bsd.sys.mk



CVS commit: src/regress/lib/libc/ssp

2010-12-26 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Dec 27 03:33:52 UTC 2010

Removed Files:
src/regress/lib/libc/ssp: Makefile Makefile.inc
src/regress/lib/libc/ssp/fgets: Makefile fgets.c
src/regress/lib/libc/ssp/getcwd: Makefile getcwd.c
src/regress/lib/libc/ssp/gets: Makefile gets.c
src/regress/lib/libc/ssp/memcpy: Makefile memcpy.c
src/regress/lib/libc/ssp/memmove: Makefile memmove.c
src/regress/lib/libc/ssp/memset: Makefile memset.c
src/regress/lib/libc/ssp/raw: Makefile raw.c
src/regress/lib/libc/ssp/read: Makefile read.c
src/regress/lib/libc/ssp/readlink: Makefile readlink.c
src/regress/lib/libc/ssp/snprintf: Makefile snprintf.c
src/regress/lib/libc/ssp/sprintf: Makefile sprintf.c
src/regress/lib/libc/ssp/strcat: Makefile strcat.c
src/regress/lib/libc/ssp/strcpy: Makefile strcpy.c
src/regress/lib/libc/ssp/strncat: Makefile strncat.c
src/regress/lib/libc/ssp/strncpy: Makefile strncpy.c
src/regress/lib/libc/ssp/vsnprintf: Makefile vsnprintf.c
src/regress/lib/libc/ssp/vsprintf: Makefile vsprintf.c

Log Message:
The ssp tests have moved to atf format in src/tests/lib/libc/ssp/


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/ssp/Makefile.inc
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/fgets/Makefile \
src/regress/lib/libc/ssp/fgets/fgets.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/getcwd/Makefile \
src/regress/lib/libc/ssp/getcwd/getcwd.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/gets/Makefile \
src/regress/lib/libc/ssp/gets/gets.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/memcpy/Makefile \
src/regress/lib/libc/ssp/memcpy/memcpy.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/memmove/Makefile \
src/regress/lib/libc/ssp/memmove/memmove.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/memset/Makefile \
src/regress/lib/libc/ssp/memset/memset.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/raw/Makefile \
src/regress/lib/libc/ssp/raw/raw.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/read/Makefile \
src/regress/lib/libc/ssp/read/read.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/readlink/Makefile \
src/regress/lib/libc/ssp/readlink/readlink.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/snprintf/Makefile \
src/regress/lib/libc/ssp/snprintf/snprintf.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/sprintf/Makefile \
src/regress/lib/libc/ssp/sprintf/sprintf.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/strcat/Makefile \
src/regress/lib/libc/ssp/strcat/strcat.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/strcpy/Makefile \
src/regress/lib/libc/ssp/strcpy/strcpy.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/strncat/Makefile \
src/regress/lib/libc/ssp/strncat/strncat.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/strncpy/Makefile \
src/regress/lib/libc/ssp/strncpy/strncpy.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/vsnprintf/Makefile \
src/regress/lib/libc/ssp/vsnprintf/vsnprintf.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/ssp/vsprintf/Makefile \
src/regress/lib/libc/ssp/vsprintf/vsprintf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/regress/lib/libc/string

2010-12-25 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Dec 25 21:13:40 UTC 2010

Modified Files:
src/regress/lib/libc/string: Makefile
Removed Files:
src/regress/lib/libc/string/memchr: Makefile memchr_test.c
src/regress/lib/libc/string/strcat: Makefile strcat_test.c
src/regress/lib/libc/string/strchr: Makefile strchr_test.c
src/regress/lib/libc/string/strcmp: Makefile strcmp_test.c
src/regress/lib/libc/string/strcpy: Makefile strcpy_test.c
src/regress/lib/libc/string/strlen: Makefile strlen_test.c
src/regress/lib/libc/string/strrchr: Makefile strrchr_test.c

Log Message:
Remove regress versions of str* tests - they have been atf-ified


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/regress/lib/libc/string/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/string/memchr/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/string/memchr/memchr_test.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/string/strcat/Makefile \
src/regress/lib/libc/string/strcat/strcat_test.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/string/strchr/Makefile
cvs rdiff -u -r1.4 -r0 src/regress/lib/libc/string/strchr/strchr_test.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/string/strcmp/Makefile \
src/regress/lib/libc/string/strcmp/strcmp_test.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/string/strcpy/Makefile \
src/regress/lib/libc/string/strcpy/strcpy_test.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/string/strlen/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/string/strlen/strlen_test.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/string/strrchr/Makefile \
src/regress/lib/libc/string/strrchr/strrchr_test.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/string/Makefile
diff -u src/regress/lib/libc/string/Makefile:1.9 src/regress/lib/libc/string/Makefile:1.10
--- src/regress/lib/libc/string/Makefile:1.9	Sat Aug 12 23:51:12 2006
+++ src/regress/lib/libc/string/Makefile	Sat Dec 25 21:13:37 2010
@@ -1,6 +1,5 @@
-# $NetBSD: Makefile,v 1.9 2006/08/12 23:51:12 christos Exp $
+# $NetBSD: Makefile,v 1.10 2010/12/25 21:13:37 pgoyette Exp $
 
-SUBDIR+= memchr memmem strcat strchr strcmp strcpy strlen strrchr swab wcsncpy\
-	memcpy stresep
+SUBDIR+= memmem swab wcsncpy memcpy stresep
 
 .include bsd.subdir.mk



CVS commit: src/regress/lib/libc/siginfo

2010-12-24 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Dec 25 01:08:38 UTC 2010

Removed Files:
src/regress/lib/libc/siginfo: Makefile
src/regress/lib/libc/siginfo/sigalrm: Makefile sigalrm.c
src/regress/lib/libc/siginfo/sigchld: Makefile sigchld.c
src/regress/lib/libc/siginfo/sigfpe: Makefile sigfpe.c
src/regress/lib/libc/siginfo/sigsegv: Makefile sigsegv.c

Log Message:
The siginfo tests have migrated to atf in src/tests/lib/libc/gen/


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/siginfo/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/siginfo/sigalrm/Makefile
cvs rdiff -u -r1.6 -r0 src/regress/lib/libc/siginfo/sigalrm/sigalrm.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/siginfo/sigchld/Makefile
cvs rdiff -u -r1.7 -r0 src/regress/lib/libc/siginfo/sigchld/sigchld.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/siginfo/sigfpe/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libc/siginfo/sigfpe/sigfpe.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/siginfo/sigsegv/Makefile
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/siginfo/sigsegv/sigsegv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/regress/lib/libc

2010-12-24 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sat Dec 25 01:20:11 UTC 2010

Modified Files:
src/regress/lib/libc: Makefile

Log Message:
Don't descend into siginfo - it's not there any more


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/regress/lib/libc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.61 src/regress/lib/libc/Makefile:1.62
--- src/regress/lib/libc/Makefile:1.61	Thu Dec 23 15:32:03 2010
+++ src/regress/lib/libc/Makefile	Sat Dec 25 01:20:11 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.61 2010/12/23 15:32:03 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.62 2010/12/25 01:20:11 pgoyette Exp $
 
 SUBDIR+= _setjmp atexit citrus clone context convfp db \
 	divrem gen gdtoa getaddrinfo hsearch inet int_fmtio locale md5sha \
@@ -18,14 +18,6 @@
 SUBDIR+= ldexp
 .endif
 
-.if !make(obj)  !make(cleandir)
-HAVE_SIGINFO != if (echo \#include signal.h  echo SA_SIGINFO) | ${CC} -E -I${DESTDIR}/usr/include - | grep -sq 0x0040; then echo yes; else echo no; fi
-.endif
-
-.if make(obj) || make(cleandir) || (${HAVE_SIGINFO} == yes)
-SUBDIR+= siginfo
-.endif
-
 .if exists(arch/${MACHINE_ARCH})
 SUBDIR+= arch/${MACHINE_ARCH}
 .endif



CVS commit: src/regress/lib/libc

2010-12-23 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Thu Dec 23 15:32:04 UTC 2010

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/div: Makefile div.c
src/regress/lib/libc/popen: Makefile popen.c

Log Message:
Remove a couple tests - they've moved to atf


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/div/Makefile \
src/regress/lib/libc/div/div.c
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/popen/Makefile
cvs rdiff -u -r1.4 -r0 src/regress/lib/libc/popen/popen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.60 src/regress/lib/libc/Makefile:1.61
--- src/regress/lib/libc/Makefile:1.60	Wed Dec 22 23:48:19 2010
+++ src/regress/lib/libc/Makefile	Thu Dec 23 15:32:03 2010
@@ -1,8 +1,8 @@
-#	$NetBSD: Makefile,v 1.60 2010/12/22 23:48:19 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.61 2010/12/23 15:32:03 pgoyette Exp $
 
 SUBDIR+= _setjmp atexit citrus clone context convfp db \
-	div divrem gen gdtoa getaddrinfo hsearch inet int_fmtio locale md5sha \
-	nsdispatch popen pty randomid regex rpc servent setjmp sigsetjmp \
+	divrem gen gdtoa getaddrinfo hsearch inet int_fmtio locale md5sha \
+	nsdispatch pty randomid regex rpc servent setjmp sigsetjmp \
 	stdlib string strptime sys time
 
 .include bsd.own.mk



CVS commit: src/regress/lib/libc

2010-12-22 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Dec 22 23:48:20 UTC 2010

Modified Files:
src/regress/lib/libc: Makefile
Removed Files:
src/regress/lib/libc/basename: Makefile test.c
src/regress/lib/libc/dirname: Makefile test.c

Log Message:
Remove these tests from regress - they've been converted to atf


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/regress/lib/libc/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/basename/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libc/basename/test.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libc/dirname/Makefile
cvs rdiff -u -r1.5 -r0 src/regress/lib/libc/dirname/test.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.59 src/regress/lib/libc/Makefile:1.60
--- src/regress/lib/libc/Makefile:1.59	Tue Dec 21 14:26:17 2010
+++ src/regress/lib/libc/Makefile	Wed Dec 22 23:48:19 2010
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.59 2010/12/21 14:26:17 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.60 2010/12/22 23:48:19 pgoyette Exp $
 
-SUBDIR+= _setjmp atexit basename citrus clone context convfp db dirname \
+SUBDIR+= _setjmp atexit citrus clone context convfp db \
 	div divrem gen gdtoa getaddrinfo hsearch inet int_fmtio locale md5sha \
 	nsdispatch popen pty randomid regex rpc servent setjmp sigsetjmp \
 	stdlib string strptime sys time



CVS commit: src/regress/sys/net/ether_aton_r

2010-12-20 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Mon Dec 20 16:13:45 UTC 2010

Modified Files:
src/regress/sys/net/ether_aton_r: Makefile

Log Message:
Use ${HOST_SH}


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/regress/sys/net/ether_aton_r/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/net/ether_aton_r/Makefile
diff -u src/regress/sys/net/ether_aton_r/Makefile:1.1 src/regress/sys/net/ether_aton_r/Makefile:1.2
--- src/regress/sys/net/ether_aton_r/Makefile:1.1	Wed May 19 21:55:36 2010
+++ src/regress/sys/net/ether_aton_r/Makefile	Mon Dec 20 16:13:44 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.1 2010/05/19 21:55:36 christos Exp $
+#	$NetBSD: Makefile,v 1.2 2010/12/20 16:13:44 joerg Exp $
 #
 # To use this, copy / link the cpu_in_cksum.S from the arch subdirectory
 # and copy assym.h from the build directory of a kernel.
@@ -14,7 +14,7 @@
 CLEANFILES+=ether_aton_r.c
 
 ether_aton_r.c: autogen ${NETBSDSRCDIR}/sys/net/if_ethersubr.c
-	${.ALLSRC} ${.TARGET}
+	${HOST_SH} ${.ALLSRC} ${.TARGET}
 
 regress:
 	@if ./${PROG} ; then		\



CVS commit: src/regress/usr.bin/rtld

2010-12-13 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Dec 14 06:02:22 UTC 2010

Modified Files:
src/regress/usr.bin/rtld: Makefile

Log Message:
Remove references to delete tests.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/regress/usr.bin/rtld/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/usr.bin/rtld/Makefile
diff -u src/regress/usr.bin/rtld/Makefile:1.3 src/regress/usr.bin/rtld/Makefile:1.4
--- src/regress/usr.bin/rtld/Makefile:1.3	Mon Dec 14 12:43:48 2009
+++ src/regress/usr.bin/rtld/Makefile	Tue Dec 14 06:02:21 2010
@@ -1,11 +1,9 @@
-# $NetBSD: Makefile,v 1.3 2009/12/14 12:43:48 uebayasi Exp $
+# $NetBSD: Makefile,v 1.4 2010/12/14 06:02:21 skrll Exp $
 
 .include bsd.own.mk
 
-SUBDIR+= dlopen
 .if ${MKCXX} != no
 SUBDIR+= testlib
 .endif
-SUBDIR+= dlerror-false dlerror-cleared
 
 .include bsd.subdir.mk



CVS commit: src/regress/sys/net/frag

2010-10-03 Thread Mindaugas Rasiukevicius
Module Name:src
Committed By:   rmind
Date:   Sun Oct  3 19:41:25 UTC 2010

Modified Files:
src/regress/sys/net/frag: ip4_frag_1.c

Log Message:
Don't overrun the buffer, when writing some payload.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/regress/sys/net/frag/ip4_frag_1.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/net/frag/ip4_frag_1.c
diff -u src/regress/sys/net/frag/ip4_frag_1.c:1.1 src/regress/sys/net/frag/ip4_frag_1.c:1.2
--- src/regress/sys/net/frag/ip4_frag_1.c:1.1	Tue Jul 13 22:13:18 2010
+++ src/regress/sys/net/frag/ip4_frag_1.c	Sun Oct  3 19:41:25 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: ip4_frag_1.c,v 1.1 2010/07/13 22:13:18 rmind Exp $	*/
+/*	$NetBSD: ip4_frag_1.c,v 1.2 2010/10/03 19:41:25 rmind Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -126,7 +126,8 @@
 		n = 0;
 	}
 	for (data += n; n  addlen; n++) {
-		data[n] = (0xf  n);
+		*data = (0xf  n);
+		data++;
 	}
 	return (void *)ip;
 }



CVS commit: src/regress/lib

2010-08-25 Thread Julio Merino
Module Name:src
Committed By:   jmmv
Date:   Wed Aug 25 16:47:44 UTC 2010

Modified Files:
src/regress/lib: Makefile
Removed Files:
src/regress/lib/libdes: Makefile destest.c

Log Message:
The libdes tests have been converted to atf and now live in tests/lib/libdes.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/regress/lib/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libdes/Makefile \
src/regress/lib/libdes/destest.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/Makefile
diff -u src/regress/lib/Makefile:1.25 src/regress/lib/Makefile:1.26
--- src/regress/lib/Makefile:1.25	Sat Jul 17 19:29:35 2010
+++ src/regress/lib/Makefile	Wed Aug 25 16:47:43 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.25 2010/07/17 19:29:35 jmmv Exp $
+#	$NetBSD: Makefile,v 1.26 2010/08/25 16:47:43 jmmv Exp $
 
 .include bsd.own.mk
 
@@ -10,8 +10,4 @@
 #SUBDIR+= libssp
 .endif
 
-.if ${MKCRYPTO} != no
-SUBDIR+= libdes
-.endif
-
 .include bsd.subdir.mk



CVS commit: src/regress

2010-08-18 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Wed Aug 18 21:28:03 UTC 2010

Modified Files:
src/regress: README

Log Message:
new tests should use atf - new tests must use atf


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/regress/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/README
diff -u src/regress/README:1.2 src/regress/README:1.3
--- src/regress/README:1.2	Mon Sep 14 17:15:32 2009
+++ src/regress/README	Wed Aug 18 21:28:03 2010
@@ -1,61 +1,6 @@
-$NetBSD: README,v 1.2 2009/09/14 17:15:32 apb Exp $
+	$NetBSD: README,v 1.3 2010/08/18 21:28:03 pooka Exp $
 
-NOTE: New tests should use the ATF framework; see atf(7)
+New tests must use the ATF framework; see atf(7)
 and the src/tests directory.
 
-
-This part of the source tree contains regression tests. There are special
-make targets and rules to follow. Most of these, however, are currently not
-enforced, and most tests available are not conforming.
-
-We hope to fix this someday. If you add new tests, please try to be conforming.
-
-What is a regression test?
-
-  A regression test is run by a makefile in a test directory (see below).
-  Each makefile may run multiple tests.
-
-What is a test directory?
-
-  A directory in this part of the tree is a regression test directory. It
-  contains a Makefile which implements the additional regress target,
-  and runs all it's regression tests during this target.
-
-May the make progress be stopped on failures?
-
-  No, the make regress target should succeed, unless some regression 
-  binaries could not be build, disk is full or other catastrophic failures
-  outside of the tested subsystem happen. A failing regression test should
-  log the failure (see below), but not make the target itself fail.
-
-What are the possible results of a regression test?
-
-  A test may either
-
-  - succeed, in which case it logs PASSED (see below for logging details)
-  - fail, in which case it logs FAILED
-  - not be able to run, in which case it logs SKIPPED and the reason
-for the skip in the comment field (see below)
-
-  Typical reasons for tests to not being run are missing kernel options,
-  or missing privileges (test needs root, make regress is invoked by
-  mere mortal or vice versa). A test may not fail because of such
-  environmental issues, it must detect and properly log the problem.
-
-  If a test directory contains tests that may be skipped, it should have
-  a README file explaining the prerequisites (e.g. needed kernel options)
-
-  In future, we will mark affected makefiles and optimize run/skipped test
-  during repeated runs with differing privileges - but currently there is no
-  make framework in place to handle this.
-
-How and when does a test log results?
-
-  If the make/environment variable ${REGRESS_LOG} is defined, the final
-  results (and only those) should be logged to the file named by that
-  variable. We will, in the future, add make targets for this purpose.
-  The log format is line oriented, one line used per test. Each line
-  consists of the directory where the Makefile lives, followed by the
-  test name and the result (see above: PASSED, FAILED, SKIPPED).
-  Following this an optional comment may be added. For SKIPPED tests the
-  comment is not optional. Fields are separated by spaces.
+All exceptions need prior approval from core.



CVS commit: src/regress/usr.bin

2010-08-01 Thread Julio Merino
Module Name:src
Committed By:   jmmv
Date:   Sun Aug  1 16:44:31 UTC 2010

Modified Files:
src/regress/usr.bin: Makefile
Removed Files:
src/regress/usr.bin/sort: Makefile stests

Log Message:
The sort(1) tests have been moved to tests/util/sort/.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/regress/usr.bin/Makefile
cvs rdiff -u -r1.6 -r0 src/regress/usr.bin/sort/Makefile
cvs rdiff -u -r1.15 -r0 src/regress/usr.bin/sort/stests

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/usr.bin/Makefile
diff -u src/regress/usr.bin/Makefile:1.18 src/regress/usr.bin/Makefile:1.19
--- src/regress/usr.bin/Makefile:1.18	Sun Jul 18 10:12:33 2010
+++ src/regress/usr.bin/Makefile	Sun Aug  1 16:44:31 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.18 2010/07/18 10:12:33 jmmv Exp $
+#	$NetBSD: Makefile,v 1.19 2010/08/01 16:44:31 jmmv Exp $
 
 .include bsd.own.mk
 
@@ -6,6 +6,6 @@
 SUBDIR+= c++
 .endif
 
-SUBDIR+= rtld sort
+SUBDIR+= rtld
 
 .include bsd.subdir.mk



CVS commit: src/regress/usr.bin

2010-07-18 Thread Julio Merino
Module Name:src
Committed By:   jmmv
Date:   Sun Jul 18 10:12:34 UTC 2010

Modified Files:
src/regress/usr.bin: Makefile
Removed Files:
src/regress/usr.bin/xlint: Makefile
src/regress/usr.bin/xlint/lint1: Makefile fail-test0.c fail-test1.c
fail-test2.c fail-test3.c fail-test4.c fail-test5.c fail-test6.c
test0.c test1.c test10.c test11.c test12.c test13.c test14.c
test15.c test16.c test17.c test18.c test19.c test2.c test20.c
test21.c test22.c test23.c test24.c test25.c test26.c test27.c
test3.c test4.c test5.c test6.c test7.c test8.c test9.c

Log Message:
Remove lint1 tests; they have been converted to atf and now live in
tests/util/xlint/lint1.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/regress/usr.bin/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/usr.bin/xlint/Makefile
cvs rdiff -u -r1.4 -r0 src/regress/usr.bin/xlint/lint1/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/usr.bin/xlint/lint1/fail-test0.c \
src/regress/usr.bin/xlint/lint1/fail-test1.c \
src/regress/usr.bin/xlint/lint1/fail-test2.c \
src/regress/usr.bin/xlint/lint1/fail-test3.c \
src/regress/usr.bin/xlint/lint1/fail-test4.c \
src/regress/usr.bin/xlint/lint1/fail-test5.c \
src/regress/usr.bin/xlint/lint1/fail-test6.c \
src/regress/usr.bin/xlint/lint1/test0.c \
src/regress/usr.bin/xlint/lint1/test1.c \
src/regress/usr.bin/xlint/lint1/test10.c \
src/regress/usr.bin/xlint/lint1/test11.c \
src/regress/usr.bin/xlint/lint1/test12.c \
src/regress/usr.bin/xlint/lint1/test13.c \
src/regress/usr.bin/xlint/lint1/test14.c \
src/regress/usr.bin/xlint/lint1/test15.c \
src/regress/usr.bin/xlint/lint1/test16.c \
src/regress/usr.bin/xlint/lint1/test17.c \
src/regress/usr.bin/xlint/lint1/test18.c \
src/regress/usr.bin/xlint/lint1/test19.c \
src/regress/usr.bin/xlint/lint1/test2.c \
src/regress/usr.bin/xlint/lint1/test20.c \
src/regress/usr.bin/xlint/lint1/test21.c \
src/regress/usr.bin/xlint/lint1/test22.c \
src/regress/usr.bin/xlint/lint1/test23.c \
src/regress/usr.bin/xlint/lint1/test25.c \
src/regress/usr.bin/xlint/lint1/test26.c \
src/regress/usr.bin/xlint/lint1/test27.c \
src/regress/usr.bin/xlint/lint1/test3.c \
src/regress/usr.bin/xlint/lint1/test4.c \
src/regress/usr.bin/xlint/lint1/test5.c \
src/regress/usr.bin/xlint/lint1/test6.c \
src/regress/usr.bin/xlint/lint1/test7.c \
src/regress/usr.bin/xlint/lint1/test8.c \
src/regress/usr.bin/xlint/lint1/test9.c
cvs rdiff -u -r1.3 -r0 src/regress/usr.bin/xlint/lint1/test24.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/usr.bin/Makefile
diff -u src/regress/usr.bin/Makefile:1.17 src/regress/usr.bin/Makefile:1.18
--- src/regress/usr.bin/Makefile:1.17	Mon Dec 14 12:43:48 2009
+++ src/regress/usr.bin/Makefile	Sun Jul 18 10:12:33 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.17 2009/12/14 12:43:48 uebayasi Exp $
+#	$NetBSD: Makefile,v 1.18 2010/07/18 10:12:33 jmmv Exp $
 
 .include bsd.own.mk
 
@@ -6,6 +6,6 @@
 SUBDIR+= c++
 .endif
 
-SUBDIR+= rtld sort xlint
+SUBDIR+= rtld sort
 
 .include bsd.subdir.mk



CVS commit: src/regress

2010-07-18 Thread Julio Merino
Module Name:src
Committed By:   jmmv
Date:   Sun Jul 18 12:44:39 UTC 2010

Modified Files:
src/regress: Makefile
Removed Files:
src/regress/gnu: Makefile
src/regress/gnu/lib: Makefile
src/regress/gnu/lib/libobjc: Makefile
src/regress/gnu/lib/libobjc/thread: Makefile thread.m

Log Message:
Remove the libobjc tests; they have been converted to atf and now live in
tests/lib/libobjc/.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/regress/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/gnu/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/gnu/lib/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/gnu/lib/libobjc/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/gnu/lib/libobjc/thread/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/gnu/lib/libobjc/thread/thread.m

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/Makefile
diff -u src/regress/Makefile:1.18 src/regress/Makefile:1.19
--- src/regress/Makefile:1.18	Sat Jul 17 19:29:33 2010
+++ src/regress/Makefile	Sun Jul 18 12:44:38 2010
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.18 2010/07/17 19:29:33 jmmv Exp $
+#	$NetBSD: Makefile,v 1.19 2010/07/18 12:44:38 jmmv Exp $
 
 # missing: libexec sbin usr.sbin share
-SUBDIR+= gnu lib libexec sys usr.bin
+SUBDIR+= lib libexec sys usr.bin
 
 .include bsd.subdir.mk



CVS commit: src/regress

2010-07-17 Thread Julio Merino
Module Name:src
Committed By:   jmmv
Date:   Sat Jul 17 19:29:38 UTC 2010

Modified Files:
src/regress: Makefile
src/regress/lib: Makefile
Removed Files:
src/regress/include: Makefile Makefile.inc
src/regress/include/bitstring: Makefile bitstring_test.c
src/regress/include/bitstring/good: 27 32 49 64 67 8
src/regress/include/bootblock: Makefile bootblock_test.c
src/regress/include/okheaders: Makefile symbolcheck.c
src/regress/include/stdarg: Makefile
src/regress/include/stdint: Makefile stdint.c
src/regress/include/varargs: Makefile
src/regress/lib/csu: Makefile Makefile.inc
src/regress/lib/csu/initfini: Makefile expected initfini.c
src/regress/lib/csu/initfini/arch/alpha: initfini_asm.S
src/regress/lib/csu/initfini/arch/arm: initfini_asm.S
src/regress/lib/csu/initfini/arch/hppa: initfini_asm.S
src/regress/lib/csu/initfini/arch/i386: initfini_asm.S
src/regress/lib/csu/initfini/arch/m68k: initfini_asm.S
src/regress/lib/csu/initfini/arch/mips: initfini_asm.S
src/regress/lib/csu/initfini/arch/powerpc: initfini_asm.S
src/regress/lib/csu/initfini/arch/sh3: initfini_asm.S
src/regress/lib/csu/initfini/arch/sparc: initfini_asm.S
src/regress/lib/csu/initfini/arch/sparc64: initfini_asm.S
src/regress/lib/csu/initfini/arch/vax: initfini_asm.S
src/regress/lib/csu/initfini/arch/x86_64: initfini_asm.S

Log Message:
Remove the lib/csu/ and include/ tests; they have been converted to atf.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/regress/Makefile
cvs rdiff -u -r1.10 -r0 src/regress/include/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/include/Makefile.inc
cvs rdiff -u -r1.10 -r0 src/regress/include/bitstring/Makefile
cvs rdiff -u -r1.9 -r0 src/regress/include/bitstring/bitstring_test.c
cvs rdiff -u -r1.1 -r0 src/regress/include/bitstring/good/27 \
src/regress/include/bitstring/good/32 \
src/regress/include/bitstring/good/49 \
src/regress/include/bitstring/good/64 \
src/regress/include/bitstring/good/67 \
src/regress/include/bitstring/good/8
cvs rdiff -u -r1.1 -r0 src/regress/include/bootblock/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/include/bootblock/bootblock_test.c
cvs rdiff -u -r1.4 -r0 src/regress/include/okheaders/Makefile
cvs rdiff -u -r1.29 -r0 src/regress/include/okheaders/symbolcheck.c
cvs rdiff -u -r1.7 -r0 src/regress/include/stdarg/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/include/stdint/Makefile \
src/regress/include/stdint/stdint.c
cvs rdiff -u -r1.7 -r0 src/regress/include/varargs/Makefile
cvs rdiff -u -r1.24 -r1.25 src/regress/lib/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/csu/Makefile \
src/regress/lib/csu/Makefile.inc
cvs rdiff -u -r1.7 -r0 src/regress/lib/csu/initfini/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/csu/initfini/expected
cvs rdiff -u -r1.2 -r0 src/regress/lib/csu/initfini/initfini.c
cvs rdiff -u -r1.2 -r0 src/regress/lib/csu/initfini/arch/alpha/initfini_asm.S
cvs rdiff -u -r1.2 -r0 src/regress/lib/csu/initfini/arch/arm/initfini_asm.S
cvs rdiff -u -r1.2 -r0 src/regress/lib/csu/initfini/arch/hppa/initfini_asm.S
cvs rdiff -u -r1.1 -r0 src/regress/lib/csu/initfini/arch/i386/initfini_asm.S
cvs rdiff -u -r1.1 -r0 src/regress/lib/csu/initfini/arch/m68k/initfini_asm.S
cvs rdiff -u -r1.3 -r0 src/regress/lib/csu/initfini/arch/mips/initfini_asm.S
cvs rdiff -u -r1.1 -r0 \
src/regress/lib/csu/initfini/arch/powerpc/initfini_asm.S
cvs rdiff -u -r1.1 -r0 src/regress/lib/csu/initfini/arch/sh3/initfini_asm.S
cvs rdiff -u -r1.2 -r0 src/regress/lib/csu/initfini/arch/sparc/initfini_asm.S
cvs rdiff -u -r1.2 -r0 \
src/regress/lib/csu/initfini/arch/sparc64/initfini_asm.S
cvs rdiff -u -r1.1 -r0 src/regress/lib/csu/initfini/arch/vax/initfini_asm.S
cvs rdiff -u -r1.1 -r0 \
src/regress/lib/csu/initfini/arch/x86_64/initfini_asm.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/Makefile
diff -u src/regress/Makefile:1.17 src/regress/Makefile:1.18
--- src/regress/Makefile:1.17	Tue Oct 20 21:59:55 2009
+++ src/regress/Makefile	Sat Jul 17 19:29:33 2010
@@ -1,6 +1,6 @@
-#	$NetBSD: Makefile,v 1.17 2009/10/20 21:59:55 jmmv Exp $
+#	$NetBSD: Makefile,v 1.18 2010/07/17 19:29:33 jmmv Exp $
 
 # missing: libexec sbin usr.sbin share
-SUBDIR+= gnu include lib libexec sys usr.bin
+SUBDIR+= gnu lib libexec sys usr.bin
 
 .include bsd.subdir.mk

Index: src/regress/lib/Makefile
diff -u src/regress/lib/Makefile:1.24 src/regress/lib/Makefile:1.25
--- src/regress/lib/Makefile:1.24	Fri Jul 16 15:46:01 2010
+++ src/regress/lib/Makefile	Sat Jul 17 19:29:35 2010
@@ -1,8 +1,8 @@
-#	$NetBSD: Makefile,v 1.24 2010/07/16 15:46:01 jmmv Exp $
+#	$NetBSD: Makefile,v 1.25 2010/07/17 19:29:35 jmmv Exp $
 
 .include bsd.own.mk
 
-SUBDIR+= csu libc libm
+SUBDIR+= libc libm
 
 .if 

CVS commit: src/regress/lib

2010-07-16 Thread Julio Merino
Module Name:src
Committed By:   jmmv
Date:   Fri Jul 16 13:59:09 UTC 2010

Modified Files:
src/regress/lib: Makefile
Removed Files:
src/regress/lib/libposix: Makefile Makefile.inc prename.c
src/regress/lib/libposix/nrn: Makefile
src/regress/lib/libposix/prn1: Makefile
src/regress/lib/libposix/prn2: Makefile
src/regress/lib/libprop: proptest.c
src/regress/lib/librt: Makefile
src/regress/lib/librt/sem: Makefile sem.c
src/regress/lib/libskey: Makefile skeytest.c
src/regress/lib/libutil: Makefile Makefile.inc
src/regress/lib/libutil/snprintb: Makefile snprintbtest.c
src/regress/lib/libutil/sockaddr_snprintf: Makefile sockaddr_snprintf.c

Log Message:
Remove tests converted to ATF.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/regress/lib/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libposix/Makefile \
src/regress/lib/libposix/Makefile.inc
cvs rdiff -u -r1.3 -r0 src/regress/lib/libposix/prename.c
cvs rdiff -u -r1.4 -r0 src/regress/lib/libposix/nrn/Makefile
cvs rdiff -u -r1.4 -r0 src/regress/lib/libposix/prn1/Makefile
cvs rdiff -u -r1.4 -r0 src/regress/lib/libposix/prn2/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libprop/proptest.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/librt/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/librt/sem/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/librt/sem/sem.c
cvs rdiff -u -r1.5 -r0 src/regress/lib/libskey/Makefile
cvs rdiff -u -r1.4 -r0 src/regress/lib/libskey/skeytest.c
cvs rdiff -u -r1.2 -r0 src/regress/lib/libutil/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libutil/Makefile.inc
cvs rdiff -u -r1.1 -r0 src/regress/lib/libutil/snprintb/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libutil/snprintb/snprintbtest.c
cvs rdiff -u -r1.2 -r0 src/regress/lib/libutil/sockaddr_snprintf/Makefile
cvs rdiff -u -r1.4 -r0 \
src/regress/lib/libutil/sockaddr_snprintf/sockaddr_snprintf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/Makefile
diff -u src/regress/lib/Makefile:1.22 src/regress/lib/Makefile:1.23
--- src/regress/lib/Makefile:1.22	Mon Nov  2 15:44:12 2009
+++ src/regress/lib/Makefile	Fri Jul 16 13:59:07 2010
@@ -1,8 +1,8 @@
-#	$NetBSD: Makefile,v 1.22 2009/11/02 15:44:12 plunky Exp $
+#	$NetBSD: Makefile,v 1.23 2010/07/16 13:59:07 jmmv Exp $
 
 .include bsd.own.mk
 
-SUBDIR+= csu libc libm libposix libpthread librt libutil
+SUBDIR+= csu libc libm libpthread
 
 .if (${MACHINE_CPU} != alpha  \
  ${MACHINE_CPU} != mips  \
@@ -10,10 +10,6 @@
 #SUBDIR+= libssp
 .endif
 
-.if (${MKSKEY} != no)
-SUBDIR+= libskey
-.endif
-
 .if ${MKCRYPTO} != no
 SUBDIR+= libdes
 .endif



CVS commit: src/regress/lib

2010-07-16 Thread Julio Merino
Module Name:src
Committed By:   jmmv
Date:   Fri Jul 16 15:46:09 UTC 2010

Modified Files:
src/regress/lib: Makefile
Removed Files:
src/regress/lib/libpthread: Makefile
src/regress/lib/libpthread/atexit: Makefile
src/regress/lib/libpthread/barrier1: Makefile barrier1.c
src/regress/lib/libpthread/cancel2: Makefile cancel2.c
src/regress/lib/libpthread/cond1: Makefile cond1.c
src/regress/lib/libpthread/cond2: Makefile cond2.c
src/regress/lib/libpthread/cond3: Makefile cond3.c
src/regress/lib/libpthread/cond4: Makefile cond4.c
src/regress/lib/libpthread/cond5: Makefile cond5.c
src/regress/lib/libpthread/cond6: Makefile cond6.c
src/regress/lib/libpthread/condcancel1: Makefile condcancel1.c
src/regress/lib/libpthread/conddestroy1: Makefile conddestroy1.c
src/regress/lib/libpthread/detach1: Makefile detach1.c
src/regress/lib/libpthread/exit1: Makefile exit1.c
src/regress/lib/libpthread/find: Makefile findthreads.c findthreads.sh
src/regress/lib/libpthread/fork: Makefile fork.c
src/regress/lib/libpthread/fpu: Makefile fpu.c
src/regress/lib/libpthread/kill1: Makefile kill1.c
src/regress/lib/libpthread/mutex1: Makefile mutex1.c
src/regress/lib/libpthread/mutex2: Makefile mutex2.c
src/regress/lib/libpthread/mutex3: Makefile mutex3.c
src/regress/lib/libpthread/mutex4: Makefile mutex4.c
src/regress/lib/libpthread/name: Makefile name.c
src/regress/lib/libpthread/once1: Makefile once1.c
src/regress/lib/libpthread/once2: Makefile once2.c
src/regress/lib/libpthread/once3: Makefile once3.c
src/regress/lib/libpthread/preempt1: Makefile preempt1.c
src/regress/lib/libpthread/resolv: Makefile mach resolv.c
src/regress/lib/libpthread/rwlock1: Makefile rwlock1.c
src/regress/lib/libpthread/sem: Makefile sem.c
src/regress/lib/libpthread/sem2: Makefile sem2.c
src/regress/lib/libpthread/sigalarm: Makefile sigalarm.c
src/regress/lib/libpthread/siglongjmp1: Makefile siglongjmp1.c
src/regress/lib/libpthread/sigmask1: Makefile sigmask1.c
src/regress/lib/libpthread/sigmask2: Makefile sigmask2.c
src/regress/lib/libpthread/sigmask3: Makefile sigmask3.c
src/regress/lib/libpthread/sigmask4: Makefile sigmask4.c
src/regress/lib/libpthread/sigsuspend: Makefile sigsuspend.c
src/regress/lib/libpthread/sleep1: Makefile sleep1.c

Log Message:
The libpthread tests have been converted to atf; remove the old versions.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/regress/lib/Makefile
cvs rdiff -u -r1.32 -r0 src/regress/lib/libpthread/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libpthread/atexit/Makefile
cvs rdiff -u -r1.1 -r0 src/regress/lib/libpthread/barrier1/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libpthread/barrier1/barrier1.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libpthread/cancel2/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libpthread/cancel2/cancel2.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libpthread/cond1/Makefile \
src/regress/lib/libpthread/cond1/cond1.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libpthread/cond2/Makefile \
src/regress/lib/libpthread/cond2/cond2.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libpthread/cond3/Makefile \
src/regress/lib/libpthread/cond3/cond3.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libpthread/cond4/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libpthread/cond4/cond4.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libpthread/cond5/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libpthread/cond5/cond5.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libpthread/cond6/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libpthread/cond6/cond6.c
cvs rdiff -u -r1.2 -r0 src/regress/lib/libpthread/condcancel1/Makefile \
src/regress/lib/libpthread/condcancel1/condcancel1.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libpthread/conddestroy1/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libpthread/conddestroy1/conddestroy1.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libpthread/detach1/Makefile \
src/regress/lib/libpthread/detach1/detach1.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libpthread/exit1/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libpthread/exit1/exit1.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libpthread/find/Makefile \
src/regress/lib/libpthread/find/findthreads.sh
cvs rdiff -u -r1.2 -r0 src/regress/lib/libpthread/find/findthreads.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libpthread/fork/Makefile
cvs rdiff -u -r1.3 -r0 src/regress/lib/libpthread/fork/fork.c
cvs rdiff -u -r1.4 -r0 src/regress/lib/libpthread/fpu/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libpthread/fpu/fpu.c
cvs rdiff -u -r1.1 -r0 src/regress/lib/libpthread/kill1/Makefile
cvs rdiff -u -r1.2 -r0 src/regress/lib/libpthread/kill1/kill1.c
cvs rdiff -u -r1.1 -r0 

CVS commit: src/regress/sys/net/frag

2010-07-13 Thread Mindaugas Rasiukevicius
Module Name:src
Committed By:   rmind
Date:   Tue Jul 13 22:13:18 UTC 2010

Added Files:
src/regress/sys/net/frag: ip4_frag_1.c

Log Message:
Add a regression test for IPv4 reassembly.  Cases:
- Normal (valid) fragments.
- Fragment with ip_off + hlen lower than IP_MINFRAGSIZE - 1.
- Different ip_tos values in fragments.
- Fragment data length which is not multiple of 8 bytes.
- Duplicate fragments (one covering previous).
- Packet larger than IP_MAXPACKET after reassembly.
- No last non-MF fragment (causing of timeout).


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/regress/sys/net/frag/ip4_frag_1.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/regress/sys/net/frag/ip4_frag_1.c
diff -u /dev/null src/regress/sys/net/frag/ip4_frag_1.c:1.1
--- /dev/null	Tue Jul 13 22:13:18 2010
+++ src/regress/sys/net/frag/ip4_frag_1.c	Tue Jul 13 22:13:18 2010
@@ -0,0 +1,330 @@
+/*	$NetBSD: ip4_frag_1.c,v 1.1 2010/07/13 22:13:18 rmind Exp $	*/
+
+/*-
+ * Copyright (c) 2010 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software developed for The NetBSD Foundation
+ * by Mindaugas Rasiukevicius rmind at NetBSD org.
+ *
+ * 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 NETBSD FOUNDATION, INC. 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 FOUNDATION 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.
+ */
+
+/*
+ * Test various cases of IPv4 reassembly.
+ */
+
+#include sys/cdefs.h
+
+#include stdio.h
+#include stdlib.h
+#include string.h
+#include stddef.h
+#include unistd.h
+#include netdb.h
+#include assert.h
+#include err.h
+
+#include sys/socket.h
+#include netinet/in_systm.h
+#include netinet/in.h
+#include netinet/ip.h
+#include netinet/udp.h
+#include netinet/ip_icmp.h
+#include arpa/inet.h
+
+#define	IP_SIZE			sizeof(struct ip)
+#define	ICMP_SIZE		offsetof(struct icmp, icmp_ip)
+
+static void *
+xalloc(size_t sz)
+{
+	void *ptr = calloc(1, sz);
+
+	if (ptr == NULL) {
+		err(EXIT_FAILURE, calloc);
+	}
+	return ptr;
+}
+
+static int
+create_socket(void)
+{
+	int s, val = 1;
+
+	s = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
+	if (s == -1) {
+		err(EXIT_FAILURE, socket);
+	}
+	if (setsockopt(s, IPPROTO_IP, IP_HDRINCL, val, sizeof(val)) == -1) {
+		err(EXIT_FAILURE, setsockopt);
+	}
+	return s;
+}
+
+void *
+create_ip_packet(in_addr_t target, int foff, size_t addlen)
+{
+	struct ip *ip;
+	unsigned int n;
+	uint8_t *data;
+	int first;
+
+	/* Header at zero offset - first fragment. */
+	first = ((foff  IP_MF) == 0);
+	if (first) {
+		assert(addlen = ICMP_SIZE);
+		addlen -= ICMP_SIZE;
+	}
+	ip = xalloc(IP_SIZE + addlen);
+
+	/*
+	 * IP header.
+	 * Note: ip_len and ip_off shall be in host byte order.
+	 */
+	ip-ip_v = IPVERSION;
+	ip-ip_hl = 5;
+	ip-ip_tos = 0;
+	ip-ip_len = (5  2) + addlen;
+	ip-ip_id = htons(1);
+	ip-ip_off = foff;
+	ip-ip_ttl = 64;
+	ip-ip_p = IPPROTO_ICMP;
+	ip-ip_sum = 0;
+
+	ip-ip_src.s_addr = INADDR_ANY;
+	ip-ip_dst.s_addr = target;
+
+	/* Fill in some data. */
+	data = (void *)(ip + 1);
+	if (first) {
+		struct icmp *icmp = (void *)data;
+		icmp-icmp_type = ICMP_ECHO;
+		icmp-icmp_code = 0;
+		icmp-icmp_cksum = 0;
+		n = ICMP_SIZE;
+	} else {
+		n = 0;
+	}
+	for (data += n; n  addlen; n++) {
+		data[n] = (0xf  n);
+	}
+	return (void *)ip;
+}
+
+void
+send_packet(int s, void *p, in_addr_t target)
+{
+	struct ip *ip = (struct ip *)p;
+	struct sockaddr_in addr;
+	ssize_t ret;
+
+	memset(addr, 0, sizeof(addr));
+	addr.sin_family = AF_INET;
+	addr.sin_addr.s_addr = target;
+
+	/* Note: total length was set host byte-order. */
+	ret = sendto(s, p, ip-ip_len, 0,
+	(struct sockaddr *)addr, sizeof(struct sockaddr_in));
+	if (ret == -1) {
+		err(EXIT_FAILURE, sendto);
+	}
+	free(p);
+}
+
+void
+test_case_0(int sock, 

CVS commit: src/regress/sys/net

2010-05-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 19 21:55:36 UTC 2010

Modified Files:
src/regress/sys/net: Makefile
Added Files:
src/regress/sys/net/ether_aton_r: Makefile autogen main.c

Log Message:
regression test for ether_aton_r()


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/regress/sys/net/Makefile
cvs rdiff -u -r0 -r1.1 src/regress/sys/net/ether_aton_r/Makefile \
src/regress/sys/net/ether_aton_r/autogen \
src/regress/sys/net/ether_aton_r/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/net/Makefile
diff -u src/regress/sys/net/Makefile:1.1 src/regress/sys/net/Makefile:1.2
--- src/regress/sys/net/Makefile:1.1	Wed Dec 14 18:55:02 2005
+++ src/regress/sys/net/Makefile	Wed May 19 17:55:35 2010
@@ -1,7 +1,7 @@
-#	$NetBSD: Makefile,v 1.1 2005/12/14 23:55:02 rpaulo Exp $
+#	$NetBSD: Makefile,v 1.2 2010/05/19 21:55:35 christos Exp $
 
 .include bsd.own.mk
 
-SUBDIR= bpf
+SUBDIR= bpf ether_aton_r
 
 .include bsd.subdir.mk

Added files:

Index: src/regress/sys/net/ether_aton_r/Makefile
diff -u /dev/null src/regress/sys/net/ether_aton_r/Makefile:1.1
--- /dev/null	Wed May 19 17:55:36 2010
+++ src/regress/sys/net/ether_aton_r/Makefile	Wed May 19 17:55:36 2010
@@ -0,0 +1,26 @@
+#	$NetBSD: Makefile,v 1.1 2010/05/19 21:55:36 christos Exp $
+#
+# To use this, copy / link the cpu_in_cksum.S from the arch subdirectory
+# and copy assym.h from the build directory of a kernel.
+#
+
+NOMAN=	# defined
+.include bsd.own.mk
+
+PROG=	ether_aton_r
+SRCS=	ether_aton_r.c main.c
+WARNS ?=	4
+
+CLEANFILES+=ether_aton_r.c
+
+ether_aton_r.c: autogen ${NETBSDSRCDIR}/sys/net/if_ethersubr.c
+	${.ALLSRC} ${.TARGET}
+
+regress:
+	@if ./${PROG} ; then		\
+		echo PASSED;		\
+	else\
+		echo FAILED;		\
+	fi
+
+.include bsd.prog.mk
Index: src/regress/sys/net/ether_aton_r/autogen
diff -u /dev/null src/regress/sys/net/ether_aton_r/autogen:1.1
--- /dev/null	Wed May 19 17:55:36 2010
+++ src/regress/sys/net/ether_aton_r/autogen	Wed May 19 17:55:36 2010
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+cat  __EOF  $2
+
+#include ctype.h
+#include sys/types.h
+#include errno.h
+
+#define ETHER_ADDR_LEN 6
+
+int ether_aton_r(u_char *dest, size_t len, const char *str);
+
+__EOF
+
+ed $1  _EOF  /dev/null 21
+1
+/^ether_aton_r/
+-
+-
+1,.d
+/^}$/
++
+.,\$d
+W $2
+q
+_EOF
Index: src/regress/sys/net/ether_aton_r/main.c
diff -u /dev/null src/regress/sys/net/ether_aton_r/main.c:1.1
--- /dev/null	Wed May 19 17:55:36 2010
+++ src/regress/sys/net/ether_aton_r/main.c	Wed May 19 17:55:36 2010
@@ -0,0 +1,96 @@
+/*	$NetBSD: main.c,v 1.1 2010/05/19 21:55:36 christos Exp $	*/
+
+/*-
+ * Copyright (c) 2010 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Christos Zoulas.
+ *
+ * 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.
+ * 3. All advertising materials mentioning features or use of this software
+ *must display the following acknowledgement:
+ *This product includes software developed by the NetBSD
+ *Foundation, Inc. and its contributors.
+ * 4. Neither the name of The NetBSD Foundation nor the names of its
+ *contributors may be used to endorse or promote products derived
+ *from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. 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 FOUNDATION 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.
+ */
+#include sys/cdefs.h
+__RCSID($NetBSD: main.c,v 1.1 2010/05/19 21:55:36 christos Exp $);
+
+#include stdio.h
+#include ctype.h
+#include sys/types.h
+#include err.h
+#include string.h
+#include errno.h
+
+#define ETHER_ADDR_LEN 6
+
+int ether_aton_r(u_char *dest, size_t len, const char *str);
+

CVS commit: src/regress/sys/net/ether_aton_r

2010-05-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 19 21:59:35 UTC 2010

Modified Files:
src/regress/sys/net/ether_aton_r: main.c

Log Message:
verify hex digits.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/regress/sys/net/ether_aton_r/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/sys/net/ether_aton_r/main.c
diff -u src/regress/sys/net/ether_aton_r/main.c:1.1 src/regress/sys/net/ether_aton_r/main.c:1.2
--- src/regress/sys/net/ether_aton_r/main.c:1.1	Wed May 19 17:55:36 2010
+++ src/regress/sys/net/ether_aton_r/main.c	Wed May 19 17:59:34 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.1 2010/05/19 21:55:36 christos Exp $	*/
+/*	$NetBSD: main.c,v 1.2 2010/05/19 21:59:34 christos Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: main.c,v 1.1 2010/05/19 21:55:36 christos Exp $);
+__RCSID($NetBSD: main.c,v 1.2 2010/05/19 21:59:34 christos Exp $);
 
 #include stdio.h
 #include ctype.h
@@ -60,6 +60,7 @@
 #define ZERO { 0, 0, 0, 0, 0, 0 }
 	{ { 0, 1, 0x22, 3, 0x14, 5 }, 0:1:22-3:14:05, 0 },
 	{ { 0, 1, 0x22, 3, 0x14, 5 }, 000122031405, 0 },
+	{ { 0xa, 0xB, 0xcc, 0xdD, 0xEE, 0xf }, 0a0BccdDEE0f, 0 },
 	{ ZERO,			  0:1:2-3:04:05:06, ENAMETOOLONG },
 	{ ZERO,			  0:1:2-3:04:, ENOBUFS },
 	{ ZERO,			  0:1:2-3:04:x7, EINVAL },



CVS commit: src/regress/sys/kern/ipf

2010-04-17 Thread Darren Reed
Module Name:src
Committed By:   darrenr
Date:   Sat Apr 17 20:58:53 UTC 2010

Update of /cvsroot/src/regress/sys/kern/ipf
In directory ivanova.netbsd.org:/tmp/cvs-serv12072

Log Message:
Import IPFilter 4.1.34 into NetBSD

4.1.34 - Release 11 March 2010
2964907 uninitialised use compile error
2959506 ipfstat does not display rules with compat
2949139 FR_T_BUILTIN masked out incorrectly
2937422 packets filtered with pools should not be cached
2935529 use of rules with tags leads to deadlock
2917501 whitespace cleanup required
2881514 in/out object functions not wired for compatibility
2841771 ipf/ippool rule maintenace bugs: memory leak, ref-counter bug
2839698 H.323 proxy does not clear fin_state/fin_nat


Status:

Vendor Tag: DARRENR
Release Tags:   v4-1-34

U src/regress/sys/kern/ipf/logtest
U src/regress/sys/kern/ipf/mhtest
U src/regress/sys/kern/ipf/ptest
U src/regress/sys/kern/ipf/README.TXT
U src/regress/sys/kern/ipf/intest
U src/regress/sys/kern/ipf/dotest
U src/regress/sys/kern/ipf/mtest
U src/regress/sys/kern/ipf/dotest6
U src/regress/sys/kern/ipf/natipftest
U src/regress/sys/kern/ipf/hextest
U src/regress/sys/kern/ipf/vfycksum.pl
U src/regress/sys/kern/ipf/test.format
U src/regress/sys/kern/ipf/Makefile
U src/regress/sys/kern/ipf/itest
U src/regress/sys/kern/ipf/bpftest
U src/regress/sys/kern/ipf/nattest
U src/regress/sys/kern/ipf/iptest
U src/regress/sys/kern/ipf/input/ni10
U src/regress/sys/kern/ipf/input/f15
U src/regress/sys/kern/ipf/input/ipv6.3
U src/regress/sys/kern/ipf/input/n11
U src/regress/sys/kern/ipf/input/p3
U src/regress/sys/kern/ipf/input/l1
U src/regress/sys/kern/ipf/input/n16
U src/regress/sys/kern/ipf/input/ni7
U src/regress/sys/kern/ipf/input/f7
U src/regress/sys/kern/ipf/input/f12
U src/regress/sys/kern/ipf/input/ni17
U src/regress/sys/kern/ipf/input/f18
U src/regress/sys/kern/ipf/input/n7
U src/regress/sys/kern/ipf/input/f20
U src/regress/sys/kern/ipf/input/n9
U src/regress/sys/kern/ipf/input/n3
U src/regress/sys/kern/ipf/input/ni21
U src/regress/sys/kern/ipf/input/f24
U src/regress/sys/kern/ipf/input/ni19
U src/regress/sys/kern/ipf/input/f16
U src/regress/sys/kern/ipf/input/ni13
U src/regress/sys/kern/ipf/input/f9
U src/regress/sys/kern/ipf/input/f3
U src/regress/sys/kern/ipf/input/n18
U src/regress/sys/kern/ipf/input/ni3
U src/regress/sys/kern/ipf/input/ni9
U src/regress/sys/kern/ipf/input/n12
U src/regress/sys/kern/ipf/input/ni4
U src/regress/sys/kern/ipf/input/f4
U src/regress/sys/kern/ipf/input/ni14
U src/regress/sys/kern/ipf/input/f11
U src/regress/sys/kern/ipf/input/n4
U src/regress/sys/kern/ipf/input/ipv6.5
U src/regress/sys/kern/ipf/input/f19
U src/regress/sys/kern/ipf/input/ni16
U src/regress/sys/kern/ipf/input/f13
U src/regress/sys/kern/ipf/input/n6
U src/regress/sys/kern/ipf/input/p5
U src/regress/sys/kern/ipf/input/ni6
U src/regress/sys/kern/ipf/input/n17
U src/regress/sys/kern/ipf/input/f6
U src/regress/sys/kern/ipf/input/f1
U src/regress/sys/kern/ipf/input/p2
U src/regress/sys/kern/ipf/input/ni1
U src/regress/sys/kern/ipf/input/n10
U src/regress/sys/kern/ipf/input/ni23
U src/regress/sys/kern/ipf/input/n1
U src/regress/sys/kern/ipf/input/f14
U src/regress/sys/kern/ipf/input/ni11
U src/regress/sys/kern/ipf/input/ipv6.2
U src/regress/sys/kern/ipf/input/f10
U src/regress/sys/kern/ipf/input/ni15
U src/regress/sys/kern/ipf/input/ipv6.6
U src/regress/sys/kern/ipf/input/n5
U src/regress/sys/kern/ipf/input/n14
U src/regress/sys/kern/ipf/input/ni5
U src/regress/sys/kern/ipf/input/f5
U src/regress/sys/kern/ipf/input/f2
U src/regress/sys/kern/ipf/input/f8
U src/regress/sys/kern/ipf/input/n13
U src/regress/sys/kern/ipf/input/ni8
U src/regress/sys/kern/ipf/input/ni2
U src/regress/sys/kern/ipf/input/p1
U src/regress/sys/kern/ipf/input/n2
U src/regress/sys/kern/ipf/input/n8
U src/regress/sys/kern/ipf/input/ni20
U src/regress/sys/kern/ipf/input/ip2.data
U src/regress/sys/kern/ipf/input/ipv6.1
U src/regress/sys/kern/ipf/input/ni12
U src/regress/sys/kern/ipf/input/f17
U src/regress/sys/kern/ipf/regress/p2.ipf
U src/regress/sys/kern/ipf/regress/p5.ipf
U src/regress/sys/kern/ipf/regress/ni9.nat
U src/regress/sys/kern/ipf/regress/f12
U src/regress/sys/kern/ipf/regress/f18
U src/regress/sys/kern/ipf/regress/ip2
U src/regress/sys/kern/ipf/regress/i4
U src/regress/sys/kern/ipf/regress/n3
U src/regress/sys/kern/ipf/regress/ni7.nat
U src/regress/sys/kern/ipf/regress/n9
U src/regress/sys/kern/ipf/regress/f20
U src/regress/sys/kern/ipf/regress/bpf1
U src/regress/sys/kern/ipf/regress/ni1.ipf
U src/regress/sys/kern/ipf/regress/ipv6.6
U src/regress/sys/kern/ipf/regress/n16
U src/regress/sys/kern/ipf/regress/ni6.ipf
U src/regress/sys/kern/ipf/regress/f3
U src/regress/sys/kern/ipf/regress/in1
U src/regress/sys/kern/ipf/regress/ni8.ipf
U src/regress/sys/kern/ipf/regress/i17
U src/regress/sys/kern/ipf/regress/f9
U src/regress/sys/kern/ipf/regress/in6
U src/regress/sys/kern/ipf/regress/f4
U src/regress/sys/kern/ipf/regress/i10
U 

CVS commit: src/regress/usr.bin/xlint/lint1

2010-03-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Mar 21 00:03:46 UTC 2010

Added Files:
src/regress/usr.bin/xlint/lint1: test27.c

Log Message:
right shift of unsigned quantities with constant.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/regress/usr.bin/xlint/lint1/test27.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/regress/usr.bin/xlint/lint1/test27.c
diff -u /dev/null src/regress/usr.bin/xlint/lint1/test27.c:1.1
--- /dev/null	Sat Mar 20 20:03:46 2010
+++ src/regress/usr.bin/xlint/lint1/test27.c	Sat Mar 20 20:03:46 2010
@@ -0,0 +1,23 @@
+// Test that type shifts that result to narrower types don't produce warnings. 
+void
+foo(void) {
+	unsigned long l = 100;
+	unsigned long long ll = 100;
+	unsigned int i = 100;
+	unsigned short s = 100;
+	unsigned char c = 1;
+
+	l = ll  32;
+//	i = ll  31;
+	i = ll  32;
+	s = ll  48;
+	c = ll  56;
+	s = i  16;
+	c = i  24;
+	c = s  8;
+	(void)ll;
+	(void)l;
+	(void)i;
+	(void)s;
+	(void)c;
+}



CVS commit: src/regress/lib/libpthread/find

2010-02-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Feb 16 00:15:19 UTC 2010

Modified Files:
src/regress/lib/libpthread/find: findthreads.c

Log Message:
if pthread_create() fails, display the iteration number in the error message.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/regress/lib/libpthread/find/findthreads.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libpthread/find/findthreads.c
diff -u src/regress/lib/libpthread/find/findthreads.c:1.1 src/regress/lib/libpthread/find/findthreads.c:1.2
--- src/regress/lib/libpthread/find/findthreads.c:1.1	Thu Apr  2 12:58:44 2009
+++ src/regress/lib/libpthread/find/findthreads.c	Tue Feb 16 00:15:19 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: findthreads.c,v 1.1 2009/04/02 12:58:44 drochner Exp $ */
+/* $NetBSD: findthreads.c,v 1.2 2010/02/16 00:15:19 mrg Exp $ */
 
 #include err.h
 #include pthread.h
@@ -36,7 +36,7 @@
 	for (i = 0; i  NUM; i++) {
 		res = pthread_create(thr[i], 0, f, 0);
 		if (res)
-			errx(1, pthread_create: %s, strerror(res));
+			errx(1, pthread_create iter %d: %s, i, strerror(res));
 		for (j = 0; j = i; j++) {
 			res = pthread_getname_np(thr[j], nam, sizeof(nam));
 			if (res) {



CVS commit: src/regress/lib/libc/stdlib/posix_memalign

2010-01-26 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Jan 26 22:14:01 UTC 2010

Modified Files:
src/regress/lib/libc/stdlib/posix_memalign: posix_memalign.c

Log Message:
make this test actually work:
- posix_memalign() does not set errno, it returns 0 or an error number
  (maybe a jemalloc() vs. phkmalloc() issue, but also how the opengroup
  documents it.)
- since align must be = sizeof(void *), expect to fail align=4 on
  LP64 systems.
- while i'm here, add a test for align=2 failing everywhere.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/regress/lib/libc/stdlib/posix_memalign/posix_memalign.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/stdlib/posix_memalign/posix_memalign.c
diff -u src/regress/lib/libc/stdlib/posix_memalign/posix_memalign.c:1.2 src/regress/lib/libc/stdlib/posix_memalign/posix_memalign.c:1.3
--- src/regress/lib/libc/stdlib/posix_memalign/posix_memalign.c:1.2	Mon Apr 28 20:23:05 2008
+++ src/regress/lib/libc/stdlib/posix_memalign/posix_memalign.c	Tue Jan 26 22:14:01 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: posix_memalign.c,v 1.2 2008/04/28 20:23:05 martin Exp $	*/
+/*	$NetBSD: posix_memalign.c,v 1.3 2010/01/26 22:14:01 mrg Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,17 +29,33 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include sys/cdefs.h
-__RCSID($NetBSD: posix_memalign.c,v 1.2 2008/04/28 20:23:05 martin Exp $);
+__RCSID($NetBSD: posix_memalign.c,v 1.3 2010/01/26 22:14:01 mrg Exp $);
 
 #include stdint.h
 #include stdlib.h
+#include errno.h
 #include err.h
+#include stdbool.h
 
-size_t size[] = {
-	1, 2, 3, 4, 10, 100, 16384
-};
-size_t align[] = {
-	512, 1024, 16, 32, 64, 4, 2048
+#ifdef _LP64
+#define FOURFAIL	true
+#else
+#define FOURFAIL	false
+#endif
+
+struct {
+	size_t	size;
+	size_t	align;
+	bool	fail;
+} testlist[] = {
+	{ 1, 512, false, },
+	{ 2, 1024, false, },
+	{ 3, 16, false, },
+	{ 4, 32, false, },
+	{ 10, 64, false, },
+	{ 100, 4, FOURFAIL, },
+	{ 10, 2, true, },
+	{ 16384, 2048, false, },
 };
 
 int
@@ -47,17 +63,24 @@
 {
 	size_t i;
 	void *p;
+	int error;
 
-	for (i = 0; i  __arraycount(size); i++) {
-		if (posix_memalign(p, align[i], size[i]) != 0)
-			err(1, a=%zu, s=%zu, align[i], size[i]);
-		if (((intptr_t)p)  (align[i] - 1))
-			errx(1, p=%p a=%zu, s=%zu, p, align[i], size[i]);
+	for (i = 0; i  __arraycount(testlist); i++) {
+		error = posix_memalign(p, testlist[i].align, testlist[i].size);
+		if (testlist[i].fail == false) {
+			if (error != 0) {
+errno = error;
+err(1, a=%zu, s=%zu, testlist[i].align, testlist[i].size);
+			}
+			if (((intptr_t)p)  (testlist[i].align - 1))
+errx(1, p=%p a=%zu, s=%zu, p, testlist[i].align, testlist[i].size);
+		} else if (error == 0)
+			errx(1, didn't fail: a=%zu, s=%zu, testlist[i].align, testlist[i].size);
 	}
 
 	/* This can fail */
 	if (posix_memalign(p, 32768, 16) == 0)
 		if (((intptr_t)p)  (32768 - 1))
-			errx(1, p=%p a=%zu, s=%zu, p, align[i], size[i]);
+			errx(1, p=%p a=%zu, s=%zu, p, 32768, 16);
 	return 0;
 }



CVS commit: src/regress/usr.bin/rtld/dlerror-cleared

2010-01-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan 13 20:18:24 UTC 2010

Modified Files:
src/regress/usr.bin/rtld/dlerror-cleared: dlerror-cleared.c

Log Message:
use RTLD_NOW now that it works.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/regress/usr.bin/rtld/dlerror-cleared/dlerror-cleared.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/usr.bin/rtld/dlerror-cleared/dlerror-cleared.c
diff -u src/regress/usr.bin/rtld/dlerror-cleared/dlerror-cleared.c:1.2 src/regress/usr.bin/rtld/dlerror-cleared/dlerror-cleared.c:1.3
--- src/regress/usr.bin/rtld/dlerror-cleared/dlerror-cleared.c:1.2	Fri Aug  1 03:04:31 2003
+++ src/regress/usr.bin/rtld/dlerror-cleared/dlerror-cleared.c	Wed Jan 13 15:18:24 2010
@@ -12,7 +12,7 @@
 	 * dlopen() call.
 	 */
 	handle = dlopen(libnonexistent.so, RTLD_LAZY);
-	handle = dlopen(libm.so, RTLD_LAZY);
+	handle = dlopen(libm.so, RTLD_NOW);
 	error = dlerror();
 	if (error == NULL)
 		errx(1, Failed: dlerror() was cleared by successful dlopen()\n);



CVS commit: src/regress/lib/libc

2009-11-25 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Wed Nov 25 09:22:36 UTC 2009

Modified Files:
src/regress/lib/libc: Makefile

Log Message:
Descend into ssp/ only if ${USE_SSP} is yes.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/regress/lib/libc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.56 src/regress/lib/libc/Makefile:1.57
--- src/regress/lib/libc/Makefile:1.56	Thu May  7 20:40:25 2009
+++ src/regress/lib/libc/Makefile	Wed Nov 25 09:22:36 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.56 2009/05/07 20:40:25 christos Exp $
+#	$NetBSD: Makefile,v 1.57 2009/11/25 09:22:36 uebayasi Exp $
 
 SUBDIR+= _setjmp atexit basename citrus clone context convfp db dirname \
 	div divrem gen gdtoa getaddrinfo hsearch inet int_fmtio locale md5sha \
@@ -8,7 +8,7 @@
 .include bsd.own.mk
 .include bsd.sys.mk
 
-.if (${HAS_SSP} == yes)
+.if (${USE_SSP} == yes)
 SUBDIR+= ssp
 .endif
 .if (${MACHINE_ARCH} != vax  ${MACHINE_ARCH} != m68000)



CVS commit: src/regress/lib/libc

2009-11-25 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Wed Nov 25 09:30:04 UTC 2009

Modified Files:
src/regress/lib/libc: Makefile

Log Message:
Handle undefined USE_SSP.  XXX *_SSP variables needs clean-up.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/regress/lib/libc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/libc/Makefile
diff -u src/regress/lib/libc/Makefile:1.57 src/regress/lib/libc/Makefile:1.58
--- src/regress/lib/libc/Makefile:1.57	Wed Nov 25 09:22:36 2009
+++ src/regress/lib/libc/Makefile	Wed Nov 25 09:30:04 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.57 2009/11/25 09:22:36 uebayasi Exp $
+#	$NetBSD: Makefile,v 1.58 2009/11/25 09:30:04 uebayasi Exp $
 
 SUBDIR+= _setjmp atexit basename citrus clone context convfp db dirname \
 	div divrem gen gdtoa getaddrinfo hsearch inet int_fmtio locale md5sha \
@@ -8,7 +8,7 @@
 .include bsd.own.mk
 .include bsd.sys.mk
 
-.if (${USE_SSP} == yes)
+.if defined(USE_SSP)  (${USE_SSP} == yes)
 SUBDIR+= ssp
 .endif
 .if (${MACHINE_ARCH} != vax  ${MACHINE_ARCH} != m68000)



CVS commit: src/regress/lib

2009-11-02 Thread Iain Hibbert
Module Name:src
Committed By:   plunky
Date:   Mon Nov  2 15:44:12 UTC 2009

Modified Files:
src/regress/lib: Makefile

Log Message:
remove libevent (uses ATF tests now)


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/regress/lib/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/lib/Makefile
diff -u src/regress/lib/Makefile:1.21 src/regress/lib/Makefile:1.22
--- src/regress/lib/Makefile:1.21	Sat Feb 14 00:26:14 2009
+++ src/regress/lib/Makefile	Mon Nov  2 15:44:12 2009
@@ -1,8 +1,8 @@
-#	$NetBSD: Makefile,v 1.21 2009/02/14 00:26:14 cube Exp $
+#	$NetBSD: Makefile,v 1.22 2009/11/02 15:44:12 plunky Exp $
 
 .include bsd.own.mk
 
-SUBDIR+= csu libc libevent libm libposix libpthread librt libutil
+SUBDIR+= csu libc libm libposix libpthread librt libutil
 
 .if (${MACHINE_CPU} != alpha  \
  ${MACHINE_CPU} != mips  \



CVS commit: src/regress/usr.bin/xlint/lint1

2009-10-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct  4 15:12:42 UTC 2009

Added Files:
src/regress/usr.bin/xlint/lint1: test26.c

Log Message:
add packed tests.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/regress/usr.bin/xlint/lint1/test26.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/regress/usr.bin/xlint/lint1/test26.c
diff -u /dev/null src/regress/usr.bin/xlint/lint1/test26.c:1.1
--- /dev/null	Sun Oct  4 11:12:42 2009
+++ src/regress/usr.bin/xlint/lint1/test26.c	Sun Oct  4 11:12:41 2009
@@ -0,0 +1,35 @@
+/* packed tests */
+
+struct in_addr {
+	int x;
+};
+struct	ip_timestamp {
+	char ipt_code;
+	char ipt_len;
+	char ipt_ptr;
+	unsigned int ipt_flg:4,
+		 ipt_oflw:4;
+	union ipt_timestamp {
+		 int	ipt_time[1];
+		 struct	ipt_ta {
+			struct in_addr ipt_addr;
+			int ipt_time;
+		 } ipt_ta[1] __packed;
+	} ipt_timestamp __packed;
+} __packed;
+
+typedef struct __packed {
+	int x;
+} t;
+
+struct x {
+	char c;
+	long l;
+} __packed;
+
+struct y {
+	char c;
+	long l;
+};
+
+int a[sizeof(struct y) - sizeof(struct x) - 1];



CVS commit: src/regress

2009-09-14 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Mon Sep 14 17:15:32 UTC 2009

Modified Files:
src/regress: README

Log Message:
Add a note saying that new tests should use ATF.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/regress/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/README
diff -u src/regress/README:1.1 src/regress/README:1.2
--- src/regress/README:1.1	Tue Mar 14 09:46:34 2006
+++ src/regress/README	Mon Sep 14 17:15:32 2009
@@ -1,5 +1,9 @@
-$NetBSD: README,v 1.1 2006/03/14 09:46:34 martin Exp $
+$NetBSD: README,v 1.2 2009/09/14 17:15:32 apb Exp $
 
+NOTE: New tests should use the ATF framework; see atf(7)
+and the src/tests directory.
+
+
 This part of the source tree contains regression tests. There are special
 make targets and rules to follow. Most of these, however, are currently not
 enforced, and most tests available are not conforming.



CVS commit: src/regress/include/okheaders

2009-08-21 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Fri Aug 21 13:30:54 UTC 2009

Modified Files:
src/regress/include/okheaders: symbolcheck.c

Log Message:
Don't try to include a.out.h or link_aout.h on mips.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/regress/include/okheaders/symbolcheck.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/regress/include/okheaders/symbolcheck.c
diff -u src/regress/include/okheaders/symbolcheck.c:1.28 src/regress/include/okheaders/symbolcheck.c:1.29
--- src/regress/include/okheaders/symbolcheck.c:1.28	Wed Nov 12 12:35:52 2008
+++ src/regress/include/okheaders/symbolcheck.c	Fri Aug 21 13:30:54 2009
@@ -207,7 +207,9 @@
 #include net/slip.h
 #include net/zlib.h
 
+#if !defined(__mips__)
 #include a.out.h
+#endif
 #include ar.h
 #include assert.h
 #include bitstring.h
@@ -253,7 +255,9 @@
 #include libintl.h
 #include limits.h
 #include link.h
+#if !defined(__mips__)
 #include link_aout.h
+#endif
 #include link_elf.h
 #include locale.h
 #include login_cap.h



CVS commit: src/regress/sys/kern/ipf

2009-08-19 Thread Darren Reed
Module Name:src
Committed By:   darrenr
Date:   Wed Aug 19 08:33:28 UTC 2009

Update of /cvsroot/src/regress/sys/kern/ipf
In directory ivanova.netbsd.org:/tmp/cvs-serv22646

Log Message:
Import IPFilter 4.1.33

4.1.33 - Release 16 August 2009

2837931 wrong mode selected in ipf program for hash-entries
2826168 load_http can make ippool core dump
2825150 IPL_LOGMAX used to index some arrays
2825084 ipv6 fragments should not be allowed past 64k
2824713 ipfstat top output alternates between entries and nothing
2824712 ipfstat top output is shows negative ttl
2820965 a single bad ipv6 extension header should not impact others
2818197 ignored fragment bits defined as being reserved
2817667 IPv6 fragment header verification needs attention
2817098 fr_getrulen() finds the wrong rule
2817096 fr_rulen is unused
2741019 Lingering states (Established/Listen - 5/0) in state table
2702887 use of PBR/fastroute causes panic with ipv6
2671913 regression test in7 fails to execute
2598625 parsing empty config file results in an error
2698656 test parsing empty config files
2597956 not all pointers in a clone are reset
2543934 nat_t gets assigned ifp too early
2535795 No need to always bump fr_ref
2535778 Bad IPv6 packets droped by default
2031730 4.1.31 Nat drops fragmented packets after the first
2214661 ipf does not handle IPv6 fragments
2473273 NAT removed before RST/ICMP sent
2216500 fin_state serves no purpose
2424604 adding random MD5 data causes panic
2304435 Ineffecient lock usage in logging
2216491 fin_nat serves little purpose
2055619 duplicating a free-d packet will fail
2042949 Excessive locking when creating nat_t
2035610 nat_update does not need to get locks
2214658 ipf mostly ignores locking in NetBSD
1979427 Memory leak in user utilities - token never freed (rel br)
* SunOS4 does not have a curproc, but it does have u.
* The fix for 2020447 generated random port numbers but not within the
  range specified in the map rule.  Add in a regression test to verify
  that the random part works.
2020447 NAT can undo name server random port selection
1988795 NetBSD does not build with kernel malloc stats
1988782 fr_movequeue can take a short cut
1988669 first nat creation failure prevents further success
1988668 hostmap searching does not work properly
* on some 64bit architectures (such as alpha), the addrfamily_t is packed
  differently, throwing off the calculations for adf_len
* one too many READ_ENTERs in ip_sync code.
* clean up fr_fastroute a little by removing some #ifdefs and pushing the
  code around a bit to use the same variables (NetBSD)
* more recent NetBSDs use VOP related macros differently

Status:

Vendor Tag: DARRENR
Release Tags:   v4-1-33

U src/regress/sys/kern/ipf/iptest
U src/regress/sys/kern/ipf/ptest
C src/regress/sys/kern/ipf/Makefile
U src/regress/sys/kern/ipf/README.TXT
U src/regress/sys/kern/ipf/hextest
U src/regress/sys/kern/ipf/nattest
U src/regress/sys/kern/ipf/mtest
U src/regress/sys/kern/ipf/natipftest
U src/regress/sys/kern/ipf/bpftest
U src/regress/sys/kern/ipf/logtest
U src/regress/sys/kern/ipf/dotest
U src/regress/sys/kern/ipf/intest
C src/regress/sys/kern/ipf/itest
U src/regress/sys/kern/ipf/dotest6
C src/regress/sys/kern/ipf/test.format
U src/regress/sys/kern/ipf/mhtest
U src/regress/sys/kern/ipf/vfycksum.pl
U src/regress/sys/kern/ipf/input/f3
U src/regress/sys/kern/ipf/input/ni23
U src/regress/sys/kern/ipf/input/f9
U src/regress/sys/kern/ipf/input/ni4
U src/regress/sys/kern/ipf/input/ni11
U src/regress/sys/kern/ipf/input/n3
U src/regress/sys/kern/ipf/input/n9
U src/regress/sys/kern/ipf/input/ipv6.5
U src/regress/sys/kern/ipf/input/f11
U src/regress/sys/kern/ipf/input/f24
U src/regress/sys/kern/ipf/input/f16
U src/regress/sys/kern/ipf/input/n4
U src/regress/sys/kern/ipf/input/ipv6.2
U src/regress/sys/kern/ipf/input/ni16
U src/regress/sys/kern/ipf/input/n12
U src/regress/sys/kern/ipf/input/ni9
U src/regress/sys/kern/ipf/input/ni3
N src/regress/sys/kern/ipf/input/n18
U src/regress/sys/kern/ipf/input/f4
U src/regress/sys/kern/ipf/input/ni7
U src/regress/sys/kern/ipf/input/n16
U src/regress/sys/kern/ipf/input/ni20
U src/regress/sys/kern/ipf/input/p3
U src/regress/sys/kern/ipf/input/ni12
U src/regress/sys/kern/ipf/input/l1
U src/regress/sys/kern/ipf/input/f18
U src/regress/sys/kern/ipf/input/f12
C src/regress/sys/kern/ipf/input/ipv6.6
U src/regress/sys/kern/ipf/input/f20
C src/regress/sys/kern/ipf/input/ipv6.1
U src/regress/sys/kern/ipf/input/n7
U src/regress/sys/kern/ipf/input/f15
U src/regress/sys/kern/ipf/input/ni15
U src/regress/sys/kern/ipf/input/ip2.data
U src/regress/sys/kern/ipf/input/f7
U src/regress/sys/kern/ipf/input/n11
U src/regress/sys/kern/ipf/input/ni17
U src/regress/sys/kern/ipf/input/ni2
U src/regress/sys/kern/ipf/input/ni8
U src/regress/sys/kern/ipf/input/n13
U src/regress/sys/kern/ipf/input/f5
U src/regress/sys/kern/ipf/input/f17
U src/regress/sys/kern/ipf/input/ipv6.3
U src/regress/sys/kern/ipf/input/n5
U 

  1   2   >