Module Name:    src
Committed By:   christos
Date:           Wed Jan  3 18:41:53 UTC 2024

Modified Files:
        src/lib/libc/gen: siginterrupt.c signal.c
        src/lib/libc/include: extern.h
        src/lib/libc/yp: local.h yp_all.c yp_first.c yp_maplist.c yp_master.c
            yp_match.c yp_order.c

Log Message:
tidy up some extern declarations


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/gen/siginterrupt.c
cvs rdiff -u -r1.15 -r1.16 src/lib/libc/gen/signal.c
cvs rdiff -u -r1.27 -r1.28 src/lib/libc/include/extern.h
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/yp/local.h
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/yp/yp_all.c \
    src/lib/libc/yp/yp_maplist.c
cvs rdiff -u -r1.16 -r1.17 src/lib/libc/yp/yp_first.c
cvs rdiff -u -r1.15 -r1.16 src/lib/libc/yp/yp_master.c
cvs rdiff -u -r1.19 -r1.20 src/lib/libc/yp/yp_match.c
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/yp/yp_order.c

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/gen/siginterrupt.c
diff -u src/lib/libc/gen/siginterrupt.c:1.13 src/lib/libc/gen/siginterrupt.c:1.14
--- src/lib/libc/gen/siginterrupt.c:1.13	Mon Jun 25 18:32:43 2012
+++ src/lib/libc/gen/siginterrupt.c	Wed Jan  3 13:41:53 2024
@@ -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.

Index: src/lib/libc/gen/signal.c
diff -u src/lib/libc/gen/signal.c:1.15 src/lib/libc/gen/signal.c:1.16
--- src/lib/libc/gen/signal.c:1.15	Tue Jan  2 14:27:26 2024
+++ src/lib/libc/gen/signal.c	Wed Jan  3 13:41:53 2024
@@ -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/0
  * 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

Index: src/lib/libc/include/extern.h
diff -u src/lib/libc/include/extern.h:1.27 src/lib/libc/include/extern.h:1.28
--- src/lib/libc/include/extern.h:1.27	Tue Apr  4 15:26:06 2023
+++ src/lib/libc/include/extern.h	Wed Jan  3 13:41:53 2024
@@ -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 *);

Index: src/lib/libc/yp/local.h
diff -u src/lib/libc/yp/local.h:1.4 src/lib/libc/yp/local.h:1.5
--- src/lib/libc/yp/local.h:1.4	Tue Mar 20 12:30:26 2012
+++ src/lib/libc/yp/local.h	Wed Jan  3 13:41:53 2024
@@ -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

Index: src/lib/libc/yp/yp_all.c
diff -u src/lib/libc/yp/yp_all.c:1.13 src/lib/libc/yp/yp_all.c:1.14
--- src/lib/libc/yp/yp_all.c:1.13	Mon Jun 25 18:32:46 2012
+++ src/lib/libc/yp/yp_all.c	Wed Jan  3 13:41:53 2024
@@ -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 <dera...@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/0
 #include <rpcsvc/ypclnt.h>
 #include "local.h"
 
-extern struct timeval _yplib_timeout;
-
 #ifdef __weak_alias
 __weak_alias(yp_all,_yp_all)
 #endif
Index: src/lib/libc/yp/yp_maplist.c
diff -u src/lib/libc/yp/yp_maplist.c:1.13 src/lib/libc/yp/yp_maplist.c:1.14
--- src/lib/libc/yp/yp_maplist.c:1.13	Mon Jun 25 18:32:46 2012
+++ src/lib/libc/yp/yp_maplist.c	Wed Jan  3 13:41:53 2024
@@ -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 <dera...@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 20
 #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

Index: src/lib/libc/yp/yp_first.c
diff -u src/lib/libc/yp/yp_first.c:1.16 src/lib/libc/yp/yp_first.c:1.17
--- src/lib/libc/yp/yp_first.c:1.16	Mon Jun 25 18:32:46 2012
+++ src/lib/libc/yp/yp_first.c	Wed Jan  3 13:41:53 2024
@@ -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 <dera...@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
 #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)

Index: src/lib/libc/yp/yp_master.c
diff -u src/lib/libc/yp/yp_master.c:1.15 src/lib/libc/yp/yp_master.c:1.16
--- src/lib/libc/yp/yp_master.c:1.15	Mon Jun 25 18:32:46 2012
+++ src/lib/libc/yp/yp_master.c	Wed Jan  3 13:41:53 2024
@@ -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 <dera...@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 201
 #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

Index: src/lib/libc/yp/yp_match.c
diff -u src/lib/libc/yp/yp_match.c:1.19 src/lib/libc/yp/yp_match.c:1.20
--- src/lib/libc/yp/yp_match.c:1.19	Tue Mar 20 12:30:26 2012
+++ src/lib/libc/yp/yp_match.c	Wed Jan  3 13:41:53 2024
@@ -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 <dera...@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
 
 #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

Index: src/lib/libc/yp/yp_order.c
diff -u src/lib/libc/yp/yp_order.c:1.14 src/lib/libc/yp/yp_order.c:1.15
--- src/lib/libc/yp/yp_order.c:1.14	Mon Jun 25 18:32:46 2012
+++ src/lib/libc/yp/yp_order.c	Wed Jan  3 13:41:53 2024
@@ -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 <dera...@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
 #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

Reply via email to