From 4d0cdf06406706a2f32bd31f6af34bbfe6215e97 Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 29 Jan 1996 01:05:35 +0000 Subject: [PATCH] from netbsd; move sys_nerr/sys_errlist decls to errno.h --- include/stdio.h | 6 +----- sys/sys/errno.h | 7 ++++++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/include/stdio.h b/include/stdio.h index 1ece1e7ccf3..a224949b38f 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -1,4 +1,4 @@ -/* $NetBSD: stdio.h,v 1.16 1995/03/25 02:51:02 jtc Exp $ */ +/* $NetBSD: stdio.h,v 1.17 1996/01/20 01:36:30 jtc Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -232,10 +232,6 @@ size_t fwrite __P((const void *, size_t, size_t, FILE *)); int getc __P((FILE *)); int getchar __P((void)); char *gets __P((char *)); -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -extern int sys_nerr; /* perror(3) external variables */ -extern const char *const sys_errlist[]; -#endif void perror __P((const char *)); int printf __P((const char *, ...)); int putc __P((int, FILE *)); diff --git a/sys/sys/errno.h b/sys/sys/errno.h index 35114f8e901..c313b578c5a 100644 --- a/sys/sys/errno.h +++ b/sys/sys/errno.h @@ -1,4 +1,4 @@ -/* $NetBSD: errno.h,v 1.9 1995/03/26 20:24:04 jtc Exp $ */ +/* $NetBSD: errno.h,v 1.10 1996/01/20 01:33:53 jtc Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -42,6 +42,11 @@ #ifndef _KERNEL extern int errno; /* global error number */ + +#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) +extern int sys_nerr; +extern const char *const sys_errlist[]; +#endif #endif #define EPERM 1 /* Operation not permitted */ -- 2.20.1