Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include de-__P -- the hack is long since useless. Discussed ...
details: https://anonhg.NetBSD.org/src/rev/cf9d36de4561
branches: trunk
changeset: 573616:cf9d36de4561
user: perry <perry%NetBSD.org@localhost>
date: Thu Feb 03 04:39:32 2005 +0000
description:
de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.
diffstat:
include/arpa/inet.h | 38 +++---
include/arpa/nameser.h | 100 ++++++++--------
include/assert.h | 10 +-
include/bm.h | 8 +-
include/ctype.h | 38 +++---
include/db.h | 32 ++--
include/dirent.h | 31 ++--
include/disktab.h | 6 +-
include/dlfcn.h | 14 +-
include/err.h | 18 +-
include/errno.h | 4 +-
include/fmtmsg.h | 6 +-
include/fnmatch.h | 4 +-
include/fstab.h | 12 +-
include/fts.h | 28 ++--
include/getopt.h | 6 +-
include/glob.h | 30 ++--
include/grp.h | 32 ++--
include/hesiod.h | 22 +-
include/iconv.h | 20 +-
include/ieeefp.h | 14 +-
include/ifaddrs.h | 6 +-
include/inttypes.h | 18 +-
include/kvm.h | 41 +++---
include/langinfo.h | 4 +-
include/libgen.h | 6 +-
include/link_aout.h | 16 +-
include/link_elf.h | 4 +-
include/locale.h | 12 +-
include/lwp.h | 24 ++--
include/math.h | 270 +++++++++++++++++++++++-----------------------
include/md2.h | 14 +-
include/mntopts.h | 11 +-
include/mpool.h | 24 ++--
include/netconfig.h | 20 +-
include/netdb.h | 98 ++++++++--------
include/netgroup.h | 18 +-
include/nl_types.h | 8 +-
include/nlist.h | 6 +-
include/nsswitch.h | 16 +-
include/pwd.h | 36 +++---
include/re_comp.h | 6 +-
include/regex.h | 13 +-
include/regexp.h | 19 +-
include/res_update.h | 14 +-
include/resolv.h | 209 ++++++++++++++++------------------
include/rmt.h | 30 ++--
include/rpc/auth.h | 34 ++--
include/rpc/auth_unix.h | 4 +-
include/rpc/clnt.h | 76 ++++++------
include/rpc/clnt_soc.h | 30 ++--
include/rpc/nettype.h | 10 +-
include/rpc/pmap_clnt.h | 30 ++--
include/rpc/pmap_prot.h | 8 +-
include/rpc/pmap_rmt.h | 6 +-
include/rpc/rpc.h | 32 ++--
include/rpc/rpc_com.h | 4 +-
include/rpc/rpc_msg.h | 14 +-
include/rpc/rpcb_clnt.h | 38 +++---
include/rpc/rpcent.h | 20 +-
include/rpc/svc.h | 94 +++++++--------
include/rpc/svc_auth.h | 8 +-
include/rpc/svc_soc.h | 20 +-
include/rpc/xdr.h | 110 +++++++++---------
include/rpcsvc/yp_prot.h | 46 +++---
include/rpcsvc/ypclnt.h | 39 +++---
include/sa.h | 16 +-
include/sched.h | 6 +-
include/search.h | 38 +++---
include/setjmp.h | 24 ++--
include/sgtty.h | 6 +-
include/signal.h | 111 +++++++++---------
include/stdio.h | 178 +++++++++++++++---------------
include/stdlib.h | 217 ++++++++++++++++++------------------
include/string.h | 60 +++++-----
include/stringlist.h | 10 +-
include/strings.h | 18 +-
include/time.h | 76 ++++++------
include/ttyent.h | 10 +-
include/ulimit.h | 4 +-
include/unistd.h | 275 +++++++++++++++++++++++-----------------------
include/utime.h | 4 +-
include/utmp.h | 10 +-
include/utmpx.h | 32 ++--
include/vis.h | 24 ++--
include/wchar.h | 145 ++++++++++++------------
include/wctype.h | 38 +++---
87 files changed, 1655 insertions(+), 1686 deletions(-)
diffs (truncated from 5622 to 300 lines):
diff -r e5269152f790 -r cf9d36de4561 include/arpa/inet.h
--- a/include/arpa/inet.h Thu Feb 03 03:49:01 2005 +0000
+++ b/include/arpa/inet.h Thu Feb 03 04:39:32 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inet.h,v 1.20 2004/11/07 01:48:01 christos Exp $ */
+/* $NetBSD: inet.h,v 1.21 2005/02/03 04:39:32 perry Exp $ */
/*
* ++Copyright++ 1983, 1993
@@ -77,28 +77,28 @@
#endif /* _POSIX_C_SOURCE >= 200112 || XOPEN_SOURCE >= 520 || _NETBSD_SOURCE */
__BEGIN_DECLS
-in_addr_t inet_addr __P((const char *));
-in_addr_t inet_lnaof __P((struct in_addr));
-struct in_addr inet_makeaddr __P((in_addr_t, in_addr_t));
-in_addr_t inet_netof __P((struct in_addr));
-in_addr_t inet_network __P((const char *));
-char *inet_ntoa __P((struct in_addr));
+in_addr_t inet_addr(const char *);
+in_addr_t inet_lnaof(struct in_addr);
+struct in_addr inet_makeaddr(in_addr_t, in_addr_t);
+in_addr_t inet_netof(struct in_addr);
+in_addr_t inet_network(const char *);
+char *inet_ntoa(struct in_addr);
#if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 520 || \
defined(_NETBSD_SOURCE)
-const char *inet_ntop __P((int, const void * __restrict,
- char * __restrict, socklen_t));
-int inet_pton __P((int, const char * __restrict,
- void * __restrict));
+const char *inet_ntop(int, const void * __restrict,
+ char * __restrict, socklen_t);
+int inet_pton(int, const char * __restrict,
+ void * __restrict);
#endif
#if defined(_NETBSD_SOURCE)
-int inet_aton __P((const char *, struct in_addr *));
-char * inet_neta __P((u_long, char *, size_t));
-char *inet_net_ntop __P((int, const void *, int, char *, size_t));
-int inet_net_pton __P((int, const char *, void *, size_t));
-char *inet_cidr_ntop __P((int, const void *, int, char *, size_t));
-int inet_cidr_pton __P((int, const char *, void *, int *));
-u_int inet_nsap_addr __P((const char *, u_char *, int));
-char *inet_nsap_ntoa __P((int, const u_char *, char *));
+int inet_aton(const char *, struct in_addr *);
+char * inet_neta(u_long, char *, size_t);
+char *inet_net_ntop(int, const void *, int, char *, size_t);
+int inet_net_pton(int, const char *, void *, size_t);
+char *inet_cidr_ntop(int, const void *, int, char *, size_t);
+int inet_cidr_pton(int, const char *, void *, int *);
+u_int inet_nsap_addr(const char *, u_char *, int);
+char *inet_nsap_ntoa(int, const u_char *, char *);
#endif
__END_DECLS
diff -r e5269152f790 -r cf9d36de4561 include/arpa/nameser.h
--- a/include/arpa/nameser.h Thu Feb 03 03:49:01 2005 +0000
+++ b/include/arpa/nameser.h Thu Feb 03 04:39:32 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nameser.h,v 1.16 2004/05/21 02:25:10 christos Exp $ */
+/* $NetBSD: nameser.h,v 1.17 2005/02/03 04:39:32 perry Exp $ */
/*
* Copyright (c) 1983, 1989, 1993
@@ -511,60 +511,60 @@
#define ns_samename __ns_samename
__BEGIN_DECLS
-int ns_msg_getflag __P((ns_msg, int));
-u_int16_t ns_get16 __P((const u_char *));
-u_int32_t ns_get32 __P((const u_char *));
-void ns_put16 __P((u_int16_t, u_char *));
-void ns_put32 __P((u_int32_t, u_char *));
-int ns_initparse __P((const u_char *, int, ns_msg *));
-int ns_skiprr __P((const u_char *, const u_char *, ns_sect, int));
-int ns_parserr __P((ns_msg *, ns_sect, int, ns_rr *));
-int ns_sprintrr __P((const ns_msg *, const ns_rr *,
- const char *, const char *, char *, size_t));
-int ns_sprintrrf __P((const u_char *, size_t, const char *,
+int ns_msg_getflag(ns_msg, int);
+u_int16_t ns_get16(const u_char *);
+u_int32_t ns_get32(const u_char *);
+void ns_put16(u_int16_t, u_char *);
+void ns_put32(u_int32_t, u_char *);
+int ns_initparse(const u_char *, int, ns_msg *);
+int ns_skiprr(const u_char *, const u_char *, ns_sect, int);
+int ns_parserr(ns_msg *, ns_sect, int, ns_rr *);
+int ns_sprintrr(const ns_msg *, const ns_rr *,
+ const char *, const char *, char *, size_t);
+int ns_sprintrrf(const u_char *, size_t, const char *,
ns_class, ns_type, u_long, const u_char *,
size_t, const char *, const char *,
- char *, size_t));
-int ns_format_ttl __P((u_long, char *, size_t));
-int ns_parse_ttl __P((const char *, u_long *));
-u_int32_t ns_datetosecs __P((const char *cp, int *errp));
-int ns_name_ntol __P((const u_char *, u_char *, size_t));
-int ns_name_ntop __P((const u_char *, char *, size_t));
-int ns_name_pton __P((const char *, u_char *, size_t));
-int ns_name_unpack __P((const u_char *, const u_char *,
- const u_char *, u_char *, size_t));
-int ns_name_pack __P((const u_char *, u_char *, int,
- const u_char **, const u_char **));
-int ns_name_uncompress __P((const u_char *, const u_char *,
- const u_char *, char *, size_t));
-int ns_name_compress __P((const char *, u_char *, size_t,
- const u_char **, const u_char **));
-int ns_name_skip __P((const u_char **, const u_char *));
-void ns_name_rollback __P((const u_char *, const u_char **,
- const u_char **));
-int ns_sign __P((u_char *, int *, int, int, void *,
- const u_char *, int, u_char *, int *, time_t));
-int ns_sign2 __P((u_char *, int *, int, int, void *,
+ char *, size_t);
+int ns_format_ttl(u_long, char *, size_t);
+int ns_parse_ttl(const char *, u_long *);
+u_int32_t ns_datetosecs(const char *cp, int *errp);
+int ns_name_ntol(const u_char *, u_char *, size_t);
+int ns_name_ntop(const u_char *, char *, size_t);
+int ns_name_pton(const char *, u_char *, size_t);
+int ns_name_unpack(const u_char *, const u_char *,
+ const u_char *, u_char *, size_t);
+int ns_name_pack(const u_char *, u_char *, int,
+ const u_char **, const u_char **);
+int ns_name_uncompress(const u_char *, const u_char *,
+ const u_char *, char *, size_t);
+int ns_name_compress(const char *, u_char *, size_t,
+ const u_char **, const u_char **);
+int ns_name_skip(const u_char **, const u_char *);
+void ns_name_rollback(const u_char *, const u_char **,
+ const u_char **);
+int ns_sign(u_char *, int *, int, int, void *,
+ const u_char *, int, u_char *, int *, time_t);
+int ns_sign2(u_char *, int *, int, int, void *,
const u_char *, int, u_char *, int *, time_t,
- u_char **, u_char **));
-int ns_sign_tcp __P((u_char *, int *, int, int,
- ns_tcp_tsig_state *, int));
-int ns_sign_tcp2 __P((u_char *, int *, int, int,
+ u_char **, u_char **);
+int ns_sign_tcp(u_char *, int *, int, int,
+ ns_tcp_tsig_state *, int);
+int ns_sign_tcp2(u_char *, int *, int, int,
ns_tcp_tsig_state *, int,
- u_char **, u_char **));
-int ns_sign_tcp_init __P((void *, const u_char *, int,
- ns_tcp_tsig_state *));
-u_char *ns_find_tsig __P((u_char *, u_char *));
-int ns_verify __P((u_char *, int *, void *,
+ u_char **, u_char **);
+int ns_sign_tcp_init(void *, const u_char *, int,
+ ns_tcp_tsig_state *);
+u_char *ns_find_tsig(u_char *, u_char *);
+int ns_verify(u_char *, int *, void *,
const u_char *, int, u_char *, int *,
- time_t *, int));
-int ns_verify_tcp __P((u_char *, int *, ns_tcp_tsig_state *, int));
-int ns_verify_tcp_init __P((void *, const u_char *, int,
- ns_tcp_tsig_state *));
-int ns_samedomain __P((const char *, const char *));
-int ns_subdomain __P((const char *, const char *));
-int ns_makecanon __P((const char *, char *, size_t));
-int ns_samename __P((const char *, const char *));
+ time_t *, int);
+int ns_verify_tcp(u_char *, int *, ns_tcp_tsig_state *, int);
+int ns_verify_tcp_init(void *, const u_char *, int,
+ ns_tcp_tsig_state *);
+int ns_samedomain(const char *, const char *);
+int ns_subdomain(const char *, const char *);
+int ns_makecanon(const char *, char *, size_t);
+int ns_samename(const char *, const char *);
__END_DECLS
#ifdef BIND_4_COMPAT
diff -r e5269152f790 -r cf9d36de4561 include/assert.h
--- a/include/assert.h Thu Feb 03 03:49:01 2005 +0000
+++ b/include/assert.h Thu Feb 03 04:39:32 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: assert.h,v 1.17 2004/07/01 22:31:28 kleink Exp $ */
+/* $NetBSD: assert.h,v 1.18 2005/02/03 04:39:32 perry Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -95,9 +95,9 @@
#ifndef __ASSERT_DECLARED
#define __ASSERT_DECLARED
__BEGIN_DECLS
-void __assert __P((const char *, int, const char *));
-void __assert13 __P((const char *, int, const char *, const char *));
-void __diagassert __P((const char *, int, const char *));
-void __diagassert13 __P((const char *, int, const char *, const char *));
+void __assert(const char *, int, const char *);
+void __assert13(const char *, int, const char *, const char *);
+void __diagassert(const char *, int, const char *);
+void __diagassert13(const char *, int, const char *, const char *);
__END_DECLS
#endif /* __ASSERT_DECLARED */
diff -r e5269152f790 -r cf9d36de4561 include/bm.h
--- a/include/bm.h Thu Feb 03 03:49:01 2005 +0000
+++ b/include/bm.h Thu Feb 03 04:39:32 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bm.h,v 1.4 2003/08/07 09:44:09 agc Exp $ */
+/* $NetBSD: bm.h,v 1.5 2005/02/03 04:39:32 perry Exp $ */
/*-
* Copyright (c) 1994
@@ -49,9 +49,9 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
-bm_pat *bm_comp __P((u_char const *, size_t, u_char const *));
-u_char *bm_exec __P((bm_pat *, u_char *, size_t));
-void bm_free __P((bm_pat *));
+bm_pat *bm_comp(u_char const *, size_t, u_char const *);
+u_char *bm_exec(bm_pat *, u_char *, size_t);
+void bm_free(bm_pat *);
__END_DECLS
#endif /* !_BM_H_ */
diff -r e5269152f790 -r cf9d36de4561 include/ctype.h
--- a/include/ctype.h Thu Feb 03 03:49:01 2005 +0000
+++ b/include/ctype.h Thu Feb 03 04:39:32 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ctype.h,v 1.26 2004/11/05 22:55:19 dsl Exp $ */
+/* $NetBSD: ctype.h,v 1.27 2005/02/03 04:39:32 perry Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -57,30 +57,30 @@
__BEGIN_DECLS
-int isalnum __P ((int));
-int isalpha __P ((int));
-int iscntrl __P ((int));
-int isdigit __P ((int));
-int isgraph __P ((int));
-int islower __P ((int));
-int isprint __P ((int));
-int ispunct __P ((int));
-int isspace __P ((int));
-int isupper __P ((int));
-int isxdigit __P ((int));
-int tolower __P ((int));
-int toupper __P ((int));
+int isalnum(int);
+int isalpha(int);
+int iscntrl(int);
+int isdigit(int);
+int isgraph(int);
+int islower(int);
+int isprint(int);
+int ispunct(int);
+int isspace(int);
+int isupper(int);
+int isxdigit(int);
+int tolower(int);
+int toupper(int);
#if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)
-int isascii __P ((int));
-int toascii __P ((int));
-int _tolower __P ((int));
-int _toupper __P ((int));
+int isascii(int);
+int toascii(int);
+int _tolower(int);
+int _toupper(int);
#endif
#if defined(_ISOC99_SOURCE) || (_POSIX_C_SOURCE - 0) > 200112L || \
(_XOPEN_SOURCE - 0) > 600 || defined(_NETBSD_SOURCE)
-int isblank __P ((int));
+int isblank(int);
#endif
__END_DECLS
diff -r e5269152f790 -r cf9d36de4561 include/db.h
--- a/include/db.h Thu Feb 03 03:49:01 2005 +0000
+++ b/include/db.h Thu Feb 03 04:39:32 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db.h,v 1.20 2003/08/07 09:44:09 agc Exp $ */
+/* $NetBSD: db.h,v 1.21 2005/02/03 04:39:32 perry Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -97,14 +97,14 @@
/* Access method description structure. */
typedef struct __db {
DBTYPE type; /* Underlying db type. */
- int (*close) __P((struct __db *));
- int (*del) __P((const struct __db *, const DBT *, u_int));
- int (*get) __P((const struct __db *, const DBT *, DBT *, u_int));
- int (*put) __P((const struct __db *, DBT *, const DBT *, u_int));
- int (*seq) __P((const struct __db *, DBT *, DBT *, u_int));
- int (*sync) __P((const struct __db *, u_int));
+ int (*close) (struct __db *);
+ int (*del) (const struct __db *, const DBT *, u_int);
+ int (*get) (const struct __db *, const DBT *, DBT *, u_int);
Home |
Main Index |
Thread Index |
Old Index