Remove __P() usage.

This commit is contained in:
obrien 2002-03-21 23:54:04 +00:00
parent d0f7d01438
commit fd9d7ac0ed
30 changed files with 406 additions and 405 deletions

View File

@ -81,39 +81,39 @@ typedef struct harp_timer Harp_timer;
*/
/* atm_addr.c */
extern int get_hex_atm_addr __P((char *, u_char *, int));
extern char *format_atm_addr __P((Atm_addr *));
extern int get_hex_atm_addr(char *, u_char *, int);
extern char *format_atm_addr(Atm_addr *);
/* cache_key.c */
extern void scsp_cache_key __P((Atm_addr *,
struct in_addr *, int, char *));
/* ioctl_subr.c */
extern int do_info_ioctl __P((struct atminfreq *, int));
extern int do_info_ioctl(struct atminfreq *, int);
extern int get_vcc_info __P((char *,
struct air_vcc_rsp **));
extern int get_subnet_mask __P((char *,
struct sockaddr_in *));
extern int get_mtu __P((char *));
extern int verify_nif_name __P((char *));
extern int get_cfg_info __P((char *, struct air_cfg_rsp **));
extern int get_intf_info __P((char *, struct air_int_rsp **));
extern int get_netif_info __P((char *, struct air_netif_rsp **));
extern int get_mtu(char *);
extern int verify_nif_name(char *);
extern int get_cfg_info(char *, struct air_cfg_rsp **);
extern int get_intf_info(char *, struct air_int_rsp **);
extern int get_netif_info(char *, struct air_netif_rsp **);
/* ip_addr.c */
extern struct sockaddr_in *get_ip_addr __P((char *));
extern char *format_ip_addr __P((struct in_addr *));
extern struct sockaddr_in *get_ip_addr(char *);
extern char *format_ip_addr(struct in_addr *);
/* ip_checksum.c */
extern short ip_checksum __P((char *, int));
extern short ip_checksum(char *, int);
/* timer.c */
extern Harp_timer *harp_timer_head;
extern int harp_timer_exec;
extern void timer_proc __P(());
extern int init_timer __P(());
extern int block_timer __P(());
extern void enable_timer __P((int));
extern void timer_proc();
extern int init_timer();
extern int block_timer();
extern void enable_timer(int);
#endif /* _HARP_LIBHARP_H */

View File

@ -154,7 +154,7 @@ protected int c_hpos(EditLine *);
protected int ch_init(EditLine *);
protected void ch_reset(EditLine *);
protected int ch_enlargebufs __P((EditLine *, size_t));
protected int ch_enlargebufs(EditLine *, size_t);
protected void ch_end(EditLine *);
#endif /* _h_el_chared */

View File

@ -61,7 +61,7 @@ static char *ipsec_dump_ipsecrequest __P((char *, size_t,
struct sadb_x_ipsecrequest *, size_t));
static int set_addresses __P((char *, size_t, struct sockaddr *,
struct sockaddr *));
static char *set_address __P((char *, size_t, struct sockaddr *));
static char *set_address(char *, size_t, struct sockaddr *);
/*
* policy is sadb_x_policy buffer.

View File

@ -31,7 +31,7 @@
*/
extern int __ipsec_errcode;
extern void __ipsec_set_strerror __P((const char *));
extern void __ipsec_set_strerror(const char *);
#define EIPSEC_NO_ERROR 0 /*success*/
#define EIPSEC_NOT_SUPPORTED 1 /*not supported*/

View File

@ -31,16 +31,16 @@
*/
struct sadb_msg;
extern void pfkey_sadump __P((struct sadb_msg *));
extern void pfkey_spdump __P((struct sadb_msg *));
extern void pfkey_sadump(struct sadb_msg *);
extern void pfkey_spdump(struct sadb_msg *);
struct sockaddr;
struct sadb_alg;
int ipsec_check_keylen __P((u_int, u_int, u_int));
int ipsec_check_keylen2 __P((u_int, u_int, u_int));
int ipsec_get_keylen __P((u_int, u_int, struct sadb_alg *));
u_int pfkey_set_softrate __P((u_int, u_int));
u_int pfkey_get_softrate __P((u_int));
int ipsec_check_keylen(u_int, u_int, u_int);
int ipsec_check_keylen2(u_int, u_int, u_int);
int ipsec_get_keylen(u_int, u_int, struct sadb_alg *);
u_int pfkey_set_softrate(u_int, u_int);
u_int pfkey_get_softrate(u_int);
int pfkey_send_getspi __P((int, u_int, u_int, struct sockaddr *,
struct sockaddr *, u_int32_t, u_int32_t, u_int32_t, u_int32_t));
int pfkey_send_update __P((int, u_int, u_int, struct sockaddr *,
@ -57,12 +57,12 @@ int pfkey_send_delete_all __P((int, u_int, u_int,
struct sockaddr *, struct sockaddr *));
int pfkey_send_get __P((int, u_int, u_int,
struct sockaddr *, struct sockaddr *, u_int32_t));
int pfkey_send_register __P((int, u_int));
int pfkey_recv_register __P((int));
int pfkey_set_supported __P((struct sadb_msg *, int));
int pfkey_send_flush __P((int, u_int));
int pfkey_send_dump __P((int, u_int));
int pfkey_send_promisc_toggle __P((int, int));
int pfkey_send_register(int, u_int);
int pfkey_recv_register(int);
int pfkey_set_supported(struct sadb_msg *, int);
int pfkey_send_flush(int, u_int);
int pfkey_send_dump(int, u_int);
int pfkey_send_promisc_toggle(int, int);
int pfkey_send_spdadd __P((int, struct sockaddr *, u_int,
struct sockaddr *, u_int, u_int, caddr_t, int, u_int32_t));
int pfkey_send_spdadd2 __P((int, struct sockaddr *, u_int,
@ -75,16 +75,16 @@ int pfkey_send_spdupdate2 __P((int, struct sockaddr *, u_int,
caddr_t, int, u_int32_t));
int pfkey_send_spddelete __P((int, struct sockaddr *, u_int,
struct sockaddr *, u_int, u_int, caddr_t, int, u_int32_t));
int pfkey_send_spddelete2 __P((int, u_int32_t));
int pfkey_send_spdget __P((int, u_int32_t));
int pfkey_send_spddelete2(int, u_int32_t);
int pfkey_send_spdget(int, u_int32_t);
int pfkey_send_spdsetidx __P((int, struct sockaddr *, u_int,
struct sockaddr *, u_int, u_int, caddr_t, int, u_int32_t));
int pfkey_send_spdflush __P((int));
int pfkey_send_spddump __P((int));
int pfkey_send_spdflush(int);
int pfkey_send_spddump(int);
int pfkey_open __P((void));
void pfkey_close __P((int));
struct sadb_msg *pfkey_recv __P((int));
int pfkey_send __P((int, struct sadb_msg *, int));
int pfkey_align __P((struct sadb_msg *, caddr_t *));
int pfkey_check __P((caddr_t *));
int pfkey_open(void);
void pfkey_close(int);
struct sadb_msg *pfkey_recv(int);
int pfkey_send(int, struct sadb_msg *, int);
int pfkey_align(struct sadb_msg *, caddr_t *);
int pfkey_check(caddr_t *);

View File

@ -51,20 +51,20 @@ __FBSDID("$FreeBSD$");
#define CALLOC(size, cast) (cast)calloc(1, (size))
static int findsupportedmap __P((int));
static int setsupportedmap __P((struct sadb_supported *));
static struct sadb_alg *findsupportedalg __P((u_int, u_int));
static int findsupportedmap(int);
static int setsupportedmap(struct sadb_supported *);
static struct sadb_alg *findsupportedalg(u_int, u_int);
static int pfkey_send_x1 __P((int, u_int, u_int, u_int, struct sockaddr *,
struct sockaddr *, u_int32_t, u_int32_t, u_int, caddr_t,
u_int, u_int, u_int, u_int, u_int, u_int32_t, u_int32_t,
u_int32_t, u_int32_t, u_int32_t));
static int pfkey_send_x2 __P((int, u_int, u_int, u_int,
struct sockaddr *, struct sockaddr *, u_int32_t));
static int pfkey_send_x3 __P((int, u_int, u_int));
static int pfkey_send_x3(int, u_int, u_int);
static int pfkey_send_x4 __P((int, u_int, struct sockaddr *, u_int,
struct sockaddr *, u_int, u_int, u_int64_t, u_int64_t,
char *, int, u_int32_t));
static int pfkey_send_x5 __P((int, u_int, u_int32_t));
static int pfkey_send_x5(int, u_int, u_int32_t);
static caddr_t pfkey_setsadbmsg __P((caddr_t, caddr_t, u_int, u_int,
u_int, u_int32_t, pid_t));
@ -72,10 +72,10 @@ static caddr_t pfkey_setsadbsa __P((caddr_t, caddr_t, u_int32_t, u_int,
u_int, u_int, u_int32_t));
static caddr_t pfkey_setsadbaddr __P((caddr_t, caddr_t, u_int,
struct sockaddr *, u_int, u_int));
static caddr_t pfkey_setsadbkey __P((caddr_t, caddr_t, u_int, caddr_t, u_int));
static caddr_t pfkey_setsadbkey(caddr_t, caddr_t, u_int, caddr_t, u_int);
static caddr_t pfkey_setsadblifetime __P((caddr_t, caddr_t, u_int, u_int32_t,
u_int32_t, u_int32_t, u_int32_t));
static caddr_t pfkey_setsadbxsa2 __P((caddr_t, caddr_t, u_int32_t, u_int32_t));
static caddr_t pfkey_setsadbxsa2(caddr_t, caddr_t, u_int32_t, u_int32_t);
/*
* make and search supported algorithm structure.

View File

@ -101,10 +101,10 @@ do { \
printf("%d ", (num)); \
} while (0)
static char *str_ipaddr __P((struct sockaddr *));
static char *str_prefport __P((u_int, u_int, u_int));
static char *str_time __P((time_t));
static void str_lifetime_byte __P((struct sadb_lifetime *, char *));
static char *str_ipaddr(struct sockaddr *);
static char *str_prefport(u_int, u_int, u_int);
static char *str_time(time_t);
static void str_lifetime_byte(struct sadb_lifetime *, char *);
struct val2str {
int val;

View File

@ -75,18 +75,18 @@ static struct sockaddr *p_src = NULL;
static struct sockaddr *p_dst = NULL;
struct _val;
extern void yyerror __P((char *msg));
static struct sockaddr *parse_sockaddr __P((struct _val *buf));
static int rule_check __P((void));
static int init_x_policy __P((void));
static int set_x_request __P((struct sockaddr *src, struct sockaddr *dst));
static int set_sockaddr __P((struct sockaddr *addr));
static void policy_parse_request_init __P((void));
static caddr_t policy_parse __P((char *msg, int msglen));
extern void yyerror(char *msg);
static struct sockaddr *parse_sockaddr(struct _val *buf);
static int rule_check(void);
static int init_x_policy(void);
static int set_x_request(struct sockaddr *src, struct sockaddr *dst);
static int set_sockaddr(struct sockaddr *addr);
static void policy_parse_request_init(void);
static caddr_t policy_parse(char *msg, int msglen);
extern void __policy__strbuffer__init__ __P((char *msg));
extern int yyparse __P((void));
extern int yylex __P((void));
extern void __policy__strbuffer__init__(char *msg);
extern int yyparse(void);
extern int yylex(void);
%}

View File

@ -53,7 +53,7 @@
#endif
#define yylval __libipsecyylval /* XXX */
int yylex __P((void));
int yylex(void);
%}
%option noyywrap
@ -132,7 +132,7 @@ unique { yylval.num = IPSEC_LEVEL_UNIQUE; return(LEVEL); }
%%
void __policy__strbuffer__init__ __P((char *));
void __policy__strbuffer__init__(char *);
void
__policy__strbuffer__init__(msg)

View File

@ -86,11 +86,11 @@ struct req_t {
{ 0, "out ipsec esp/transport/fec0::10-fec0::11/use" },
};
int test1 __P((void));
int test1sub1 __P((struct req_t *));
int test1sub2 __P((char *, int));
int test2 __P((void));
int test2sub __P((int));
int test1(void);
int test1sub1(struct req_t *);
int test1sub2(char *, int);
int test2(void);
int test2sub(int);
int
main(ac, av)

View File

@ -72,7 +72,7 @@ static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
#include "kvm_private.h"
/* from src/lib/libc/gen/nlist.c */
int __fdnlist __P((int, struct nlist *));
int __fdnlist(int, struct nlist *);
char *
kvm_geterr(kd)

View File

@ -73,24 +73,24 @@ struct kvm_swap {
#define SWIF_DEV_PREFIX 0x0002
__BEGIN_DECLS
int kvm_close __P((kvm_t *));
char **kvm_getargv __P((kvm_t *, const struct kinfo_proc *, int));
char **kvm_getenvv __P((kvm_t *, const struct kinfo_proc *, int));
char *kvm_geterr __P((kvm_t *));
char *kvm_getfiles __P((kvm_t *, int, int, int *));
int kvm_getloadavg __P((kvm_t *, double [], int));
int kvm_close(kvm_t *);
char **kvm_getargv(kvm_t *, const struct kinfo_proc *, int);
char **kvm_getenvv(kvm_t *, const struct kinfo_proc *, int);
char *kvm_geterr(kvm_t *);
char *kvm_getfiles(kvm_t *, int, int, int *);
int kvm_getloadavg(kvm_t *, double [], int);
struct kinfo_proc *
kvm_getprocs __P((kvm_t *, int, int, int *));
int kvm_getswapinfo __P((kvm_t *, struct kvm_swap *, int, int));
int kvm_nlist __P((kvm_t *, struct nlist *));
kvm_getprocs(kvm_t *, int, int, int *);
int kvm_getswapinfo(kvm_t *, struct kvm_swap *, int, int);
int kvm_nlist(kvm_t *, struct nlist *);
kvm_t *kvm_open
__P((const char *, const char *, const char *, int, const char *));
(const char *, const char *, const char *, int, const char *);
kvm_t *kvm_openfiles
__P((const char *, const char *, const char *, int, char *));
ssize_t kvm_read __P((kvm_t *, unsigned long, void *, size_t));
(const char *, const char *, const char *, int, char *);
ssize_t kvm_read(kvm_t *, unsigned long, void *, size_t);
ssize_t kvm_uread
__P((kvm_t *, struct kinfo_proc *, unsigned long, char *, size_t));
ssize_t kvm_write __P((kvm_t *, unsigned long, const void *, size_t));
(kvm_t *, struct kinfo_proc *, unsigned long, char *, size_t);
ssize_t kvm_write(kvm_t *, unsigned long, const void *, size_t);
__END_DECLS
#endif /* !_KVM_H_ */

View File

@ -71,12 +71,12 @@ struct __kvm {
* Functions used internally by kvm, but across kvm modules.
*/
void _kvm_err __P((kvm_t *kd, const char *program, const char *fmt, ...)) __printflike(3, 4);
void _kvm_freeprocs __P((kvm_t *kd));
void _kvm_freevtop __P((kvm_t *));
int _kvm_initvtop __P((kvm_t *));
int _kvm_kvatop __P((kvm_t *, u_long, u_long *));
void *_kvm_malloc __P((kvm_t *kd, size_t));
void *_kvm_realloc __P((kvm_t *kd, void *, size_t));
void _kvm_freeprocs(kvm_t *kd);
void _kvm_freevtop(kvm_t *);
int _kvm_initvtop(kvm_t *);
int _kvm_kvatop(kvm_t *, u_long, u_long *);
void *_kvm_malloc(kvm_t *kd, size_t);
void *_kvm_realloc(kvm_t *kd, void *, size_t);
void _kvm_syserr
__P((kvm_t *kd, const char *program, const char *fmt, ...)) __printflike(3, 4);
int _kvm_uvatop __P((kvm_t *, const struct proc *, u_long, u_long *));
int _kvm_uvatop(kvm_t *, const struct proc *, u_long, u_long *);

View File

@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
#include <sys/md5.h>
static void MD5Transform __P((u_int32_t [4], const unsigned char [64]));
static void MD5Transform(u_int32_t [4], const unsigned char [64]);
#ifdef _KERNEL
#define memset(x,y,z) bzero(x,z);

View File

@ -187,7 +187,7 @@ void ipx_assign_node(IPXNode *dest, IPXNode *src) {
}
static void rt_xaddrs __P((caddr_t, caddr_t, struct rt_addrinfo *));
static void rt_xaddrs(caddr_t, caddr_t, struct rt_addrinfo *);
static int if_ipxscan __P((int addrcount, struct sockaddr_dl *sdl, struct if_msghdr *ifm,
struct ifa_msghdr *ifam,struct ipx_addr *addr));

View File

@ -51,7 +51,7 @@ static char sccsid[] = "@(#)secretkey.c 1.8 91/03/11 Copyr 1986 Sun Micro";
#include <rpcsvc/ypclnt.h>
#include <string.h>
extern int xdecrypt __P(( char *, char * ));
extern int xdecrypt( char *, char * );
/*
* Get somebody's encrypted secret key from the database, using the given

View File

@ -41,10 +41,10 @@ __FBSDID("$FreeBSD$");
#include <rpc/des_crypt.h>
static char hex[]; /* forward */
static char hexval __P(( char ));
static void bin2hex __P(( int, unsigned char *, char * ));
static void hex2bin __P(( int, char *, char * ));
void passwd2des __P(( char *, char * ));
static char hexval( char );
static void bin2hex( int, unsigned char *, char * );
static void hex2bin( int, char *, char * );
void passwd2des( char *, char * );
/*
* Encrypt a secret key given passwd

View File

@ -97,11 +97,11 @@ union uu {
#define LHALF(x) ((x) & ((1 << HALF_BITS) - 1))
#define LHUP(x) ((x) << HALF_BITS)
quad_t __divdi3 __P((quad_t a, quad_t b));
quad_t __moddi3 __P((quad_t a, quad_t b));
u_quad_t __qdivrem __P((u_quad_t u, u_quad_t v, u_quad_t *rem));
u_quad_t __udivdi3 __P((u_quad_t a, u_quad_t b));
u_quad_t __umoddi3 __P((u_quad_t a, u_quad_t b));
quad_t __divdi3(quad_t a, quad_t b);
quad_t __moddi3(quad_t a, quad_t b);
u_quad_t __qdivrem(u_quad_t u, u_quad_t v, u_quad_t *rem);
u_quad_t __udivdi3(u_quad_t a, u_quad_t b);
u_quad_t __umoddi3(u_quad_t a, u_quad_t b);
/*
* XXX

View File

@ -78,24 +78,24 @@ typedef struct hid_item {
#define HID_USAGE(u) ((u) & 0xffff)
/* Obtaining a report descriptor, descr.c: */
report_desc_t hid_get_report_desc __P((int file));
report_desc_t hid_use_report_desc __P((unsigned char *data, unsigned int size));
void hid_dispose_report_desc __P((report_desc_t));
report_desc_t hid_get_report_desc(int file);
report_desc_t hid_use_report_desc(unsigned char *data, unsigned int size);
void hid_dispose_report_desc(report_desc_t);
/* Parsing of a HID report descriptor, parse.c: */
hid_data_t hid_start_parse __P((report_desc_t d, int kindset));
void hid_end_parse __P((hid_data_t s));
int hid_get_item __P((hid_data_t s, hid_item_t *h));
int hid_report_size __P((report_desc_t d, unsigned int id, enum hid_kind k));
int hid_locate __P((report_desc_t d, unsigned int usage, enum hid_kind k, hid_item_t *h));
hid_data_t hid_start_parse(report_desc_t d, int kindset);
void hid_end_parse(hid_data_t s);
int hid_get_item(hid_data_t s, hid_item_t *h);
int hid_report_size(report_desc_t d, unsigned int id, enum hid_kind k);
int hid_locate(report_desc_t d, unsigned int usage, enum hid_kind k, hid_item_t *h);
/* Conversion to/from usage names, usage.c: */
int hid_parse_usage_page __P((const char *name));
int hid_parse_usage_in_page __P((const char *name));
const char *hid_usage_page __P((int i));
const char *hid_usage_in_page __P((unsigned int u));
void hid_init __P((const char *file));
int hid_parse_usage_page(const char *name);
int hid_parse_usage_in_page(const char *name);
const char *hid_usage_page(int i);
const char *hid_usage_in_page(unsigned int u);
void hid_init(const char *file);
/* Extracting/insertion of data, data.c: */
int hid_get_data __P((const void *p, const hid_item_t *h));
void hid_set_data __P((void *p, const hid_item_t *h, int data));
int hid_get_data(const void *p, const hid_item_t *h);
void hid_set_data(void *p, const hid_item_t *h, int data);

View File

@ -78,24 +78,24 @@ typedef struct hid_item {
#define HID_USAGE(u) ((u) & 0xffff)
/* Obtaining a report descriptor, descr.c: */
report_desc_t hid_get_report_desc __P((int file));
report_desc_t hid_use_report_desc __P((unsigned char *data, unsigned int size));
void hid_dispose_report_desc __P((report_desc_t));
report_desc_t hid_get_report_desc(int file);
report_desc_t hid_use_report_desc(unsigned char *data, unsigned int size);
void hid_dispose_report_desc(report_desc_t);
/* Parsing of a HID report descriptor, parse.c: */
hid_data_t hid_start_parse __P((report_desc_t d, int kindset));
void hid_end_parse __P((hid_data_t s));
int hid_get_item __P((hid_data_t s, hid_item_t *h));
int hid_report_size __P((report_desc_t d, unsigned int id, enum hid_kind k));
int hid_locate __P((report_desc_t d, unsigned int usage, enum hid_kind k, hid_item_t *h));
hid_data_t hid_start_parse(report_desc_t d, int kindset);
void hid_end_parse(hid_data_t s);
int hid_get_item(hid_data_t s, hid_item_t *h);
int hid_report_size(report_desc_t d, unsigned int id, enum hid_kind k);
int hid_locate(report_desc_t d, unsigned int usage, enum hid_kind k, hid_item_t *h);
/* Conversion to/from usage names, usage.c: */
int hid_parse_usage_page __P((const char *name));
int hid_parse_usage_in_page __P((const char *name));
const char *hid_usage_page __P((int i));
const char *hid_usage_in_page __P((unsigned int u));
void hid_init __P((const char *file));
int hid_parse_usage_page(const char *name);
int hid_parse_usage_in_page(const char *name);
const char *hid_usage_page(int i);
const char *hid_usage_in_page(unsigned int u);
void hid_init(const char *file);
/* Extracting/insertion of data, data.c: */
int hid_get_data __P((const void *p, const hid_item_t *h));
void hid_set_data __P((void *p, const hid_item_t *h, int data));
int hid_get_data(const void *p, const hid_item_t *h);
void hid_set_data(void *p, const hid_item_t *h, int data);

View File

@ -78,24 +78,24 @@ typedef struct hid_item {
#define HID_USAGE(u) ((u) & 0xffff)
/* Obtaining a report descriptor, descr.c: */
report_desc_t hid_get_report_desc __P((int file));
report_desc_t hid_use_report_desc __P((unsigned char *data, unsigned int size));
void hid_dispose_report_desc __P((report_desc_t));
report_desc_t hid_get_report_desc(int file);
report_desc_t hid_use_report_desc(unsigned char *data, unsigned int size);
void hid_dispose_report_desc(report_desc_t);
/* Parsing of a HID report descriptor, parse.c: */
hid_data_t hid_start_parse __P((report_desc_t d, int kindset));
void hid_end_parse __P((hid_data_t s));
int hid_get_item __P((hid_data_t s, hid_item_t *h));
int hid_report_size __P((report_desc_t d, unsigned int id, enum hid_kind k));
int hid_locate __P((report_desc_t d, unsigned int usage, enum hid_kind k, hid_item_t *h));
hid_data_t hid_start_parse(report_desc_t d, int kindset);
void hid_end_parse(hid_data_t s);
int hid_get_item(hid_data_t s, hid_item_t *h);
int hid_report_size(report_desc_t d, unsigned int id, enum hid_kind k);
int hid_locate(report_desc_t d, unsigned int usage, enum hid_kind k, hid_item_t *h);
/* Conversion to/from usage names, usage.c: */
int hid_parse_usage_page __P((const char *name));
int hid_parse_usage_in_page __P((const char *name));
const char *hid_usage_page __P((int i));
const char *hid_usage_in_page __P((unsigned int u));
void hid_init __P((const char *file));
int hid_parse_usage_page(const char *name);
int hid_parse_usage_in_page(const char *name);
const char *hid_usage_page(int i);
const char *hid_usage_in_page(unsigned int u);
void hid_init(const char *file);
/* Extracting/insertion of data, data.c: */
int hid_get_data __P((const void *p, const hid_item_t *h));
void hid_set_data __P((void *p, const hid_item_t *h, int data));
int hid_get_data(const void *p, const hid_item_t *h);
void hid_set_data(void *p, const hid_item_t *h, int data);

View File

@ -78,24 +78,24 @@ typedef struct hid_item {
#define HID_USAGE(u) ((u) & 0xffff)
/* Obtaining a report descriptor, descr.c: */
report_desc_t hid_get_report_desc __P((int file));
report_desc_t hid_use_report_desc __P((unsigned char *data, unsigned int size));
void hid_dispose_report_desc __P((report_desc_t));
report_desc_t hid_get_report_desc(int file);
report_desc_t hid_use_report_desc(unsigned char *data, unsigned int size);
void hid_dispose_report_desc(report_desc_t);
/* Parsing of a HID report descriptor, parse.c: */
hid_data_t hid_start_parse __P((report_desc_t d, int kindset));
void hid_end_parse __P((hid_data_t s));
int hid_get_item __P((hid_data_t s, hid_item_t *h));
int hid_report_size __P((report_desc_t d, unsigned int id, enum hid_kind k));
int hid_locate __P((report_desc_t d, unsigned int usage, enum hid_kind k, hid_item_t *h));
hid_data_t hid_start_parse(report_desc_t d, int kindset);
void hid_end_parse(hid_data_t s);
int hid_get_item(hid_data_t s, hid_item_t *h);
int hid_report_size(report_desc_t d, unsigned int id, enum hid_kind k);
int hid_locate(report_desc_t d, unsigned int usage, enum hid_kind k, hid_item_t *h);
/* Conversion to/from usage names, usage.c: */
int hid_parse_usage_page __P((const char *name));
int hid_parse_usage_in_page __P((const char *name));
const char *hid_usage_page __P((int i));
const char *hid_usage_in_page __P((unsigned int u));
void hid_init __P((const char *file));
int hid_parse_usage_page(const char *name);
int hid_parse_usage_in_page(const char *name);
const char *hid_usage_page(int i);
const char *hid_usage_in_page(unsigned int u);
void hid_init(const char *file);
/* Extracting/insertion of data, data.c: */
int hid_get_data __P((const void *p, const hid_item_t *h));
void hid_set_data __P((void *p, const hid_item_t *h, int data));
int hid_get_data(const void *p, const hid_item_t *h);
void hid_set_data(void *p, const hid_item_t *h, int data);

View File

@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#include <libutil.h>
static int isescaped __P((const char *, const char *, int));
static int isescaped(const char *, const char *, int);
/* isescaped():
* Return true if the character in *p that belongs to a string
@ -199,7 +199,7 @@ fparseln(fp, size, lineno, str, flags)
#ifdef TEST
int main __P((int, char **));
int main(int, char **);
int
main(argc, argv)

View File

@ -48,33 +48,33 @@ struct utmp;
struct in_addr;
__BEGIN_DECLS
int extattr_namespace_to_string __P((int _attrnamespace, char **_string));
int extattr_namespace_to_string(int _attrnamespace, char **_string);
int extattr_string_to_namespace __P((const char *_string,
int *_attrnamespace));
void login __P((struct utmp *_ut));
int login_tty __P((int _fd));
int logout __P((const char *_line));
void logwtmp __P((const char *_line, const char *_name, const char *_host));
void trimdomain __P((char *_fullhost, int _hostsize));
void login(struct utmp *_ut);
int login_tty(int _fd);
int logout(const char *_line);
void logwtmp(const char *_line, const char *_name, const char *_host);
void trimdomain(char *_fullhost, int _hostsize);
int openpty __P((int *_amaster, int *_aslave, char *_name,
struct termios *_termp, struct winsize *_winp));
int forkpty __P((int *_amaster, char *_name,
struct termios *_termp, struct winsize *_winp));
const char *uu_lockerr __P((int _uu_lockresult));
int uu_lock __P((const char *_ttyname));
int uu_unlock __P((const char *_ttyname));
int uu_lock_txfr __P((const char *_ttyname, pid_t _pid));
int _secure_path __P((const char *_path, uid_t _uid, gid_t _gid));
properties properties_read __P((int fd));
void properties_free __P((properties list));
char *property_find __P((properties list, const char *name));
char *auth_getval __P((const char *name));
int realhostname __P((char *host, size_t hsize, const struct in_addr *ip));
const char *uu_lockerr(int _uu_lockresult);
int uu_lock(const char *_ttyname);
int uu_unlock(const char *_ttyname);
int uu_lock_txfr(const char *_ttyname, pid_t _pid);
int _secure_path(const char *_path, uid_t _uid, gid_t _gid);
properties properties_read(int fd);
void properties_free(properties list);
char *property_find(properties list, const char *name);
char *auth_getval(const char *name);
int realhostname(char *host, size_t hsize, const struct in_addr *ip);
struct sockaddr;
int realhostname_sa __P((char *host, size_t hsize, struct sockaddr *addr,
int addrlen));
#ifdef _STDIO_H_ /* avoid adding new includes */
char *fparseln __P((FILE *, size_t *, size_t *, const char[3], int));
char *fparseln(FILE *, size_t *, size_t *, const char[3], int);
#endif
__END_DECLS

View File

@ -96,61 +96,61 @@ typedef struct login_time {
__BEGIN_DECLS
struct passwd;
void login_close __P((login_cap_t *));
login_cap_t *login_getclassbyname __P((const char *, const struct passwd *));
login_cap_t *login_getclass __P((const char *));
login_cap_t *login_getpwclass __P((const struct passwd *));
login_cap_t *login_getuserclass __P((const struct passwd *));
void login_close(login_cap_t *);
login_cap_t *login_getclassbyname(const char *, const struct passwd *);
login_cap_t *login_getclass(const char *);
login_cap_t *login_getpwclass(const struct passwd *);
login_cap_t *login_getuserclass(const struct passwd *);
char *login_getcapstr __P((login_cap_t*, const char *, char *, char *));
char **login_getcaplist __P((login_cap_t *, const char *, const char *));
char *login_getstyle __P((login_cap_t *, char *, const char *));
rlim_t login_getcaptime __P((login_cap_t *, const char *, rlim_t, rlim_t));
rlim_t login_getcapnum __P((login_cap_t *, const char *, rlim_t, rlim_t));
rlim_t login_getcapsize __P((login_cap_t *, const char *, rlim_t, rlim_t));
char *login_getpath __P((login_cap_t *, const char *, char *));
int login_getcapbool __P((login_cap_t *, const char *, int));
const char *login_setcryptfmt __P((login_cap_t *, const char *, const char *));
char *login_getcapstr(login_cap_t*, const char *, char *, char *);
char **login_getcaplist(login_cap_t *, const char *, const char *);
char *login_getstyle(login_cap_t *, char *, const char *);
rlim_t login_getcaptime(login_cap_t *, const char *, rlim_t, rlim_t);
rlim_t login_getcapnum(login_cap_t *, const char *, rlim_t, rlim_t);
rlim_t login_getcapsize(login_cap_t *, const char *, rlim_t, rlim_t);
char *login_getpath(login_cap_t *, const char *, char *);
int login_getcapbool(login_cap_t *, const char *, int);
const char *login_setcryptfmt(login_cap_t *, const char *, const char *);
int setclasscontext __P((const char*, unsigned int));
int setusercontext __P((login_cap_t*, const struct passwd*, uid_t, unsigned int));
void setclassresources __P((login_cap_t *));
void setclassenvironment __P((login_cap_t *, const struct passwd *, int));
int setclasscontext(const char*, unsigned int);
int setusercontext(login_cap_t*, const struct passwd*, uid_t, unsigned int);
void setclassresources(login_cap_t *);
void setclassenvironment(login_cap_t *, const struct passwd *, int);
/* Most of these functions are deprecated */
int auth_approve __P((login_cap_t*, const char*, const char*));
int auth_check __P((const char *, const char *, const char *, const char *, int *));
void auth_env __P((void));
char *auth_mkvalue __P((const char *n));
int auth_response __P((const char *, const char *, const char *, const char *, int *, const char *, const char *));
void auth_rmfiles __P((void));
int auth_scan __P((int));
int auth_script __P((const char*, ...));
int auth_script_data __P((const char *, int, const char *, ...));
char *auth_valud __P((const char *));
int auth_setopt __P((const char *, const char *));
void auth_clropts __P((void));
int auth_approve(login_cap_t*, const char*, const char*);
int auth_check(const char *, const char *, const char *, const char *, int *);
void auth_env(void);
char *auth_mkvalue(const char *n);
int auth_response(const char *, const char *, const char *, const char *, int *, const char *, const char *);
void auth_rmfiles(void);
int auth_scan(int);
int auth_script(const char*, ...);
int auth_script_data(const char *, int, const char *, ...);
char *auth_valud(const char *);
int auth_setopt(const char *, const char *);
void auth_clropts(void);
void auth_checknologin __P((login_cap_t*));
int auth_cat __P((const char*));
void auth_checknologin(login_cap_t*);
int auth_cat(const char*);
int auth_ttyok __P((login_cap_t*, const char *));
int auth_hostok __P((login_cap_t*, const char *, char const *));
int auth_timeok __P((login_cap_t*, time_t));
int auth_ttyok(login_cap_t*, const char *);
int auth_hostok(login_cap_t*, const char *, char const *);
int auth_timeok(login_cap_t*, time_t);
struct tm;
login_time_t parse_lt __P((const char *));
int in_ltm __P((const login_time_t *, struct tm *, time_t *));
int in_ltms __P((const login_time_t *, struct tm *, time_t *));
login_time_t parse_lt(const char *);
int in_ltm(const login_time_t *, struct tm *, time_t *);
int in_ltms(const login_time_t *, struct tm *, time_t *);
/* helper functions */
int login_strinlist __P((char **, char const *, int));
int login_str2inlist __P((char **, const char *, const char *, int));
login_time_t * login_timelist __P((login_cap_t *, char const *, int *, login_time_t **));
int login_ttyok __P((login_cap_t *, const char *, const char *, const char *));
int login_hostok __P((login_cap_t *, const char *, const char *, const char *, const char *));
int login_strinlist(char **, char const *, int);
int login_str2inlist(char **, const char *, const char *, int);
login_time_t * login_timelist(login_cap_t *, char const *, int *, login_time_t **);
int login_ttyok(login_cap_t *, const char *, const char *, const char *);
int login_hostok(login_cap_t *, const char *, const char *, const char *, const char *);
__END_DECLS

View File

@ -78,11 +78,11 @@ __FBSDID("$FreeBSD$");
* Maximum observed error < 4ulp in 1,000,000 trials.
*/
static double neg_gam __P((double));
static double small_gam __P((double));
static double smaller_gam __P((double));
static struct Double large_gam __P((double));
static struct Double ratfun_gam __P((double, double));
static double neg_gam(double);
static double small_gam(double);
static double smaller_gam(double);
static struct Double large_gam(double);
static struct Double ratfun_gam(double, double);
/*
* Rational approximation, A0 + x*x*P(x)/Q(x), on the interval

View File

@ -31,6 +31,7 @@
* SUCH DAMAGE.
*
* @(#)mathimpl.h 8.1 (Berkeley) 6/4/93
* $FreeBSD$
*/
#include <sys/cdefs.h>
@ -94,5 +95,5 @@ extern double __exp__E();
extern double __log__L();
struct Double {double a, b;};
double __exp__D __P((double, double));
struct Double __log__D __P((double));
double __exp__D(double, double);
struct Double __log__D(double);

View File

@ -29,7 +29,7 @@
#include <sys/types.h>
#include <sys/sysctl.h>
int __get_hw_float __P((void));
int __get_hw_float(void);
static int hw_float = -1;

View File

@ -101,163 +101,163 @@ struct exception {
* ANSI/POSIX
*/
__BEGIN_DECLS
double acos __P((double));
double asin __P((double));
double atan __P((double));
double atan2 __P((double, double));
double cos __P((double));
double sin __P((double));
double tan __P((double));
double acos(double);
double asin(double);
double atan(double);
double atan2(double, double);
double cos(double);
double sin(double);
double tan(double);
double cosh __P((double));
double sinh __P((double));
double tanh __P((double));
double cosh(double);
double sinh(double);
double tanh(double);
double exp __P((double));
double frexp __P((double, int *));
double ldexp __P((double, int));
double log __P((double));
double log10 __P((double));
double modf __P((double, double *));
double exp(double);
double frexp(double, int *);
double ldexp(double, int);
double log(double);
double log10(double);
double modf(double, double *);
double pow __P((double, double));
double sqrt __P((double));
double pow(double, double);
double sqrt(double);
double ceil __P((double));
double fabs __P((double));
double floor __P((double));
double fmod __P((double, double));
double ceil(double);
double fabs(double);
double floor(double);
double fmod(double, double);
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
double erf __P((double));
double erfc __P((double));
double gamma __P((double));
double hypot __P((double, double));
int isinf __P((double));
int isnan __P((double));
int finite __P((double));
double j0 __P((double));
double j1 __P((double));
double jn __P((int, double));
double lgamma __P((double));
double y0 __P((double));
double y1 __P((double));
double yn __P((int, double));
double erf(double);
double erfc(double);
double gamma(double);
double hypot(double, double);
int isinf(double);
int isnan(double);
int finite(double);
double j0(double);
double j1(double);
double jn(int, double);
double lgamma(double);
double y0(double);
double y1(double);
double yn(int, double);
#if !defined(_XOPEN_SOURCE)
double acosh __P((double));
double asinh __P((double));
double atanh __P((double));
double cbrt __P((double));
double logb __P((double));
double nextafter __P((double, double));
double remainder __P((double, double));
double scalb __P((double, double));
double acosh(double);
double asinh(double);
double atanh(double);
double cbrt(double);
double logb(double);
double nextafter(double, double);
double remainder(double, double);
double scalb(double, double);
#ifndef __cplusplus
int matherr __P((struct exception *));
int matherr(struct exception *);
#endif
/*
* IEEE Test Vector
*/
double significand __P((double));
double significand(double);
/*
* Functions callable from C, intended to support IEEE arithmetic.
*/
double copysign __P((double, double));
int ilogb __P((double));
double rint __P((double));
double scalbn __P((double, int));
double copysign(double, double);
int ilogb(double);
double rint(double);
double scalbn(double, int);
/*
* BSD math library entry points
*/
double drem __P((double, double));
double expm1 __P((double));
double log1p __P((double));
double drem(double, double);
double expm1(double);
double log1p(double);
/*
* Reentrant version of gamma & lgamma; passes signgam back by reference
* as the second argument; user must allocate space for signgam.
*/
#ifdef _REENTRANT
double gamma_r __P((double, int *));
double lgamma_r __P((double, int *));
double gamma_r(double, int *);
double lgamma_r(double, int *);
#endif /* _REENTRANT */
/* float versions of ANSI/POSIX functions */
float acosf __P((float));
float asinf __P((float));
float atanf __P((float));
float atan2f __P((float, float));
float cosf __P((float));
float sinf __P((float));
float tanf __P((float));
float acosf(float);
float asinf(float);
float atanf(float);
float atan2f(float, float);
float cosf(float);
float sinf(float);
float tanf(float);
float coshf __P((float));
float sinhf __P((float));
float tanhf __P((float));
float coshf(float);
float sinhf(float);
float tanhf(float);
float expf __P((float));
float frexpf __P((float, int *));
float ldexpf __P((float, int));
float logf __P((float));
float log10f __P((float));
float modff __P((float, float *));
float expf(float);
float frexpf(float, int *);
float ldexpf(float, int);
float logf(float);
float log10f(float);
float modff(float, float *);
float powf __P((float, float));
float sqrtf __P((float));
float powf(float, float);
float sqrtf(float);
float ceilf __P((float));
float fabsf __P((float));
float floorf __P((float));
float fmodf __P((float, float));
float ceilf(float);
float fabsf(float);
float floorf(float);
float fmodf(float, float);
float erff __P((float));
float erfcf __P((float));
float gammaf __P((float));
float hypotf __P((float, float));
int isnanf __P((float));
int finitef __P((float));
float j0f __P((float));
float j1f __P((float));
float jnf __P((int, float));
float lgammaf __P((float));
float y0f __P((float));
float y1f __P((float));
float ynf __P((int, float));
float erff(float);
float erfcf(float);
float gammaf(float);
float hypotf(float, float);
int isnanf(float);
int finitef(float);
float j0f(float);
float j1f(float);
float jnf(int, float);
float lgammaf(float);
float y0f(float);
float y1f(float);
float ynf(int, float);
float acoshf __P((float));
float asinhf __P((float));
float atanhf __P((float));
float cbrtf __P((float));
float logbf __P((float));
float nextafterf __P((float, float));
float remainderf __P((float, float));
float scalbf __P((float, float));
float acoshf(float);
float asinhf(float);
float atanhf(float);
float cbrtf(float);
float logbf(float);
float nextafterf(float, float);
float remainderf(float, float);
float scalbf(float, float);
/*
* float version of IEEE Test Vector
*/
float significandf __P((float));
float significandf(float);
/*
* Float versions of functions callable from C, intended to support
* IEEE arithmetic.
*/
float copysignf __P((float, float));
int ilogbf __P((float));
float rintf __P((float));
float scalbnf __P((float, int));
float copysignf(float, float);
int ilogbf(float);
float rintf(float);
float scalbnf(float, int);
/*
* float versions of BSD math library entry points
*/
float dremf __P((float, float));
float expm1f __P((float));
float log1pf __P((float));
float dremf(float, float);
float expm1f(float);
float log1pf(float);
/*
* Float versions of reentrant version of gamma & lgamma; passes
@ -265,8 +265,8 @@ float log1pf __P((float));
* allocate space for signgam.
*/
#ifdef _REENTRANT
float gammaf_r __P((float, int *));
float lgammaf_r __P((float, int *));
float gammaf_r(float, int *);
float lgammaf_r(float, int *);
#endif /* _REENTRANT */
#endif /* !_XOPEN_SOURCE */

View File

@ -155,75 +155,75 @@ do { \
} while (0)
/* ieee style elementary functions */
double __ieee754_sqrt __P((double));
double __ieee754_acos __P((double));
double __ieee754_acosh __P((double));
double __ieee754_log __P((double));
double __ieee754_atanh __P((double));
double __ieee754_asin __P((double));
double __ieee754_atan2 __P((double,double));
double __ieee754_exp __P((double));
double __ieee754_cosh __P((double));
double __ieee754_fmod __P((double,double));
double __ieee754_pow __P((double,double));
double __ieee754_lgamma_r __P((double,int *));
double __ieee754_gamma_r __P((double,int *));
double __ieee754_lgamma __P((double));
double __ieee754_gamma __P((double));
double __ieee754_log10 __P((double));
double __ieee754_sinh __P((double));
double __ieee754_hypot __P((double,double));
double __ieee754_j0 __P((double));
double __ieee754_j1 __P((double));
double __ieee754_y0 __P((double));
double __ieee754_y1 __P((double));
double __ieee754_jn __P((int,double));
double __ieee754_yn __P((int,double));
double __ieee754_remainder __P((double,double));
int __ieee754_rem_pio2 __P((double,double*));
double __ieee754_scalb __P((double,double));
double __ieee754_sqrt(double);
double __ieee754_acos(double);
double __ieee754_acosh(double);
double __ieee754_log(double);
double __ieee754_atanh(double);
double __ieee754_asin(double);
double __ieee754_atan2(double,double);
double __ieee754_exp(double);
double __ieee754_cosh(double);
double __ieee754_fmod(double,double);
double __ieee754_pow(double,double);
double __ieee754_lgamma_r(double,int *);
double __ieee754_gamma_r(double,int *);
double __ieee754_lgamma(double);
double __ieee754_gamma(double);
double __ieee754_log10(double);
double __ieee754_sinh(double);
double __ieee754_hypot(double,double);
double __ieee754_j0(double);
double __ieee754_j1(double);
double __ieee754_y0(double);
double __ieee754_y1(double);
double __ieee754_jn(int,double);
double __ieee754_yn(int,double);
double __ieee754_remainder(double,double);
int __ieee754_rem_pio2(double,double*);
double __ieee754_scalb(double,double);
/* fdlibm kernel function */
double __kernel_standard __P((double,double,int));
double __kernel_sin __P((double,double,int));
double __kernel_cos __P((double,double));
double __kernel_tan __P((double,double,int));
int __kernel_rem_pio2 __P((double*,double*,int,int,int,const int*));
double __kernel_standard(double,double,int);
double __kernel_sin(double,double,int);
double __kernel_cos(double,double);
double __kernel_tan(double,double,int);
int __kernel_rem_pio2(double*,double*,int,int,int,const int*);
/* ieee style elementary float functions */
float __ieee754_sqrtf __P((float));
float __ieee754_acosf __P((float));
float __ieee754_acoshf __P((float));
float __ieee754_logf __P((float));
float __ieee754_atanhf __P((float));
float __ieee754_asinf __P((float));
float __ieee754_atan2f __P((float,float));
float __ieee754_expf __P((float));
float __ieee754_coshf __P((float));
float __ieee754_fmodf __P((float,float));
float __ieee754_powf __P((float,float));
float __ieee754_lgammaf_r __P((float,int *));
float __ieee754_gammaf_r __P((float,int *));
float __ieee754_lgammaf __P((float));
float __ieee754_gammaf __P((float));
float __ieee754_log10f __P((float));
float __ieee754_sinhf __P((float));
float __ieee754_hypotf __P((float,float));
float __ieee754_j0f __P((float));
float __ieee754_j1f __P((float));
float __ieee754_y0f __P((float));
float __ieee754_y1f __P((float));
float __ieee754_jnf __P((int,float));
float __ieee754_ynf __P((int,float));
float __ieee754_remainderf __P((float,float));
int __ieee754_rem_pio2f __P((float,float*));
float __ieee754_scalbf __P((float,float));
float __ieee754_sqrtf(float);
float __ieee754_acosf(float);
float __ieee754_acoshf(float);
float __ieee754_logf(float);
float __ieee754_atanhf(float);
float __ieee754_asinf(float);
float __ieee754_atan2f(float,float);
float __ieee754_expf(float);
float __ieee754_coshf(float);
float __ieee754_fmodf(float,float);
float __ieee754_powf(float,float);
float __ieee754_lgammaf_r(float,int *);
float __ieee754_gammaf_r(float,int *);
float __ieee754_lgammaf(float);
float __ieee754_gammaf(float);
float __ieee754_log10f(float);
float __ieee754_sinhf(float);
float __ieee754_hypotf(float,float);
float __ieee754_j0f(float);
float __ieee754_j1f(float);
float __ieee754_y0f(float);
float __ieee754_y1f(float);
float __ieee754_jnf(int,float);
float __ieee754_ynf(int,float);
float __ieee754_remainderf(float,float);
int __ieee754_rem_pio2f(float,float*);
float __ieee754_scalbf(float,float);
/* float versions of fdlibm kernel functions */
float __kernel_sinf __P((float,float,int));
float __kernel_cosf __P((float,float));
float __kernel_tanf __P((float,float,int));
int __kernel_rem_pio2f __P((float*,float*,int,int,int,const int*));
float __kernel_sinf(float,float,int);
float __kernel_cosf(float,float);
float __kernel_tanf(float,float,int);
int __kernel_rem_pio2f(float*,float*,int,int,int,const int*);
#if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__)
#define __generic___ieee754_acos __ieee754_acos