Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib Use __dead
details: https://anonhg.NetBSD.org/src/rev/96c330a6b149
branches: trunk
changeset: 769626:96c330a6b149
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Sep 16 16:05:58 2011 +0000
description:
Use __dead
diffstat:
lib/libc/isc/assertions.c | 6 +++---
lib/libc/misc/stack_protector.c | 6 +++---
lib/libc/thread-stub/thread-stub.c | 6 +++---
lib/libc/time/zdump.c | 6 +++---
lib/libpthread/pthread.c | 6 +++---
lib/libpthread/pthread_int.h | 6 +++---
6 files changed, 18 insertions(+), 18 deletions(-)
diffs (159 lines):
diff -r 6e32feb26132 -r 96c330a6b149 lib/libc/isc/assertions.c
--- a/lib/libc/isc/assertions.c Fri Sep 16 15:42:56 2011 +0000
+++ b/lib/libc/isc/assertions.c Fri Sep 16 16:05:58 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: assertions.c,v 1.6 2009/04/12 17:07:17 christos Exp $ */
+/* $NetBSD: assertions.c,v 1.7 2011/09/16 16:05:58 joerg Exp $ */
/*
* Copyright (C) 2004, 2005, 2008 Internet Systems Consortium, Inc. ("ISC")
@@ -22,7 +22,7 @@
#ifdef notdef
static const char rcsid[] = "Id: assertions.c,v 1.5 2008/11/14 02:36:51 marka Exp";
#else
-__RCSID("$NetBSD: assertions.c,v 1.6 2009/04/12 17:07:17 christos Exp $");
+__RCSID("$NetBSD: assertions.c,v 1.7 2011/09/16 16:05:58 joerg Exp $");
#endif
#endif
@@ -41,7 +41,7 @@
* Forward.
*/
-static void default_assertion_failed(const char *, int, assertion_type,
+__dead static void default_assertion_failed(const char *, int, assertion_type,
const char *, int);
/*
diff -r 6e32feb26132 -r 96c330a6b149 lib/libc/misc/stack_protector.c
--- a/lib/libc/misc/stack_protector.c Fri Sep 16 15:42:56 2011 +0000
+++ b/lib/libc/misc/stack_protector.c Fri Sep 16 16:05:58 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stack_protector.c,v 1.5 2010/12/07 20:10:53 joerg Exp $ */
+/* $NetBSD: stack_protector.c,v 1.6 2011/09/16 16:05:59 joerg Exp $ */
/* $OpenBSD: stack_protector.c,v 1.10 2006/03/31 05:34:44 deraadt Exp $ */
/*
@@ -28,7 +28,7 @@
*
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: stack_protector.c,v 1.5 2010/12/07 20:10:53 joerg Exp $");
+__RCSID("$NetBSD: stack_protector.c,v 1.6 2011/09/16 16:05:59 joerg Exp $");
#ifdef _LIBC
#include "namespace.h"
@@ -50,7 +50,7 @@
long __stack_chk_guard[8] = {0, 0, 0, 0, 0, 0, 0, 0};
static void __fail(const char *) __attribute__((__noreturn__));
-void __stack_chk_fail_local(void);
+__dead void __stack_chk_fail_local(void);
void __guard_setup(void);
void
diff -r 6e32feb26132 -r 96c330a6b149 lib/libc/thread-stub/thread-stub.c
--- a/lib/libc/thread-stub/thread-stub.c Fri Sep 16 15:42:56 2011 +0000
+++ b/lib/libc/thread-stub/thread-stub.c Fri Sep 16 16:05:58 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thread-stub.c,v 1.21 2009/01/30 23:21:03 ad Exp $ */
+/* $NetBSD: thread-stub.c,v 1.22 2011/09/16 16:05:59 joerg Exp $ */
/*-
* Copyright (c) 2003, 2009 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: thread-stub.c,v 1.21 2009/01/30 23:21:03 ad Exp $");
+__RCSID("$NetBSD: thread-stub.c,v 1.22 2011/09/16 16:05:59 joerg Exp $");
#endif /* LIBC_SCCS and not lint */
/*
@@ -343,7 +343,7 @@
int __libc_thr_yield_stub(void);
int __libc_thr_create_stub(thr_t *, const thrattr_t *,
void *(*)(void *), void *);
-void __libc_thr_exit_stub(void *);
+__dead void __libc_thr_exit_stub(void *);
int *__libc_thr_errno_stub(void);
int __libc_thr_setcancelstate_stub(int, int *);
int __libc_thr_equal_stub(pthread_t, pthread_t);
diff -r 6e32feb26132 -r 96c330a6b149 lib/libc/time/zdump.c
--- a/lib/libc/time/zdump.c Fri Sep 16 15:42:56 2011 +0000
+++ b/lib/libc/time/zdump.c Fri Sep 16 16:05:58 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zdump.c,v 1.23 2011/09/04 13:25:22 christos Exp $ */
+/* $NetBSD: zdump.c,v 1.24 2011/09/16 16:05:59 joerg Exp $ */
/*
** This file is in the public domain, so clarified as of
** 2009-05-17 by Arthur David Olson.
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#ifndef lint
#ifndef NOID
-__RCSID("$NetBSD: zdump.c,v 1.23 2011/09/04 13:25:22 christos Exp $");
+__RCSID("$NetBSD: zdump.c,v 1.24 2011/09/16 16:05:59 joerg Exp $");
#endif /* !defined NOID */
#endif /* !defined lint */
@@ -244,7 +244,7 @@
warned = TRUE;
}
-static void
+__dead static void
usage(FILE *stream, int status)
{
(void) fprintf(stream,
diff -r 6e32feb26132 -r 96c330a6b149 lib/libpthread/pthread.c
--- a/lib/libpthread/pthread.c Fri Sep 16 15:42:56 2011 +0000
+++ b/lib/libpthread/pthread.c Fri Sep 16 16:05:58 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread.c,v 1.123 2011/03/30 00:03:26 joerg Exp $ */
+/* $NetBSD: pthread.c,v 1.124 2011/09/16 16:05:59 joerg Exp $ */
/*-
* Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread.c,v 1.123 2011/03/30 00:03:26 joerg Exp $");
+__RCSID("$NetBSD: pthread.c,v 1.124 2011/09/16 16:05:59 joerg Exp $");
#define __EXPOSE_STACK 1
@@ -457,7 +457,7 @@
}
-static void
+__dead static void
pthread__create_tramp(void *cookie)
{
pthread_t self;
diff -r 6e32feb26132 -r 96c330a6b149 lib/libpthread/pthread_int.h
--- a/lib/libpthread/pthread_int.h Fri Sep 16 15:42:56 2011 +0000
+++ b/lib/libpthread/pthread_int.h Fri Sep 16 16:05:58 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_int.h,v 1.79 2011/08/05 03:55:31 lukem Exp $ */
+/* $NetBSD: pthread_int.h,v 1.80 2011/09/16 16:05:59 joerg Exp $ */
/*-
* Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -300,12 +300,12 @@
} while (/*CONSTCOND*/0)
void pthread__destroy_tsd(pthread_t) PTHREAD_HIDE;
-void pthread__assertfunc(const char *, int, const char *, const char *)
+__dead void pthread__assertfunc(const char *, int, const char *, const char *)
PTHREAD_HIDE;
void pthread__errorfunc(const char *, int, const char *, const char *)
PTHREAD_HIDE;
char *pthread__getenv(const char *) PTHREAD_HIDE;
-void pthread__cancelled(void) PTHREAD_HIDE;
+__dead void pthread__cancelled(void) PTHREAD_HIDE;
void pthread__mutex_deferwake(pthread_t, pthread_mutex_t *) PTHREAD_HIDE;
int pthread__checkpri(int) PTHREAD_HIDE;
Home |
Main Index |
Thread Index |
Old Index