From a6b6f620db1248ee80fe38923092f6c706419195 Mon Sep 17 00:00:00 2001 From: mycroft Date: Tue, 28 Jul 1998 00:28:29 +0000 Subject: [PATCH] Sprinkle in some __attribute__((noreturn))s. --- include/stdlib.h | 11 ++++------- include/unistd.h | 8 ++++---- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/include/stdlib.h b/include/stdlib.h index 312f5ee74dcf..2da3e27b2a8d 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -1,4 +1,4 @@ -/* $NetBSD: stdlib.h,v 1.39 1998/07/27 16:12:01 mycroft Exp $ */ +/* $NetBSD: stdlib.h,v 1.40 1998/07/28 00:28:29 mycroft Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -94,10 +94,8 @@ extern int __mb_cur_max; #endif __BEGIN_DECLS -__dead void - abort __P((void)); -__pure int - abs __P((int)); +__dead void abort __P((void)) __attribute__((noreturn)); +__pure int abs __P((int)); int atexit __P((void (*)(void))); double atof __P((const char *)); int atoi __P((const char *)); @@ -106,8 +104,7 @@ void *bsearch __P((const void *, const void *, size_t, size_t, int (*)(const void *, const void *))); void *calloc __P((size_t, size_t)); div_t div __P((int, int)); -__dead void - exit __P((int)); +__dead void exit __P((int)) __attribute__((noreturn)); void free __P((void *)); __aconst char *getenv __P((const char *)); __pure long diff --git a/include/unistd.h b/include/unistd.h index 41ead5ed468a..b97cc58d6419 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.64 1998/07/27 11:14:37 mycroft Exp $ */ +/* $NetBSD: unistd.h,v 1.65 1998/07/28 00:28:29 mycroft Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -92,9 +92,9 @@ #endif __BEGIN_DECLS -__dead void _exit __P((int)) __attribute__((noreturn)); +__dead void _exit __P((int)) __attribute__((noreturn)); int access __P((const char *, int)); -unsigned int alarm __P((unsigned int)); +unsigned int alarm __P((unsigned int)); int chdir __P((const char *)); #if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) int chown __P((const char *, uid_t, gid_t)) __RENAME(__posix_chown); @@ -205,7 +205,7 @@ int rename __P((const char *, const char *)) __RENAME(__posix_rename); (_XOPEN_SOURCE - 0) >= 4 __aconst char *crypt __P((const char *, const char *)); int encrypt __P((char *, int)); -__aconst char *getpass __P((const char *)); +char *getpass __P((const char *)); pid_t getsid __P((pid_t)); #endif