tidy up some extern declarations

This commit is contained in:
christos 2024-01-03 18:41:53 +00:00
parent 7ba0f99e7e
commit 4be2f99d7b
10 changed files with 27 additions and 43 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: siginterrupt.c,v 1.13 2012/06/25 22:32:43 abs Exp $ */
/* $NetBSD: siginterrupt.c,v 1.14 2024/01/03 18:41:53 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@ -34,18 +34,18 @@
#if 0
static char sccsid[] = "@(#)siginterrupt.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: siginterrupt.c,v 1.13 2012/06/25 22:32:43 abs Exp $");
__RCSID("$NetBSD: siginterrupt.c,v 1.14 2024/01/03 18:41:53 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
#include "extern.h"
#include <signal.h>
#ifdef __weak_alias
__weak_alias(siginterrupt,_siginterrupt)
#endif
extern sigset_t __sigintr;
/*
* Set signal state to prevent restart of system calls
* after an instance of the indicated signal.

View File

@ -1,4 +1,4 @@
/* $NetBSD: signal.c,v 1.15 2024/01/02 19:27:26 christos Exp $ */
/* $NetBSD: signal.c,v 1.16 2024/01/03 18:41:53 christos Exp $ */
/*
* Copyright (c) 1985, 1989, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)signal.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: signal.c,v 1.15 2024/01/02 19:27:26 christos Exp $");
__RCSID("$NetBSD: signal.c,v 1.16 2024/01/03 18:41:53 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -42,13 +42,13 @@ __RCSID("$NetBSD: signal.c,v 1.15 2024/01/02 19:27:26 christos Exp $");
* Almost backwards compatible signal.
*/
#include "namespace.h"
#include "extern.h"
#include <signal.h>
#ifdef __weak_alias
__weak_alias(signal,_signal)
#endif
extern sigset_t __sigintr;
sigset_t __sigintr; /* shared with siginterrupt */
sig_t

View File

@ -1,4 +1,4 @@
/* $NetBSD: extern.h,v 1.27 2023/04/04 19:26:06 christos Exp $ */
/* $NetBSD: extern.h,v 1.28 2024/01/03 18:41:53 christos Exp $ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
@ -34,6 +34,7 @@ typedef struct _locale *locale_t;
__BEGIN_DECLS
extern char *__minbrk;
extern sigset_t __sigintr;
int __getcwd(char *, size_t);
int __getlogin(char *, size_t);
int __setlogin(const char *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: local.h,v 1.4 2012/03/20 16:30:26 matt Exp $ */
/* $NetBSD: local.h,v 1.5 2024/01/03 18:41:53 christos Exp $ */
/*
* Copyright (c) 1996 Christos Zoulas. All rights reserved.
@ -27,4 +27,10 @@
__BEGIN_DECLS
void __yp_unbind(struct dom_binding *);
int _yp_invalid_domain(const char *);
extern struct timeval _yplib_timeout;
extern int _yplib_nerrs;
extern int _yplib_bindtries;
extern char _yp_domain[];
__END_DECLS

View File

@ -1,4 +1,4 @@
/* $NetBSD: yp_all.c,v 1.13 2012/06/25 22:32:46 abs Exp $ */
/* $NetBSD: yp_all.c,v 1.14 2024/01/03 18:41:53 christos Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: yp_all.c,v 1.13 2012/06/25 22:32:46 abs Exp $");
__RCSID("$NetBSD: yp_all.c,v 1.14 2024/01/03 18:41:53 christos Exp $");
#endif
#include "namespace.h"
@ -39,8 +39,6 @@ __RCSID("$NetBSD: yp_all.c,v 1.13 2012/06/25 22:32:46 abs Exp $");
#include <rpcsvc/ypclnt.h>
#include "local.h"
extern struct timeval _yplib_timeout;
#ifdef __weak_alias
__weak_alias(yp_all,_yp_all)
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: yp_first.c,v 1.16 2012/06/25 22:32:46 abs Exp $ */
/* $NetBSD: yp_first.c,v 1.17 2024/01/03 18:41:53 christos Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: yp_first.c,v 1.16 2012/06/25 22:32:46 abs Exp $");
__RCSID("$NetBSD: yp_first.c,v 1.17 2024/01/03 18:41:53 christos Exp $");
#endif
#include "namespace.h"
@ -39,10 +39,6 @@ __RCSID("$NetBSD: yp_first.c,v 1.16 2012/06/25 22:32:46 abs Exp $");
#include <rpcsvc/ypclnt.h>
#include "local.h"
extern struct timeval _yplib_timeout;
extern int _yplib_nerrs;
extern int _yplib_bindtries;
#ifdef __weak_alias
__weak_alias(yp_first,_yp_first)
__weak_alias(yp_next,_yp_next)

View File

@ -1,4 +1,4 @@
/* $NetBSD: yp_maplist.c,v 1.13 2012/06/25 22:32:46 abs Exp $ */
/* $NetBSD: yp_maplist.c,v 1.14 2024/01/03 18:41:53 christos Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: yp_maplist.c,v 1.13 2012/06/25 22:32:46 abs Exp $");
__RCSID("$NetBSD: yp_maplist.c,v 1.14 2024/01/03 18:41:53 christos Exp $");
#endif
#include "namespace.h"
@ -38,10 +38,6 @@ __RCSID("$NetBSD: yp_maplist.c,v 1.13 2012/06/25 22:32:46 abs Exp $");
#include <rpcsvc/ypclnt.h>
#include "local.h"
extern struct timeval _yplib_timeout;
extern int _yplib_nerrs;
extern int _yplib_bindtries;
#ifdef __weak_alias
__weak_alias(yp_maplist,_yp_maplist)
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: yp_master.c,v 1.15 2012/06/25 22:32:46 abs Exp $ */
/* $NetBSD: yp_master.c,v 1.16 2024/01/03 18:41:53 christos Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: yp_master.c,v 1.15 2012/06/25 22:32:46 abs Exp $");
__RCSID("$NetBSD: yp_master.c,v 1.16 2024/01/03 18:41:53 christos Exp $");
#endif
#include "namespace.h"
@ -39,10 +39,6 @@ __RCSID("$NetBSD: yp_master.c,v 1.15 2012/06/25 22:32:46 abs Exp $");
#include <rpcsvc/ypclnt.h>
#include "local.h"
extern struct timeval _yplib_timeout;
extern int _yplib_nerrs;
extern int _yplib_bindtries;
#ifdef __weak_alias
__weak_alias(yp_master,_yp_master)
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: yp_match.c,v 1.19 2012/03/20 16:30:26 matt Exp $ */
/* $NetBSD: yp_match.c,v 1.20 2024/01/03 18:41:53 christos Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: yp_match.c,v 1.19 2012/03/20 16:30:26 matt Exp $");
__RCSID("$NetBSD: yp_match.c,v 1.20 2024/01/03 18:41:53 christos Exp $");
#endif
#include "namespace.h"
@ -45,11 +45,6 @@ __RCSID("$NetBSD: yp_match.c,v 1.19 2012/03/20 16:30:26 matt Exp $");
#define YPMATCHCACHE
extern struct timeval _yplib_timeout;
extern int _yplib_nerrs;
extern int _yplib_bindtries;
extern char _yp_domain[];
#ifdef __weak_alias
__weak_alias(yp_match,_yp_match)
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: yp_order.c,v 1.14 2012/06/25 22:32:46 abs Exp $ */
/* $NetBSD: yp_order.c,v 1.15 2024/01/03 18:41:53 christos Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: yp_order.c,v 1.14 2012/06/25 22:32:46 abs Exp $");
__RCSID("$NetBSD: yp_order.c,v 1.15 2024/01/03 18:41:53 christos Exp $");
#endif
#include "namespace.h"
@ -38,10 +38,6 @@ __RCSID("$NetBSD: yp_order.c,v 1.14 2012/06/25 22:32:46 abs Exp $");
#include <rpcsvc/ypclnt.h>
#include "local.h"
extern struct timeval _yplib_timeout;
extern int _yplib_nerrs;
extern int _yplib_bindtries;
#ifdef __weak_alias
__weak_alias(yp_order,_yp_order)
#endif