Module Name: src Committed By: joerg Date: Mon Sep 19 21:24:58 UTC 2011
Modified Files: src/lib/libc/arch/alpha/gen: makecontext.c resumecontext.c src/lib/libc/arch/arm/gen: resumecontext.c src/lib/libc/arch/hppa/gen: makecontext.c resumecontext.c src/lib/libc/arch/mips/gen: makecontext.c resumecontext.c src/lib/libc/arch/powerpc/gen: resumecontext.c src/lib/libc/arch/powerpc64/gen: resumecontext.c src/lib/libc/arch/sh3/gen: resumecontext.c src/lib/libc/arch/sparc/gen: resumecontext.c src/lib/libc/arch/sparc64/gen: resumecontext.c src/lib/libc/arch/vax/gen: resumecontext.c src/lib/libc/gen: Lint_resumecontext.c src/lib/libc/include: extern.h Log Message: Mark _resumecontext as dead. ANSIfy all declarations for it. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/lib/libc/arch/alpha/gen/makecontext.c \ src/lib/libc/arch/alpha/gen/resumecontext.c cvs rdiff -u -r1.4 -r1.5 src/lib/libc/arch/arm/gen/resumecontext.c cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/hppa/gen/makecontext.c \ src/lib/libc/arch/hppa/gen/resumecontext.c cvs rdiff -u -r1.5 -r1.6 src/lib/libc/arch/mips/gen/makecontext.c cvs rdiff -u -r1.4 -r1.5 src/lib/libc/arch/mips/gen/resumecontext.c cvs rdiff -u -r1.4 -r1.5 src/lib/libc/arch/powerpc/gen/resumecontext.c cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/powerpc64/gen/resumecontext.c cvs rdiff -u -r1.4 -r1.5 src/lib/libc/arch/sh3/gen/resumecontext.c cvs rdiff -u -r1.4 -r1.5 src/lib/libc/arch/sparc/gen/resumecontext.c cvs rdiff -u -r1.4 -r1.5 src/lib/libc/arch/sparc64/gen/resumecontext.c cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/vax/gen/resumecontext.c cvs rdiff -u -r1.2 -r1.3 src/lib/libc/gen/Lint_resumecontext.c cvs rdiff -u -r1.18 -r1.19 src/lib/libc/include/extern.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/arch/alpha/gen/makecontext.c diff -u src/lib/libc/arch/alpha/gen/makecontext.c:1.4 src/lib/libc/arch/alpha/gen/makecontext.c:1.5 --- src/lib/libc/arch/alpha/gen/makecontext.c:1.4 Mon Apr 28 20:22:55 2008 +++ src/lib/libc/arch/alpha/gen/makecontext.c Mon Sep 19 21:24:57 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: makecontext.c,v 1.4 2008/04/28 20:22:55 martin Exp $ */ +/* $NetBSD: makecontext.c,v 1.5 2011/09/19 21:24:57 joerg Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: makecontext.c,v 1.4 2008/04/28 20:22:55 martin Exp $"); +__RCSID("$NetBSD: makecontext.c,v 1.5 2011/09/19 21:24:57 joerg Exp $"); #endif #include <stddef.h> @@ -49,8 +49,6 @@ unsigned long *sp; va_list ap; - void __resumecontext(void); - /* Compute and align stack pointer. */ sp = (unsigned long *) (((uintptr_t)ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size) & ~0x7); Index: src/lib/libc/arch/alpha/gen/resumecontext.c diff -u src/lib/libc/arch/alpha/gen/resumecontext.c:1.4 src/lib/libc/arch/alpha/gen/resumecontext.c:1.5 --- src/lib/libc/arch/alpha/gen/resumecontext.c:1.4 Mon Apr 28 20:22:55 2008 +++ src/lib/libc/arch/alpha/gen/resumecontext.c Mon Sep 19 21:24:57 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: resumecontext.c,v 1.4 2008/04/28 20:22:55 martin Exp $ */ +/* $NetBSD: resumecontext.c,v 1.5 2011/09/19 21:24:57 joerg Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: resumecontext.c,v 1.4 2008/04/28 20:22:55 martin Exp $"); +__RCSID("$NetBSD: resumecontext.c,v 1.5 2011/09/19 21:24:57 joerg Exp $"); #endif #include "namespace.h" @@ -41,7 +41,7 @@ #include "extern.h" void -_resumecontext() +_resumecontext(void) { ucontext_t uct; Index: src/lib/libc/arch/arm/gen/resumecontext.c diff -u src/lib/libc/arch/arm/gen/resumecontext.c:1.4 src/lib/libc/arch/arm/gen/resumecontext.c:1.5 --- src/lib/libc/arch/arm/gen/resumecontext.c:1.4 Mon Apr 28 20:22:55 2008 +++ src/lib/libc/arch/arm/gen/resumecontext.c Mon Sep 19 21:24:57 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: resumecontext.c,v 1.4 2008/04/28 20:22:55 martin Exp $ */ +/* $NetBSD: resumecontext.c,v 1.5 2011/09/19 21:24:57 joerg Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: resumecontext.c,v 1.4 2008/04/28 20:22:55 martin Exp $"); +__RCSID("$NetBSD: resumecontext.c,v 1.5 2011/09/19 21:24:57 joerg Exp $"); #endif #include "namespace.h" @@ -41,7 +41,7 @@ #include "extern.h" void -_resumecontext() +_resumecontext(void) { ucontext_t uct; Index: src/lib/libc/arch/hppa/gen/makecontext.c diff -u src/lib/libc/arch/hppa/gen/makecontext.c:1.3 src/lib/libc/arch/hppa/gen/makecontext.c:1.4 --- src/lib/libc/arch/hppa/gen/makecontext.c:1.3 Mon Apr 28 20:22:56 2008 +++ src/lib/libc/arch/hppa/gen/makecontext.c Mon Sep 19 21:24:57 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: makecontext.c,v 1.3 2008/04/28 20:22:56 martin Exp $ */ +/* $NetBSD: makecontext.c,v 1.4 2011/09/19 21:24:57 joerg Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: makecontext.c,v 1.3 2008/04/28 20:22:56 martin Exp $"); +__RCSID("$NetBSD: makecontext.c,v 1.4 2011/09/19 21:24:57 joerg Exp $"); #endif #include <inttypes.h> @@ -54,8 +54,6 @@ int i; va_list ap; - void __resumecontext(void); - /* LINTED uintptr_t is safe */ sp = (uintptr_t *)ucp->uc_stack.ss_sp; /* LINTED uintptr_t is safe */ Index: src/lib/libc/arch/hppa/gen/resumecontext.c diff -u src/lib/libc/arch/hppa/gen/resumecontext.c:1.3 src/lib/libc/arch/hppa/gen/resumecontext.c:1.4 --- src/lib/libc/arch/hppa/gen/resumecontext.c:1.3 Mon Apr 28 20:22:56 2008 +++ src/lib/libc/arch/hppa/gen/resumecontext.c Mon Sep 19 21:24:57 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: resumecontext.c,v 1.3 2008/04/28 20:22:56 martin Exp $ */ +/* $NetBSD: resumecontext.c,v 1.4 2011/09/19 21:24:57 joerg Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: resumecontext.c,v 1.3 2008/04/28 20:22:56 martin Exp $"); +__RCSID("$NetBSD: resumecontext.c,v 1.4 2011/09/19 21:24:57 joerg Exp $"); #endif #include "namespace.h" @@ -41,7 +41,7 @@ #include "extern.h" void -_resumecontext() +_resumecontext(void) { ucontext_t uct; Index: src/lib/libc/arch/mips/gen/makecontext.c diff -u src/lib/libc/arch/mips/gen/makecontext.c:1.5 src/lib/libc/arch/mips/gen/makecontext.c:1.6 --- src/lib/libc/arch/mips/gen/makecontext.c:1.5 Mon Dec 14 01:07:42 2009 +++ src/lib/libc/arch/mips/gen/makecontext.c Mon Sep 19 21:24:57 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: makecontext.c,v 1.5 2009/12/14 01:07:42 matt Exp $ */ +/* $NetBSD: makecontext.c,v 1.6 2011/09/19 21:24:57 joerg Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: makecontext.c,v 1.5 2009/12/14 01:07:42 matt Exp $"); +__RCSID("$NetBSD: makecontext.c,v 1.6 2011/09/19 21:24:57 joerg Exp $"); #endif #include <inttypes.h> @@ -49,8 +49,6 @@ int i; va_list ap; - void __resumecontext(void); - /* LINTED uintptr_t is safe */ sp = (__greg_t *) ((uintptr_t)ucp->uc_stack.ss_sp + ucp->uc_stack.ss_size); Index: src/lib/libc/arch/mips/gen/resumecontext.c diff -u src/lib/libc/arch/mips/gen/resumecontext.c:1.4 src/lib/libc/arch/mips/gen/resumecontext.c:1.5 --- src/lib/libc/arch/mips/gen/resumecontext.c:1.4 Mon Apr 28 20:22:56 2008 +++ src/lib/libc/arch/mips/gen/resumecontext.c Mon Sep 19 21:24:57 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: resumecontext.c,v 1.4 2008/04/28 20:22:56 martin Exp $ */ +/* $NetBSD: resumecontext.c,v 1.5 2011/09/19 21:24:57 joerg Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: resumecontext.c,v 1.4 2008/04/28 20:22:56 martin Exp $"); +__RCSID("$NetBSD: resumecontext.c,v 1.5 2011/09/19 21:24:57 joerg Exp $"); #endif #include "namespace.h" @@ -41,7 +41,7 @@ #include "extern.h" void -_resumecontext() +_resumecontext(void) { ucontext_t uct; Index: src/lib/libc/arch/powerpc/gen/resumecontext.c diff -u src/lib/libc/arch/powerpc/gen/resumecontext.c:1.4 src/lib/libc/arch/powerpc/gen/resumecontext.c:1.5 --- src/lib/libc/arch/powerpc/gen/resumecontext.c:1.4 Mon Apr 28 20:22:57 2008 +++ src/lib/libc/arch/powerpc/gen/resumecontext.c Mon Sep 19 21:24:58 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: resumecontext.c,v 1.4 2008/04/28 20:22:57 martin Exp $ */ +/* $NetBSD: resumecontext.c,v 1.5 2011/09/19 21:24:58 joerg Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: resumecontext.c,v 1.4 2008/04/28 20:22:57 martin Exp $"); +__RCSID("$NetBSD: resumecontext.c,v 1.5 2011/09/19 21:24:58 joerg Exp $"); #endif #include "namespace.h" @@ -41,7 +41,7 @@ #include "extern.h" void -_resumecontext() +_resumecontext(void) { ucontext_t uct; Index: src/lib/libc/arch/powerpc64/gen/resumecontext.c diff -u src/lib/libc/arch/powerpc64/gen/resumecontext.c:1.3 src/lib/libc/arch/powerpc64/gen/resumecontext.c:1.4 --- src/lib/libc/arch/powerpc64/gen/resumecontext.c:1.3 Mon Apr 28 20:22:57 2008 +++ src/lib/libc/arch/powerpc64/gen/resumecontext.c Mon Sep 19 21:24:58 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: resumecontext.c,v 1.3 2008/04/28 20:22:57 martin Exp $ */ +/* $NetBSD: resumecontext.c,v 1.4 2011/09/19 21:24:58 joerg Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: resumecontext.c,v 1.3 2008/04/28 20:22:57 martin Exp $"); +__RCSID("$NetBSD: resumecontext.c,v 1.4 2011/09/19 21:24:58 joerg Exp $"); #endif #include "namespace.h" @@ -41,7 +41,7 @@ #include "extern.h" void -_resumecontext() +_resumecontext(void) { ucontext_t uct; Index: src/lib/libc/arch/sh3/gen/resumecontext.c diff -u src/lib/libc/arch/sh3/gen/resumecontext.c:1.4 src/lib/libc/arch/sh3/gen/resumecontext.c:1.5 --- src/lib/libc/arch/sh3/gen/resumecontext.c:1.4 Mon Apr 28 20:22:57 2008 +++ src/lib/libc/arch/sh3/gen/resumecontext.c Mon Sep 19 21:24:58 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: resumecontext.c,v 1.4 2008/04/28 20:22:57 martin Exp $ */ +/* $NetBSD: resumecontext.c,v 1.5 2011/09/19 21:24:58 joerg Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: resumecontext.c,v 1.4 2008/04/28 20:22:57 martin Exp $"); +__RCSID("$NetBSD: resumecontext.c,v 1.5 2011/09/19 21:24:58 joerg Exp $"); #endif #include "namespace.h" @@ -41,7 +41,7 @@ #include "extern.h" void -_resumecontext() +_resumecontext(void) { ucontext_t uct; Index: src/lib/libc/arch/sparc/gen/resumecontext.c diff -u src/lib/libc/arch/sparc/gen/resumecontext.c:1.4 src/lib/libc/arch/sparc/gen/resumecontext.c:1.5 --- src/lib/libc/arch/sparc/gen/resumecontext.c:1.4 Mon Apr 28 20:22:57 2008 +++ src/lib/libc/arch/sparc/gen/resumecontext.c Mon Sep 19 21:24:58 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: resumecontext.c,v 1.4 2008/04/28 20:22:57 martin Exp $ */ +/* $NetBSD: resumecontext.c,v 1.5 2011/09/19 21:24:58 joerg Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: resumecontext.c,v 1.4 2008/04/28 20:22:57 martin Exp $"); +__RCSID("$NetBSD: resumecontext.c,v 1.5 2011/09/19 21:24:58 joerg Exp $"); #endif #include "namespace.h" @@ -41,7 +41,7 @@ #include "extern.h" void -_resumecontext() +_resumecontext(void) { ucontext_t uct; Index: src/lib/libc/arch/sparc64/gen/resumecontext.c diff -u src/lib/libc/arch/sparc64/gen/resumecontext.c:1.4 src/lib/libc/arch/sparc64/gen/resumecontext.c:1.5 --- src/lib/libc/arch/sparc64/gen/resumecontext.c:1.4 Mon Apr 28 20:22:57 2008 +++ src/lib/libc/arch/sparc64/gen/resumecontext.c Mon Sep 19 21:24:58 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: resumecontext.c,v 1.4 2008/04/28 20:22:57 martin Exp $ */ +/* $NetBSD: resumecontext.c,v 1.5 2011/09/19 21:24:58 joerg Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: resumecontext.c,v 1.4 2008/04/28 20:22:57 martin Exp $"); +__RCSID("$NetBSD: resumecontext.c,v 1.5 2011/09/19 21:24:58 joerg Exp $"); #endif #include "namespace.h" @@ -41,7 +41,7 @@ #include "extern.h" void -_resumecontext() +_resumecontext(void) { ucontext_t uct; Index: src/lib/libc/arch/vax/gen/resumecontext.c diff -u src/lib/libc/arch/vax/gen/resumecontext.c:1.3 src/lib/libc/arch/vax/gen/resumecontext.c:1.4 --- src/lib/libc/arch/vax/gen/resumecontext.c:1.3 Mon Apr 28 20:22:57 2008 +++ src/lib/libc/arch/vax/gen/resumecontext.c Mon Sep 19 21:24:58 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: resumecontext.c,v 1.3 2008/04/28 20:22:57 martin Exp $ */ +/* $NetBSD: resumecontext.c,v 1.4 2011/09/19 21:24:58 joerg Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: resumecontext.c,v 1.3 2008/04/28 20:22:57 martin Exp $"); +__RCSID("$NetBSD: resumecontext.c,v 1.4 2011/09/19 21:24:58 joerg Exp $"); #endif #include "namespace.h" @@ -41,7 +41,7 @@ #include "extern.h" void -_resumecontext() +_resumecontext(void) { ucontext_t uct; Index: src/lib/libc/gen/Lint_resumecontext.c diff -u src/lib/libc/gen/Lint_resumecontext.c:1.2 src/lib/libc/gen/Lint_resumecontext.c:1.3 --- src/lib/libc/gen/Lint_resumecontext.c:1.2 Sat Jan 18 11:38:46 2003 +++ src/lib/libc/gen/Lint_resumecontext.c Mon Sep 19 21:24:58 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: Lint_resumecontext.c,v 1.2 2003/01/18 11:38:46 thorpej Exp $ */ +/* $NetBSD: Lint_resumecontext.c,v 1.3 2011/09/19 21:24:58 joerg Exp $ */ /* * This file placed in the public domain. @@ -9,6 +9,6 @@ /*ARGSUSED*/ void -_resumecontext() +_resumecontext(void) { } Index: src/lib/libc/include/extern.h diff -u src/lib/libc/include/extern.h:1.18 src/lib/libc/include/extern.h:1.19 --- src/lib/libc/include/extern.h:1.18 Sun Jul 17 20:54:34 2011 +++ src/lib/libc/include/extern.h Mon Sep 19 21:24:58 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.18 2011/07/17 20:54:34 joerg Exp $ */ +/* $NetBSD: extern.h,v 1.19 2011/09/19 21:24:58 joerg Exp $ */ /* * Copyright (c) 1997 Christos Zoulas. All rights reserved. @@ -31,7 +31,7 @@ int __getcwd(char *, size_t); int __getlogin(char *, size_t); int __setlogin(const char *); -void _resumecontext(void); +void _resumecontext(void) __dead; const char *__strerror(int , char *, size_t); const char *__strsignal(int , char *, size_t); char *__dtoa(double, int, int, int *, int *, char **);