This commit is contained in:
perry 2005-02-03 19:20:01 +00:00
parent d96ee18cd4
commit 0e1b702cc7
61 changed files with 760 additions and 779 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: acct.h,v 1.23 2003/08/07 16:33:59 agc Exp $ */
/* $NetBSD: acct.h,v 1.24 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@ -73,8 +73,8 @@ struct acct {
#define AHZ 64
#ifdef _KERNEL
void acct_init __P((void));
int acct_process __P((struct proc *));
void acct_init(void);
int acct_process(struct proc *);
#endif
#endif /* !_SYS_ACCT_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: bswap.h,v 1.2 2000/02/03 02:03:12 cgd Exp $ */
/* $NetBSD: bswap.h,v 1.3 2005/02/03 19:20:01 perry Exp $ */
/* Written by Manuel Bouyer. Public domain */
@ -15,13 +15,13 @@
__BEGIN_DECLS
#if defined(_KERNEL) || defined(_STANDALONE) || !defined(__BSWAP_RENAME)
u_int16_t bswap16 __P((u_int16_t));
u_int32_t bswap32 __P((u_int32_t));
u_int16_t bswap16(u_int16_t);
u_int32_t bswap32(u_int32_t);
#else
u_int16_t bswap16 __P((u_int16_t)) __RENAME(__bswap16);
u_int32_t bswap32 __P((u_int32_t)) __RENAME(__bswap32);
u_int16_t bswap16(u_int16_t) __RENAME(__bswap16);
u_int32_t bswap32(u_int32_t) __RENAME(__bswap32);
#endif
u_int64_t bswap64 __P((u_int64_t));
u_int64_t bswap64(u_int64_t);
__END_DECLS
#endif /* !_LOCORE */

View File

@ -1,4 +1,4 @@
/* $NetBSD: clockctl.h,v 1.8 2003/09/30 20:38:38 christos Exp $ */
/* $NetBSD: clockctl.h,v 1.9 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -58,10 +58,10 @@ struct clockctl_ntp_adjtime_args {
#define CLOCKCTL_CLOCK_SETTIME _IOW('C', 0x3, struct sys_clock_settime_args)
#ifdef _KERNEL
void clockctlattach __P((int));
int clockctlopen __P((dev_t, int, int, struct proc *));
int clockctlclose __P((dev_t, int, int, struct proc *));
int clockctlioctl __P((dev_t, u_long, caddr_t, int, struct proc *));
void clockctlattach(int);
int clockctlopen(dev_t, int, int, struct proc *);
int clockctlclose(dev_t, int, int, struct proc *);
int clockctlioctl(dev_t, u_long, caddr_t, int, struct proc *);
#endif
#endif /* _SYS_CLOCKCTL_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.h,v 1.115 2004/01/25 18:06:49 hannken Exp $ */
/* $NetBSD: conf.h,v 1.116 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -157,35 +157,35 @@ struct linesw {
char *l_name; /* Linesw name */
int l_no; /* Linesw number (compatibility) */
int (*l_open) __P((dev_t, struct tty *));
int (*l_close) __P((struct tty *, int));
int (*l_read) __P((struct tty *, struct uio *, int));
int (*l_write) __P((struct tty *, struct uio *, int));
int (*l_ioctl) __P((struct tty *, u_long, caddr_t, int,
struct proc *));
int (*l_rint) __P((int, struct tty *));
int (*l_start) __P((struct tty *));
int (*l_modem) __P((struct tty *, int));
int (*l_poll) __P((struct tty *, int, struct proc *));
int (*l_open) (dev_t, struct tty *);
int (*l_close) (struct tty *, int);
int (*l_read) (struct tty *, struct uio *, int);
int (*l_write) (struct tty *, struct uio *, int);
int (*l_ioctl) (struct tty *, u_long, caddr_t, int,
struct proc *);
int (*l_rint) (int, struct tty *);
int (*l_start) (struct tty *);
int (*l_modem) (struct tty *, int);
int (*l_poll) (struct tty *, int, struct proc *);
};
#ifdef _KERNEL
extern struct linesw **linesw;
extern int nlinesw;
extern void ttyldisc_init __P((void));
int ttyldisc_add __P((struct linesw *, int));
struct linesw *ttyldisc_remove __P((char *));
struct linesw *ttyldisc_lookup __P((char *));
extern void ttyldisc_init(void);
int ttyldisc_add(struct linesw *, int);
struct linesw *ttyldisc_remove(char *);
struct linesw *ttyldisc_lookup(char *);
/* For those defining their own line disciplines: */
#define ttynodisc ((int (*) __P((dev_t, struct tty *)))enodev)
#define ttyerrclose ((int (*) __P((struct tty *, int)))enodev)
#define ttyerrio ((int (*) __P((struct tty *, struct uio *, int)))enodev)
#define ttyerrinput ((int (*) __P((int, struct tty *)))enodev)
#define ttyerrstart ((int (*) __P((struct tty *)))enodev)
#define ttyerrpoll ((int (*) __P((struct tty *, int, struct proc *)))enodev)
#define ttynodisc ((int (*)(dev_t, struct tty *))enodev)
#define ttyerrclose ((int (*)(struct tty *, int))enodev)
#define ttyerrio ((int (*)(struct tty *, struct uio *, int))enodev)
#define ttyerrinput ((int (*)(int, struct tty *))enodev)
#define ttyerrstart ((int (*)(struct tty *))enodev)
#define ttyerrpoll ((int (*)(struct tty *, int, struct proc *))enodev)
int ttynullioctl __P((struct tty *, u_long, caddr_t, int, struct proc *));
int ttynullioctl(struct tty *, u_long, caddr_t, int, struct proc *);
#endif
#ifdef _KERNEL
@ -215,8 +215,8 @@ dev_t devsw_blk2chr(dev_t);
#ifdef _KERNEL
struct device;
void setroot __P((struct device *, int));
void swapconf __P((void));
void setroot(struct device *, int);
void swapconf(void);
#endif /* _KERNEL */
#endif /* !_SYS_CONF_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: disk.h,v 1.28 2004/10/23 17:16:45 thorpej Exp $ */
/* $NetBSD: disk.h,v 1.29 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 1996, 1997, 2004 The NetBSD Foundation, Inc.
@ -267,15 +267,15 @@ struct disk_sysctl {
};
struct dkdriver {
void (*d_strategy) __P((struct buf *));
void (*d_minphys) __P((struct buf *));
void (*d_strategy)(struct buf *);
void (*d_minphys)(struct buf *);
#ifdef notyet
int (*d_open) __P((dev_t, int, int, struct proc *));
int (*d_close) __P((dev_t, int, int, struct proc *));
int (*d_ioctl) __P((dev_t, u_long, caddr_t, int, struct proc *));
int (*d_dump) __P((dev_t));
void (*d_start) __P((struct buf *, daddr_t));
int (*d_mklabel) __P((struct disk *));
int (*d_open)(dev_t, int, int, struct proc *);
int (*d_close)(dev_t, int, int, struct proc *);
int (*d_ioctl)(dev_t, u_long, caddr_t, int, struct proc *);
int (*d_dump)(dev_t);
void (*d_start)(struct buf *, daddr_t);
int (*d_mklabel)(struct disk *);
#endif
};
@ -316,12 +316,12 @@ extern int disk_count; /* number of disks in global disklist */
struct device;
struct proc;
void disk_attach __P((struct disk *));
void disk_detach __P((struct disk *));
void disk_busy __P((struct disk *));
void disk_unbusy __P((struct disk *, long, int));
void disk_resetstat __P((struct disk *));
struct disk *disk_find __P((char *));
void disk_attach(struct disk *);
void disk_detach(struct disk *);
void disk_busy(struct disk *);
void disk_unbusy(struct disk *, long, int);
void disk_resetstat(struct disk *);
struct disk *disk_find(char *);
int dkwedge_add(struct dkwedge_info *);
int dkwedge_del(struct dkwedge_info *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: disklabel_acorn.h,v 1.3 2003/01/11 18:54:19 christos Exp $ */
/* $NetBSD: disklabel_acorn.h,v 1.4 2005/02/03 19:20:01 perry Exp $ */
/*
* Copyright (c) 1994 Mark Brinicombe.
@ -98,12 +98,11 @@ struct cpu_disklabel;
struct disklabel;
/* for readdisklabel. rv != 0 -> matches, msg == NULL -> success */
int filecore_label_read __P((dev_t, void (*)(struct buf *),
struct disklabel *, struct cpu_disklabel *, char **, int *,
int *));
int filecore_label_read(dev_t, void (*)(struct buf *),
struct disklabel *, struct cpu_disklabel *, char **, int *, int *);
/* for writedisklabel. rv == 0 -> dosen't match, rv > 0 -> success */
int filecore_label_locate __P((dev_t, void (*)(struct buf *),
struct disklabel *, struct cpu_disklabel *, int *, int *));
int filecore_label_locate(dev_t, void (*)(struct buf *),
struct disklabel *, struct cpu_disklabel *, int *, int *);
#endif
#endif /* _SYS_DISKLABEL_ACORN_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: event.h,v 1.13 2004/04/25 16:42:43 simonb Exp $ */
/* $NetBSD: event.h,v 1.14 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
* All rights reserved.
@ -160,11 +160,11 @@ MALLOC_DECLARE(M_KEVENT);
*/
struct filterops {
int f_isfd; /* true if ident == filedescriptor */
int (*f_attach) __P((struct knote *));
int (*f_attach) (struct knote *);
/* called when knote is ADDed */
void (*f_detach) __P((struct knote *));
void (*f_detach) (struct knote *);
/* called when knote is DELETEd */
int (*f_event) __P((struct knote *, long));
int (*f_event) (struct knote *, long);
/* called when event is triggered */
};
@ -218,9 +218,9 @@ struct timespec;
__BEGIN_DECLS
#if defined(_NETBSD_SOURCE)
int kqueue __P((void));
int kevent __P((int, const struct kevent *, size_t, struct kevent *, size_t,
const struct timespec *));
int kqueue(void);
int kevent(int, const struct kevent *, size_t, struct kevent *, size_t,
const struct timespec *);
#endif /* !_POSIX_C_SOURCE */
__END_DECLS

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec.h,v 1.105 2004/05/01 22:42:51 christos Exp $ */
/* $NetBSD: exec.h,v 1.106 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -137,31 +137,28 @@ struct exec_package;
struct vnode;
struct ucred;
typedef int (*exec_makecmds_fcn) __P((struct proc *, struct exec_package *));
typedef int (*exec_makecmds_fcn)(struct proc *, struct exec_package *);
struct execsw {
u_int es_hdrsz; /* size of header for this format */
exec_makecmds_fcn es_makecmds; /* function to setup vmcmds */
union { /* probe function */
int (*elf_probe_func) __P((struct proc *,
struct exec_package *, void *, char *, vaddr_t *));
int (*ecoff_probe_func) __P((struct proc *,
struct exec_package *));
int (*mach_probe_func) __P((char **));
int (*elf_probe_func)(struct proc *,
struct exec_package *, void *, char *, vaddr_t *);
int (*ecoff_probe_func)(struct proc *, struct exec_package *);
int (*mach_probe_func)(char **);
} u;
const struct emul *es_emul; /* os emulation */
int es_prio; /* entry priority */
int es_arglen; /* Extra argument size in words */
/* Copy arguments on the new stack */
int (*es_copyargs) __P((struct proc *, struct exec_package *,
struct ps_strings *, char **, void *));
int (*es_copyargs)(struct proc *, struct exec_package *,
struct ps_strings *, char **, void *);
/* Set registers before execution */
void (*es_setregs) __P((struct lwp *, struct exec_package *,
u_long));
void (*es_setregs)(struct lwp *, struct exec_package *, u_long);
/* Dump core */
int (*es_coredump) __P((struct lwp *, struct vnode *,
struct ucred *));
int (*es_setup_stack) __P((struct proc *, struct exec_package *));
int (*es_coredump)(struct lwp *, struct vnode *, struct ucred *);
int (*es_setup_stack)(struct proc *, struct exec_package *);
};
#define EXECSW_PRIO_ANY 0x000 /* default, no preference */
@ -212,7 +209,7 @@ struct exec_package {
#define EXEC_HASES 0x0040 /* don't update exec switch pointer */
struct exec_vmcmd {
int (*ev_proc) __P((struct proc *, struct exec_vmcmd *));
int (*ev_proc)(struct proc *, struct exec_vmcmd *);
/* procedure to run for region of vmspace */
u_long ev_len; /* length of the segment to map */
u_long ev_addr; /* address in the vmspace to place it at */
@ -234,45 +231,43 @@ MALLOC_DECLARE(M_EXEC);
* funtions used either by execve() or the various CPU-dependent execve()
* hooks.
*/
void kill_vmcmd __P((struct exec_vmcmd **));
int exec_makecmds __P((struct proc *, struct exec_package *));
int exec_runcmds __P((struct proc *, struct exec_package *));
void vmcmdset_extend __P((struct exec_vmcmd_set *));
void kill_vmcmds __P((struct exec_vmcmd_set *));
int vmcmd_map_pagedvn __P((struct proc *, struct exec_vmcmd *));
int vmcmd_map_readvn __P((struct proc *, struct exec_vmcmd *));
int vmcmd_readvn __P((struct proc *, struct exec_vmcmd *));
int vmcmd_map_zero __P((struct proc *, struct exec_vmcmd *));
int copyargs __P((struct proc *, struct exec_package *,
struct ps_strings *, char **, void *));
void setregs __P((struct lwp *, struct exec_package *,
u_long));
void kill_vmcmd (struct exec_vmcmd **);
int exec_makecmds (struct proc *, struct exec_package *);
int exec_runcmds (struct proc *, struct exec_package *);
void vmcmdset_extend (struct exec_vmcmd_set *);
void kill_vmcmds (struct exec_vmcmd_set *);
int vmcmd_map_pagedvn (struct proc *, struct exec_vmcmd *);
int vmcmd_map_readvn (struct proc *, struct exec_vmcmd *);
int vmcmd_readvn (struct proc *, struct exec_vmcmd *);
int vmcmd_map_zero (struct proc *, struct exec_vmcmd *);
int copyargs (struct proc *, struct exec_package *,
struct ps_strings *, char **, void *);
void setregs (struct lwp *, struct exec_package *, u_long);
#ifdef VERIFIED_EXEC
int check_veriexec __P((struct proc *, struct vnode *,
struct exec_package *, int));
int check_exec __P((struct proc *, struct exec_package *,
int));
int check_veriexec (struct proc *, struct vnode *,
struct exec_package *, int);
int check_exec (struct proc *, struct exec_package *, int);
#else
int check_exec __P((struct proc *, struct exec_package *));
int check_exec (struct proc *, struct exec_package *);
#endif
int exec_init __P((int));
int exec_read_from __P((struct proc *, struct vnode *, u_long off,
void *, size_t));
int exec_setup_stack __P((struct proc *, struct exec_package *));
int exec_init (int);
int exec_read_from (struct proc *, struct vnode *, u_long off,
void *, size_t);
int exec_setup_stack (struct proc *, struct exec_package *);
#ifdef LKM
int emul_register __P((const struct emul *, int));
int emul_unregister __P((const char *));
const struct emul *emul_search __P((const char *));
int emul_register (const struct emul *, int);
int emul_unregister (const char *);
const struct emul *emul_search(const char *);
int exec_add __P((struct execsw *, const char *));
int exec_remove __P((const struct execsw *));
int exec_add (struct execsw *, const char *);
int exec_remove (const struct execsw *);
#endif /* LKM */
void new_vmcmd __P((struct exec_vmcmd_set *,
int (*) __P((struct proc *, struct exec_vmcmd *)),
u_long, u_long, struct vnode *, u_long, u_int, int));
void new_vmcmd(struct exec_vmcmd_set *,
int (*)(struct proc *, struct exec_vmcmd *),
u_long, u_long, struct vnode *, u_long, u_int, int);
#define NEW_VMCMD(evsp,proc,len,addr,vp,offset,prot) \
new_vmcmd(evsp,proc,len,addr,vp,offset,prot,0)
#define NEW_VMCMD2(evsp,proc,len,addr,vp,offset,prot,flags) \

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec_aout.h,v 1.33 2004/02/11 01:03:35 matt Exp $ */
/* $NetBSD: exec_aout.h,v 1.34 2005/02/03 19:20:01 perry Exp $ */
/*
* Copyright (c) 1993, 1994 Christopher G. Demetriou
@ -189,25 +189,25 @@ struct exec {
#ifdef _KERNEL
/* the "a.out" format's entry in the exec switch */
int exec_aout_makecmds __P((struct proc *, struct exec_package *));
int exec_aout_makecmds(struct proc *, struct exec_package *);
/* functions which prepare various a.out executable types */
/*
* MI portion
*/
int exec_aout_prep_zmagic __P((struct proc *, struct exec_package *));
int exec_aout_prep_nmagic __P((struct proc *, struct exec_package *));
int exec_aout_prep_omagic __P((struct proc *, struct exec_package *));
int exec_aout_prep_zmagic(struct proc *, struct exec_package *);
int exec_aout_prep_nmagic(struct proc *, struct exec_package *);
int exec_aout_prep_omagic(struct proc *, struct exec_package *);
/* For compatibility modules */
int exec_aout_prep_oldzmagic __P((struct proc *, struct exec_package *));
int exec_aout_prep_oldnmagic __P((struct proc *, struct exec_package *));
int exec_aout_prep_oldomagic __P((struct proc *, struct exec_package *));
int exec_aout_prep_oldzmagic(struct proc *, struct exec_package *);
int exec_aout_prep_oldnmagic(struct proc *, struct exec_package *);
int exec_aout_prep_oldomagic(struct proc *, struct exec_package *);
/*
* MD portion
*/
int cpu_exec_aout_makecmds __P((struct proc *, struct exec_package *));
int cpu_exec_aout_makecmds(struct proc *, struct exec_package *);
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec_coff.h,v 1.5 2003/08/08 18:54:16 christos Exp $ */
/* $NetBSD: exec_coff.h,v 1.6 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (C) 2000 SAITOH Masanobu. All rights reserved.
@ -141,16 +141,16 @@ struct coff_exechdr {
COFF_SEGMENT_ALIGNMENT(fp, ap))))
#ifdef _KERNEL
int exec_coff_makecmds __P((struct proc *, struct exec_package *));
int exec_coff_makecmds(struct proc *, struct exec_package *);
int exec_coff_prep_omagic __P((struct proc *, struct exec_package *,
struct coff_filehdr *,
struct coff_aouthdr *));
int exec_coff_prep_nmagic __P((struct proc *, struct exec_package *,
struct coff_filehdr *,
struct coff_aouthdr *));
int exec_coff_prep_zmagic __P((struct proc *, struct exec_package *,
struct coff_filehdr *,
struct coff_aouthdr *));
int exec_coff_prep_omagic(struct proc *, struct exec_package *,
struct coff_filehdr *,
struct coff_aouthdr *);
int exec_coff_prep_nmagic(struct proc *, struct exec_package *,
struct coff_filehdr *,
struct coff_aouthdr *);
int exec_coff_prep_zmagic(struct proc *, struct exec_package *,
struct coff_filehdr *,
struct coff_aouthdr *);
#endif /* _KERNEL */
#endif /* !_SYS_EXEC_COFF_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec_ecoff.h,v 1.16 2003/08/08 18:54:16 christos Exp $ */
/* $NetBSD: exec_ecoff.h,v 1.17 2005/02/03 19:20:01 perry Exp $ */
/*
* Copyright (c) 1994 Adam Glass
@ -103,17 +103,16 @@ struct ecoff_exechdr {
ECOFF_SEGMENT_ALIGNMENT(ep))))
#ifdef _KERNEL
int exec_ecoff_makecmds __P((struct proc *, struct exec_package *));
int cpu_exec_ecoff_probe __P((struct proc *, struct exec_package *));
void cpu_exec_ecoff_setregs __P((struct lwp *, struct exec_package *,
u_long));
int exec_ecoff_makecmds(struct proc *, struct exec_package *);
int cpu_exec_ecoff_probe(struct proc *, struct exec_package *);
void cpu_exec_ecoff_setregs(struct lwp *, struct exec_package *, u_long);
int exec_ecoff_prep_omagic __P((struct proc *, struct exec_package *,
struct ecoff_exechdr *, struct vnode *));
int exec_ecoff_prep_nmagic __P((struct proc *, struct exec_package *,
struct ecoff_exechdr *, struct vnode *));
int exec_ecoff_prep_zmagic __P((struct proc *, struct exec_package *,
struct ecoff_exechdr *, struct vnode *));
int exec_ecoff_prep_omagic(struct proc *, struct exec_package *,
struct ecoff_exechdr *, struct vnode *);
int exec_ecoff_prep_nmagic(struct proc *, struct exec_package *,
struct ecoff_exechdr *, struct vnode *);
int exec_ecoff_prep_zmagic(struct proc *, struct exec_package *,
struct ecoff_exechdr *, struct vnode *);
#endif /* _KERNEL */
#endif /* !_SYS_EXEC_ECOFF_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec_elf.h,v 1.79 2004/12/28 00:07:31 thorpej Exp $ */
/* $NetBSD: exec_elf.h,v 1.80 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@ -835,9 +835,9 @@ int elf64_read_from(struct proc *, struct vnode *, u_long, caddr_t, int);
int elf64_copyargs(struct proc *, struct exec_package *,
struct ps_strings *, char **, void *);
int coredump_elf64 __P((struct lwp *, struct vnode *, struct ucred *));
int coredump_writenote_elf64 __P((struct proc *, struct vnode *,
struct ucred *, off_t, Elf64_Nhdr *, const char *, void *));
int coredump_elf64(struct lwp *, struct vnode *, struct ucred *);
int coredump_writenote_elf64(struct proc *, struct vnode *,
struct ucred *, off_t, Elf64_Nhdr *, const char *, void *);
int elf64_check_header(Elf64_Ehdr *, int);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec_macho.h,v 1.14 2003/10/19 07:52:22 manu Exp $ */
/* $NetBSD: exec_macho.h,v 1.15 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -257,9 +257,9 @@ struct exec_macho_emul_arg {
struct exec_package;
struct ps_strings;
u_long exec_macho_thread_entry(struct exec_macho_thread_command *);
int exec_macho_makecmds __P((struct proc *, struct exec_package *));
int exec_macho_copyargs __P((struct proc *, struct exec_package *,
struct ps_strings *, char **, void *));
int exec_macho_makecmds(struct proc *, struct exec_package *);
int exec_macho_copyargs(struct proc *, struct exec_package *,
struct ps_strings *, char **, void *);
#endif /* _KERNEL */
#endif /* !_SYS_EXEC_MACHO_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec_script.h,v 1.10 2003/06/29 22:32:24 fvdl Exp $ */
/* $NetBSD: exec_script.h,v 1.11 2005/02/03 19:20:01 perry Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou
@ -42,7 +42,7 @@
#ifdef _KERNEL
/* the shell script handler's entry in the exec switch */
int exec_script_makecmds __P((struct proc *, struct exec_package *));
int exec_script_makecmds(struct proc *, struct exec_package *);
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: extent.h,v 1.11 2003/02/01 06:23:50 thorpej Exp $ */
/* $NetBSD: extent.h,v 1.12 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@ -104,14 +104,14 @@ struct extent_fixed {
struct malloc_type;
struct extent *extent_create __P((const char *, u_long, u_long,
struct malloc_type *, caddr_t, size_t, int));
void extent_destroy __P((struct extent *));
int extent_alloc_subregion1 __P((struct extent *, u_long, u_long,
u_long, u_long, u_long, u_long, int, u_long *));
int extent_alloc_region __P((struct extent *, u_long, u_long, int));
int extent_free __P((struct extent *, u_long, u_long, int));
void extent_print __P((struct extent *));
struct extent *extent_create(const char *, u_long, u_long,
struct malloc_type *, caddr_t, size_t, int);
void extent_destroy(struct extent *);
int extent_alloc_subregion1(struct extent *, u_long, u_long,
u_long, u_long, u_long, u_long, int, u_long *);
int extent_alloc_region(struct extent *, u_long, u_long, int);
int extent_free(struct extent *, u_long, u_long, int);
void extent_print(struct extent *);
/* Simple case of extent_alloc_subregion() */
#define extent_alloc(_ex, _size, _alignment, _boundary, _flags, _result) \

View File

@ -1,4 +1,4 @@
/* $NetBSD: fcntl.h,v 1.28 2004/01/05 00:35:53 christos Exp $ */
/* $NetBSD: fcntl.h,v 1.29 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 1983, 1990, 1993
@ -260,11 +260,11 @@ struct flock {
#include <sys/cdefs.h>
__BEGIN_DECLS
int open __P((const char *, int, ...));
int creat __P((const char *, mode_t));
int fcntl __P((int, int, ...));
int open(const char *, int, ...);
int creat(const char *, mode_t);
int fcntl(int, int, ...);
#if defined(_NETBSD_SOURCE)
int flock __P((int, int));
int flock(int, int);
#endif /* _NETBSD_SOURCE */
__END_DECLS
#endif /* !_KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: float_ieee754.h,v 1.6 2003/10/26 16:44:20 kleink Exp $ */
/* $NetBSD: float_ieee754.h,v 1.7 2005/02/03 19:20:01 perry Exp $ */
/*
* Copyright (c) 1992, 1993
@ -44,7 +44,7 @@
#ifndef FLT_ROUNDS
__BEGIN_DECLS
extern int __flt_rounds __P((void));
extern int __flt_rounds(void);
__END_DECLS
#define FLT_ROUNDS __flt_rounds()
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: ioctl.h,v 1.32 2003/08/07 16:34:05 agc Exp $ */
/* $NetBSD: ioctl.h,v 1.33 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 1982, 1986, 1990, 1993, 1994
@ -88,7 +88,7 @@ struct ioctl_pt {
#include <sys/cdefs.h>
__BEGIN_DECLS
int ioctl __P((int, unsigned long, ...));
int ioctl(int, unsigned long, ...);
__END_DECLS
#endif /* !_KERNEL */
#endif /* !_SYS_IOCTL_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ipc.h,v 1.26 2003/08/07 16:34:05 agc Exp $ */
/* $NetBSD: ipc.h,v 1.27 2005/02/03 19:20:01 perry Exp $ */
/*
* Copyright (c) 1990, 1993
@ -163,17 +163,17 @@ struct ipc_perm14 {
#define IPCID_TO_IX(id) ((id) & 0xffff)
#define IPCID_TO_SEQ(id) (((id) >> 16) & 0xffff)
int ipcperm __P((struct ucred *, struct ipc_perm *, int));
int ipcperm(struct ucred *, struct ipc_perm *, int);
void ipc_perm14_to_native __P((struct ipc_perm14 *, struct ipc_perm *));
void native_to_ipc_perm14 __P((struct ipc_perm *, struct ipc_perm14 *));
void ipc_perm14_to_native(struct ipc_perm14 *, struct ipc_perm *);
void native_to_ipc_perm14(struct ipc_perm *, struct ipc_perm14 *);
#endif /* _KERNEL */
#ifndef _KERNEL
#include <sys/cdefs.h>
__BEGIN_DECLS
key_t ftok __P((const char *, int));
key_t ftok(const char *, int);
__END_DECLS
#endif
#endif /* !_SYS_IPC_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: kgdb.h,v 1.8 2003/08/07 16:34:06 agc Exp $ */
/* $NetBSD: kgdb.h,v 1.9 2005/02/03 19:20:01 perry Exp $ */
/*
* Copyright (c) 1992, 1993
@ -84,18 +84,18 @@ extern int kgdb_dev, kgdb_rate, kgdb_active;
extern int kgdb_debug_init, kgdb_debug_panic;
extern label_t *kgdb_recover;
void kgdb_attach __P((int (*)(void *), void (*)(void *, int), void *));
void kgdb_connect __P((int));
void kgdb_panic __P((void));
int kgdb_trap __P((int, db_regs_t *));
void kgdb_attach(int (*)(void *), void (*)(void *, int), void *);
void kgdb_connect(int);
void kgdb_panic(void);
int kgdb_trap(int, db_regs_t *);
/*
* Machine dependent functions needed by kgdb_stub.c
*/
int kgdb_signal __P((int));
int kgdb_acc __P((vaddr_t, size_t));
void kgdb_getregs __P((db_regs_t *, kgdb_reg_t *));
void kgdb_setregs __P((db_regs_t *, kgdb_reg_t *));
int kgdb_signal(int);
int kgdb_acc(vaddr_t, size_t);
void kgdb_getregs(db_regs_t *, kgdb_reg_t *);
void kgdb_setregs(db_regs_t *, kgdb_reg_t *);
#endif /* _KERNEL */
#endif /* !_SYS_KGDB_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: kprintf.h,v 1.4 2003/08/07 16:34:06 agc Exp $ */
/* $NetBSD: kprintf.h,v 1.5 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 1986, 1988, 1991, 1993
@ -85,7 +85,7 @@ do { \
/*
* NOTE: the kprintf mutex must be held when these functions are called!
*/
int kprintf __P((const char *, int, void *, char *, _BSD_VA_LIST_));
void klogpri __P((int));
int kprintf(const char *, int, void *, char *, _BSD_VA_LIST_);
void klogpri(int);
#endif /* _SYS_KPRINTF_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: lkm.h,v 1.36 2004/11/13 10:17:24 christos Exp $ */
/* $NetBSD: lkm.h,v 1.37 2005/02/03 19:20:01 perry Exp $ */
/*
* Header file used by loadable kernel modules and loadable kernel module
@ -182,7 +182,7 @@ struct lkm_table {
char refcnt; /* Reference count */
char forced; /* Forced load, skipping compatibility check */
int (*entry) __P((struct lkm_table *, int, int));/* entry function */
int (*entry)(struct lkm_table *, int, int);/* entry function */
union lkm_generic private; /* module private data */
u_long size;
@ -295,9 +295,9 @@ struct lkm_table {
_LKM_E_DEBUG _LKM_E_DIAGNOSTIC _LKM_E_LOCKDEBUG \
_LKM_E_MULTIPROCESSOR _LKM_E_MALLOCLOG
int lkm_nofunc __P((struct lkm_table *, int));
int lkmexists __P((struct lkm_table *));
int lkmdispatch __P((struct lkm_table *, int));
int lkm_nofunc(struct lkm_table *, int);
int lkmexists(struct lkm_table *);
int lkmdispatch(struct lkm_table *, int);
/*
* LKM_DISPATCH -- body function for use in module entry point function;

View File

@ -1,4 +1,4 @@
/* $NetBSD: md4.h,v 1.2 2003/12/04 12:42:54 keihan Exp $ */
/* $NetBSD: md4.h,v 1.3 2005/02/03 19:20:01 perry Exp $ */
/*
* This file is derived from the RSA Data Security, Inc. MD4 Message-Digest
@ -43,13 +43,13 @@ typedef struct MD4Context {
} MD4_CTX;
__BEGIN_DECLS
void MD4Init __P((MD4_CTX *));
void MD4Update __P((MD4_CTX *, const unsigned char *, unsigned int));
void MD4Final __P((unsigned char[16], MD4_CTX *));
void MD4Init(MD4_CTX *);
void MD4Update(MD4_CTX *, const unsigned char *, unsigned int);
void MD4Final(unsigned char[16], MD4_CTX *);
#ifndef _KERNEL
char *MD4End __P((MD4_CTX *, char *));
char *MD4File __P((const char *, char *));
char *MD4Data __P((const unsigned char *, unsigned int, char *));
char *MD4End(MD4_CTX *, char *);
char *MD4File(const char *, char *);
char *MD4Data(const unsigned char *, unsigned int, char *);
#endif /* _KERNEL */
__END_DECLS

View File

@ -1,4 +1,4 @@
/* $NetBSD: md5.h,v 1.3 2003/12/04 12:42:54 keihan Exp $ */
/* $NetBSD: md5.h,v 1.4 2005/02/03 19:20:01 perry Exp $ */
/*
* This file is derived from the RSA Data Security, Inc. MD5 Message-Digest
@ -42,13 +42,13 @@ typedef struct MD5Context {
} MD5_CTX;
__BEGIN_DECLS
void MD5Init __P((MD5_CTX *));
void MD5Update __P((MD5_CTX *, const unsigned char *, unsigned int));
void MD5Final __P((unsigned char[16], MD5_CTX *));
void MD5Init(MD5_CTX *);
void MD5Update(MD5_CTX *, const unsigned char *, unsigned int);
void MD5Final(unsigned char[16], MD5_CTX *);
#ifndef _KERNEL
char *MD5End __P((MD5_CTX *, char *));
char *MD5File __P((const char *, char *));
char *MD5Data __P((const unsigned char *, unsigned int, char *));
char *MD5End(MD5_CTX *, char *);
char *MD5File(const char *, char *);
char *MD5Data(const unsigned char *, unsigned int, char *);
#endif /* _KERNEL */
__END_DECLS

View File

@ -1,4 +1,4 @@
/* $NetBSD: mman.h,v 1.34 2003/10/07 00:17:09 thorpej Exp $ */
/* $NetBSD: mman.h,v 1.35 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 1982, 1986, 1993
@ -155,23 +155,23 @@ typedef __off_t off_t; /* file offset */
#include <sys/cdefs.h>
__BEGIN_DECLS
void *mmap __P((void *, size_t, int, int, int, off_t));
int munmap __P((void *, size_t));
int mprotect __P((void *, size_t, int));
void *mmap(void *, size_t, int, int, int, off_t);
int munmap(void *, size_t);
int mprotect(void *, size_t, int);
#ifdef __LIBC12_SOURCE__
int msync __P((void *, size_t));
int __msync13 __P((void *, size_t, int));
int msync(void *, size_t);
int __msync13(void *, size_t, int);
#else
int msync __P((void *, size_t, int)) __RENAME(__msync13);
int msync(void *, size_t, int) __RENAME(__msync13);
#endif
int mlock __P((const void *, size_t));
int munlock __P((const void *, size_t));
int mlockall __P((int));
int munlockall __P((void));
int mlock(const void *, size_t);
int munlock(const void *, size_t);
int mlockall(int);
int munlockall(void);
#if defined(_NETBSD_SOURCE)
int madvise __P((void *, size_t, int));
int mincore __P((void *, size_t, char *));
int minherit __P((void *, size_t, int));
int madvise(void *, size_t, int);
int mincore(void *, size_t, char *);
int minherit(void *, size_t, int);
#endif
__END_DECLS

View File

@ -1,4 +1,4 @@
/* $NetBSD: mount.h,v 1.126 2005/01/02 16:08:30 thorpej Exp $ */
/* $NetBSD: mount.h,v 1.127 2005/02/03 19:20:01 perry Exp $ */
/*
* Copyright (c) 1989, 1991, 1993
@ -223,33 +223,33 @@ struct vnodeopv_desc;
struct vfsops {
const char *vfs_name;
int (*vfs_mount) __P((struct mount *, const char *, void *,
struct nameidata *, struct proc *));
int (*vfs_start) __P((struct mount *, int, struct proc *));
int (*vfs_unmount) __P((struct mount *, int, struct proc *));
int (*vfs_root) __P((struct mount *, struct vnode **));
int (*vfs_quotactl) __P((struct mount *, int, uid_t, void *,
struct proc *));
int (*vfs_statvfs) __P((struct mount *, struct statvfs *,
struct proc *));
int (*vfs_sync) __P((struct mount *, int, struct ucred *,
struct proc *));
int (*vfs_vget) __P((struct mount *, ino_t, struct vnode **));
int (*vfs_fhtovp) __P((struct mount *, struct fid *,
struct vnode **));
int (*vfs_vptofh) __P((struct vnode *, struct fid *));
void (*vfs_init) __P((void));
void (*vfs_reinit) __P((void));
void (*vfs_done) __P((void));
int (*vfs_mount) (struct mount *, const char *, void *,
struct nameidata *, struct proc *);
int (*vfs_start) (struct mount *, int, struct proc *);
int (*vfs_unmount) (struct mount *, int, struct proc *);
int (*vfs_root) (struct mount *, struct vnode **);
int (*vfs_quotactl) (struct mount *, int, uid_t, void *,
struct proc *);
int (*vfs_statvfs) (struct mount *, struct statvfs *,
struct proc *);
int (*vfs_sync) (struct mount *, int, struct ucred *,
struct proc *);
int (*vfs_vget) (struct mount *, ino_t, struct vnode **);
int (*vfs_fhtovp) (struct mount *, struct fid *,
struct vnode **);
int (*vfs_vptofh) (struct vnode *, struct fid *);
void (*vfs_init) (void);
void (*vfs_reinit) (void);
void (*vfs_done) (void);
int *vfs_wassysctl; /* @@@ no longer useful */
int (*vfs_mountroot) __P((void));
int (*vfs_checkexp) __P((struct mount *, struct mbuf *, int *,
struct ucred **));
int (*vfs_snapshot) __P((struct mount *, struct vnode *,
struct timespec *));
int (*vfs_extattrctl) __P((struct mount *, int,
int (*vfs_mountroot)(void);
int (*vfs_checkexp) (struct mount *, struct mbuf *, int *,
struct ucred **);
int (*vfs_snapshot) (struct mount *, struct vnode *,
struct timespec *);
int (*vfs_extattrctl) (struct mount *, int,
struct vnode *, int, const char *,
struct proc *));
struct proc *);
const struct vnodeopv_desc * const *vfs_opv_descs;
int vfs_refcount;
LIST_ENTRY(vfsops) vfs_list;
@ -328,28 +328,28 @@ MALLOC_DECLARE(M_MOUNT);
/*
* exported VFS interface (see vfssubr(9))
*/
struct mount *vfs_getvfs __P((fsid_t *)); /* return vfs given fsid */
struct mount *vfs_getvfs(fsid_t *); /* return vfs given fsid */
int vfs_export /* process mount export info */
__P((struct mount *, struct netexport *, struct export_args *));
(struct mount *, struct netexport *, struct export_args *);
#define vfs_showexport(a, b, c) (void)memset((b), 0, sizeof(*(b)))
struct netcred *vfs_export_lookup /* lookup host in fs export list */
__P((struct mount *, struct netexport *, struct mbuf *));
(struct mount *, struct netexport *, struct mbuf *);
int vfs_setpublicfs /* set publicly exported fs */
__P((struct mount *, struct netexport *, struct export_args *));
int vfs_mountedon __P((struct vnode *));/* is a vfs mounted on vp */
int vfs_mountroot __P((void));
void vfs_shutdown __P((void)); /* unmount and sync file systems */
void vfs_unmountall __P((struct proc *)); /* unmount file systems */
int vfs_busy __P((struct mount *, int, struct simplelock *));
int vfs_rootmountalloc __P((char *, char *, struct mount **));
void vfs_unbusy __P((struct mount *));
int vfs_attach __P((struct vfsops *));
int vfs_detach __P((struct vfsops *));
void vfs_reinit __P((void));
struct vfsops *vfs_getopsbyname __P((const char *));
(struct mount *, struct netexport *, struct export_args *);
int vfs_mountedon(struct vnode *);/* is a vfs mounted on vp */
int vfs_mountroot(void);
void vfs_shutdown(void); /* unmount and sync file systems */
void vfs_unmountall(struct proc *); /* unmount file systems */
int vfs_busy(struct mount *, int, struct simplelock *);
int vfs_rootmountalloc(char *, char *, struct mount **);
void vfs_unbusy(struct mount *);
int vfs_attach(struct vfsops *);
int vfs_detach(struct vfsops *);
void vfs_reinit(void);
struct vfsops *vfs_getopsbyname(const char *);
int vfs_stdextattrctl __P((struct mount *, int, struct vnode *,
int, const char *, struct proc *));
int vfs_stdextattrctl(struct mount *, int, struct vnode *,
int, const char *, struct proc *);
extern CIRCLEQ_HEAD(mntlist, mount) mountlist; /* mounted filesystem list */
extern struct vfsops *vfssw[]; /* filesystem type table */
@ -357,13 +357,13 @@ extern int nvfssw;
extern struct nfs_public nfs_pub;
extern struct simplelock mountlist_slock;
extern struct simplelock spechash_slock;
long makefstype __P((const char *));
int dounmount __P((struct mount *, int, struct proc *));
void vfsinit __P((void));
void vfs_opv_init __P((const struct vnodeopv_desc * const *));
void vfs_opv_free __P((const struct vnodeopv_desc * const *));
long makefstype(const char *);
int dounmount(struct mount *, int, struct proc *);
void vfsinit(void);
void vfs_opv_init(const struct vnodeopv_desc * const *);
void vfs_opv_free(const struct vnodeopv_desc * const *);
#ifdef DEBUG
void vfs_bufstats __P((void));
void vfs_bufstats(void);
#endif
LIST_HEAD(vfs_list_head, vfsops);
@ -375,19 +375,19 @@ extern struct vfs_list_head vfs_list;
__BEGIN_DECLS
#ifdef __LIBC12_SOURCE__
int fstatfs __P((int, struct statfs12 *));
int getfsstat __P((struct statfs12 *, long, int));
int statfs __P((const char *, struct statfs12 *));
int getmntinfo __P((struct statfs12 **, int));
int fstatfs(int, struct statfs12 *);
int getfsstat(struct statfs12 *, long, int);
int statfs(const char *, struct statfs12 *);
int getmntinfo(struct statfs12 **, int);
#endif
int getfh __P((const char *, fhandle_t *));
int mount __P((const char *, const char *, int, void *));
int unmount __P((const char *, int));
int getfh(const char *, fhandle_t *);
int mount(const char *, const char *, int, void *);
int unmount(const char *, int);
#if defined(_NETBSD_SOURCE)
int fhopen __P((const fhandle_t *, int));
int fhstat __P((const fhandle_t *, struct stat *));
int fhopen(const fhandle_t *, int);
int fhstat(const fhandle_t *, struct stat *);
#ifdef __LIBC12_SOURCE__
int fhstatfs __P((const fhandle_t *, struct statfs12 *));
int fhstatfs(const fhandle_t *, struct statfs12 *);
#endif
#endif /* _NETBSD_SOURCE */
__END_DECLS

View File

@ -1,4 +1,4 @@
/* $NetBSD: msg.h,v 1.15 2004/10/06 15:33:49 jdolecek Exp $ */
/* $NetBSD: msg.h,v 1.16 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -207,16 +207,16 @@ extern struct msqid_ds *msqids; /* MSGMNI msqid_ds struct's */
#include <sys/cdefs.h>
__BEGIN_DECLS
int msgctl __P((int, int, struct msqid_ds *)) __RENAME(__msgctl13);
int msgget __P((key_t, int));
int msgsnd __P((int, const void *, size_t, int));
ssize_t msgrcv __P((int, void *, size_t, long, int));
int msgctl(int, int, struct msqid_ds *) __RENAME(__msgctl13);
int msgget(key_t, int);
int msgsnd(int, const void *, size_t, int);
ssize_t msgrcv(int, void *, size_t, long, int);
__END_DECLS
#else
struct proc;
void msginit __P((void));
int msgctl1 __P((struct proc *, int, int, struct msqid_ds *));
void msginit(void);
int msgctl1(struct proc *, int, int, struct msqid_ds *);
#endif /* !_KERNEL */
#endif /* !_SYS_MSG_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: msgbuf.h,v 1.11 2003/08/07 16:34:09 agc Exp $ */
/* $NetBSD: msgbuf.h,v 1.12 2005/02/03 19:20:01 perry Exp $ */
/*
* Copyright (c) 1981, 1984, 1993
@ -48,7 +48,7 @@ extern int msgbufmapped; /* is the message buffer mapped */
extern int msgbufenabled; /* is logging to the buffer enabled */
extern struct kern_msgbuf *msgbufp; /* the mapped buffer, itself. */
void initmsgbuf __P((caddr_t buf, size_t bufsize));
void initmsgbuf(caddr_t buf, size_t bufsize);
#endif
#endif /* !_SYS_MSGBUF_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: namei.h,v 1.37 2004/06/27 08:50:44 yamt Exp $ */
/* $NetBSD: namei.h,v 1.38 2005/02/03 19:20:01 perry Exp $ */
/*
* Copyright (c) 1985, 1989, 1991, 1993
@ -184,23 +184,22 @@ MALLOC_DECLARE(M_NAMEI);
#define PNBUF_GET() pool_cache_get(&pnbuf_cache, PR_WAITOK)
#define PNBUF_PUT(pnb) pool_cache_put(&pnbuf_cache, (pnb))
int namei __P((struct nameidata *));
uint32_t namei_hash __P((const char *, const char **));
int lookup __P((struct nameidata *));
int relookup __P((struct vnode *, struct vnode **, struct componentname *));
void cache_purge1 __P((struct vnode *, const struct componentname *, int));
int namei(struct nameidata *);
uint32_t namei_hash(const char *, const char **);
int lookup(struct nameidata *);
int relookup(struct vnode *, struct vnode **, struct componentname *);
void cache_purge1(struct vnode *, const struct componentname *, int);
#define PURGE_PARENTS 1
#define PURGE_CHILDREN 2
#define cache_purge(vp) cache_purge1((vp), NULL, PURGE_PARENTS|PURGE_CHILDREN)
int cache_lookup __P((struct vnode *, struct vnode **, struct componentname *));
int cache_lookup_raw __P((struct vnode *, struct vnode **,
struct componentname *));
int cache_revlookup __P((struct vnode *, struct vnode **, char **, char *));
void cache_enter __P((struct vnode *, struct vnode *, struct componentname *));
void nchinit __P((void));
void nchreinit __P((void));
int cache_lookup(struct vnode *, struct vnode **, struct componentname *);
int cache_lookup_raw(struct vnode *, struct vnode **, struct componentname *);
int cache_revlookup(struct vnode *, struct vnode **, char **, char *);
void cache_enter(struct vnode *, struct vnode *, struct componentname *);
void nchinit(void);
void nchreinit(void);
struct mount;
void cache_purgevfs __P((struct mount *));
void cache_purgevfs(struct mount *);
void namecache_print(struct vnode *, void (*)(const char *, ...));
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: pipe.h,v 1.14 2004/04/25 16:42:43 simonb Exp $ */
/* $NetBSD: pipe.h,v 1.15 2005/02/03 19:20:01 perry Exp $ */
/*
* Copyright (c) 1996 John S. Dyson
@ -134,7 +134,7 @@ struct pipe {
}
#ifdef _KERNEL
int sysctl_dopipe __P((int *, u_int, void *, size_t *, void *, size_t));
int sysctl_dopipe(int *, u_int, void *, size_t *, void *, size_t);
#define PIPE_LOCK(pipe) simple_lock(&(pipe)->pipe_slock);
#define PIPE_UNLOCK(pipe) simple_unlock(&(pipe)->pipe_slock);

View File

@ -1,4 +1,4 @@
/* $NetBSD: poll.h,v 1.7 2003/04/28 23:16:29 bjh21 Exp $ */
/* $NetBSD: poll.h,v 1.8 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -79,7 +79,7 @@ struct pollfd {
#include <sys/cdefs.h>
__BEGIN_DECLS
int poll __P((struct pollfd *, nfds_t, int));
int poll(struct pollfd *, nfds_t, int);
__END_DECLS
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: proc.h,v 1.195 2004/10/01 16:30:52 yamt Exp $ */
/* $NetBSD: proc.h,v 1.196 2005/02/03 19:20:01 perry Exp $ */
/*-
* Copyright (c) 1986, 1989, 1991, 1993
@ -100,34 +100,32 @@ struct emul {
const struct sysent *e_sysent; /* System call array */
const char * const *e_syscallnames; /* System call name array */
/* Signal sending function */
void (*e_sendsig) __P((const struct ksiginfo *,
const sigset_t *));
void (*e_trapsignal) __P((struct lwp *,
const struct ksiginfo *));
int (*e_tracesig) __P((struct proc *, int));
void (*e_sendsig)(const struct ksiginfo *,
const sigset_t *);
void (*e_trapsignal)(struct lwp *, const struct ksiginfo *);
int (*e_tracesig)(struct proc *, int);
char *e_sigcode; /* Start of sigcode */
char *e_esigcode; /* End of sigcode */
/* Set registers before execution */
struct uvm_object **e_sigobject;/* shared sigcode object */
void (*e_setregs) __P((struct lwp *, struct exec_package *,
u_long));
void (*e_setregs)(struct lwp *, struct exec_package *,
u_long);
/* Per-process hooks */
void (*e_proc_exec) __P((struct proc *,
struct exec_package *));
void (*e_proc_fork) __P((struct proc *, struct proc *, int));
void (*e_proc_exit) __P((struct proc *));
void (*e_lwp_fork) __P((struct lwp *, struct lwp *));
void (*e_lwp_exit) __P((struct lwp *));
void (*e_proc_exec)(struct proc *, struct exec_package *);
void (*e_proc_fork)(struct proc *, struct proc *, int);
void (*e_proc_exit)(struct proc *);
void (*e_lwp_fork)(struct lwp *, struct lwp *);
void (*e_lwp_exit)(struct lwp *);
#ifdef __HAVE_SYSCALL_INTERN
void (*e_syscall_intern) __P((struct proc *));
void (*e_syscall_intern)(struct proc *);
#else
void (*e_syscall) __P((void));
void (*e_syscall)(void);
#endif
/* Emulation specific sysctl data */
struct sysctlnode *e_sysctlovly;
int (*e_fault) __P((struct proc *, vaddr_t, int, int));
int (*e_fault)(struct proc *, vaddr_t, int, int);
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: ptrace.h,v 1.32 2003/08/07 16:34:11 agc Exp $ */
/* $NetBSD: ptrace.h,v 1.33 2005/02/03 19:20:02 perry Exp $ */
/*-
* Copyright (c) 1984, 1993
@ -86,29 +86,29 @@ struct reg;
struct fpreg;
#endif
int process_doregs __P((struct proc *, struct lwp *, struct uio *));
int process_validregs __P((struct proc *));
int process_doregs(struct proc *, struct lwp *, struct uio *);
int process_validregs(struct proc *);
int process_dofpregs __P((struct proc *, struct lwp *, struct uio *));
int process_validfpregs __P((struct proc *));
int process_dofpregs(struct proc *, struct lwp *, struct uio *);
int process_validfpregs(struct proc *);
int process_domem __P((struct proc *, struct proc *, struct uio *));
int process_checkioperm __P((struct proc *, struct proc *));
int process_domem(struct proc *, struct proc *, struct uio *);
int process_checkioperm(struct proc *, struct proc *);
void proc_reparent __P((struct proc *, struct proc *));
void proc_reparent(struct proc *, struct proc *);
#ifdef PT_GETFPREGS
int process_read_fpregs __P((struct lwp *, struct fpreg *));
int process_read_fpregs(struct lwp *, struct fpreg *);
#endif
#ifdef PT_GETREGS
int process_read_regs __P((struct lwp *, struct reg *));
int process_read_regs(struct lwp *, struct reg *);
#endif
int process_set_pc __P((struct lwp *, caddr_t));
int process_sstep __P((struct lwp *, int));
int process_set_pc(struct lwp *, caddr_t);
int process_sstep(struct lwp *, int);
#ifdef PT_SETFPREGS
int process_write_fpregs __P((struct lwp *, struct fpreg *));
int process_write_fpregs(struct lwp *, struct fpreg *);
#endif
#ifdef PT_SETREGS
int process_write_regs __P((struct lwp *, struct reg *));
int process_write_regs(struct lwp *, struct reg *);
#endif
#ifdef __HAVE_PROCFS_MACHDEP
@ -125,7 +125,7 @@ int ptrace_machdep_dorequest(struct proc *, struct lwp *, int,
#include <sys/cdefs.h>
__BEGIN_DECLS
int ptrace __P((int _request, pid_t _pid, caddr_t _addr, int _data));
int ptrace(int _request, pid_t _pid, caddr_t _addr, int _data);
__END_DECLS
#endif /* !_KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: reboot.h,v 1.21 2003/08/07 16:34:12 agc Exp $ */
/* $NetBSD: reboot.h,v 1.22 2005/02/03 19:20:02 perry Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1993, 1994
@ -104,7 +104,7 @@
__BEGIN_DECLS
void cpu_reboot __P((int, char *))
void cpu_reboot(int, char *)
__attribute__((__noreturn__));
__END_DECLS

View File

@ -1,4 +1,4 @@
/* $NetBSD: resourcevar.h,v 1.23 2004/05/06 22:20:30 pk Exp $ */
/* $NetBSD: resourcevar.h,v 1.24 2005/02/03 19:20:02 perry Exp $ */
/*
* Copyright (c) 1991, 1993
@ -103,15 +103,15 @@ int chgproccnt(uid_t, int);
int chgsbsize(uid_t, u_long *, u_long, rlim_t);
extern char defcorename[];
void addupc_intr __P((struct proc *, u_long));
void addupc_task __P((struct proc *, u_long, u_int));
void calcru __P((struct proc *, struct timeval *, struct timeval *,
struct timeval *));
struct plimit *limcopy __P((struct plimit *));
void limfree __P((struct plimit *));
void ruadd __P((struct rusage *, struct rusage *));
struct pstats *pstatscopy __P((struct pstats *));
void pstatsfree __P((struct pstats *));
void addupc_intr(struct proc *, u_long);
void addupc_task(struct proc *, u_long, u_int);
void calcru(struct proc *, struct timeval *, struct timeval *,
struct timeval *);
struct plimit *limcopy(struct plimit *);
void limfree(struct plimit *);
void ruadd(struct rusage *, struct rusage *);
struct pstats *pstatscopy(struct pstats *);
void pstatsfree(struct pstats *);
extern rlim_t maxdmap;
extern rlim_t maxsmap;
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: rnd.h,v 1.16 2002/11/10 03:28:59 thorpej Exp $ */
/* $NetBSD: rnd.h,v 1.17 2005/02/03 19:20:02 perry Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -143,26 +143,25 @@ struct __rndsource_element {
#define RND_ENABLED(rp) \
(((rp)->data.flags & RND_FLAG_NO_COLLECT) == 0)
void rndpool_init __P((rndpool_t *));
void rndpool_init_global __P((void));
u_int32_t rndpool_get_entropy_count __P((rndpool_t *));
void rndpool_get_stats __P((rndpool_t *, void *, int));
void rndpool_increment_entropy_count __P((rndpool_t *, u_int32_t));
u_int32_t *rndpool_get_pool __P((rndpool_t *));
u_int32_t rndpool_get_poolsize __P((void));
void rndpool_add_data __P((rndpool_t *, void *, u_int32_t,
u_int32_t));
u_int32_t rndpool_extract_data __P((rndpool_t *, void *, u_int32_t,
u_int32_t));
void rndpool_init(rndpool_t *);
void rndpool_init_global(void);
u_int32_t rndpool_get_entropy_count(rndpool_t *);
void rndpool_get_stats(rndpool_t *, void *, int);
void rndpool_increment_entropy_count(rndpool_t *, u_int32_t);
u_int32_t *rndpool_get_pool(rndpool_t *);
u_int32_t rndpool_get_poolsize(void);
void rndpool_add_data(rndpool_t *, void *, u_int32_t, u_int32_t);
u_int32_t rndpool_extract_data(rndpool_t *, void *, u_int32_t,
u_int32_t);
void rnd_init __P((void));
void rnd_add_uint32 __P((rndsource_element_t *, u_int32_t));
void rnd_add_data __P((rndsource_element_t *, void *, u_int32_t,
u_int32_t));
u_int32_t rnd_extract_data __P((void *, u_int32_t, u_int32_t));
void rnd_attach_source __P((rndsource_element_t *, char *,
u_int32_t, u_int32_t));
void rnd_detach_source __P((rndsource_element_t *));
void rnd_init(void);
void rnd_add_uint32(rndsource_element_t *, u_int32_t);
void rnd_add_data(rndsource_element_t *, void *, u_int32_t,
u_int32_t);
u_int32_t rnd_extract_data(void *, u_int32_t, u_int32_t);
void rnd_attach_source(rndsource_element_t *, char *,
u_int32_t, u_int32_t);
void rnd_detach_source(rndsource_element_t *);
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: sem.h,v 1.17 2004/10/06 15:39:19 jdolecek Exp $ */
/* $NetBSD: sem.h,v 1.18 2005/02/03 19:20:02 perry Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -232,23 +232,23 @@ extern struct semid_ds *sema; /* semaphore id pool */
__BEGIN_DECLS
#if defined(__LIBC12_SOURCE__)
int semctl __P((int, int, int, union __semun));
int __semctl __P((int, int, int, union __semun *));
int __semctl13 __P((int, int, int, ...));
int semctl(int, int, int, union __semun);
int __semctl(int, int, int, union __semun *);
int __semctl13(int, int, int, ...);
#else
int semctl __P((int, int, int, ...)) __RENAME(__semctl13);
int semctl(int, int, int, ...) __RENAME(__semctl13);
#endif
int semget __P((key_t, int, int));
int semop __P((int, struct sembuf *, size_t));
int semget(key_t, int, int);
int semop(int, struct sembuf *, size_t);
#if defined(_NETBSD_SOURCE)
int semconfig __P((int));
int semconfig(int);
#endif
__END_DECLS
#else
void seminit __P((void));
void semexit __P((struct proc *, void *));
void seminit(void);
void semexit(struct proc *, void *);
int semctl1 __P((struct proc *, int, int, int, void *, register_t *));
int semctl1(struct proc *, int, int, int, void *, register_t *);
#endif /* !_KERNEL */
#endif /* !_SEM_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: sha1.h,v 1.3 2003/07/08 06:18:00 itojun Exp $ */
/* $NetBSD: sha1.h,v 1.4 2005/02/03 19:20:02 perry Exp $ */
/*
* SHA-1 in C
@ -17,14 +17,14 @@ typedef struct {
u_char buffer[64];
} SHA1_CTX;
void SHA1Transform __P((u_int32_t[5], const u_char[64]));
void SHA1Init __P((SHA1_CTX *));
void SHA1Update __P((SHA1_CTX *, const u_char *, u_int));
void SHA1Final __P((u_char[20], SHA1_CTX *));
void SHA1Transform(u_int32_t[5], const u_char[64]);
void SHA1Init(SHA1_CTX *);
void SHA1Update(SHA1_CTX *, const u_char *, u_int);
void SHA1Final(u_char[20], SHA1_CTX *);
#ifndef _KERNEL
char *SHA1End __P((SHA1_CTX *, char *));
char *SHA1File __P((char *, char *));
char *SHA1Data __P((const u_char *, size_t, char *));
char *SHA1End(SHA1_CTX *, char *);
char *SHA1File(char *, char *);
char *SHA1Data(const u_char *, size_t, char *);
#endif /* _KERNEL */
#endif /* _SYS_SHA1_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: shm.h,v 1.37 2004/09/28 19:05:19 jdolecek Exp $ */
/* $NetBSD: shm.h,v 1.38 2005/02/03 19:20:02 perry Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -96,7 +96,7 @@
* need to include unistd.h
*/
__BEGIN_DECLS
long __sysconf __P((int));
long __sysconf(int);
__END_DECLS
#define SHMLBA (__sysconf(28))
#endif
@ -187,17 +187,17 @@ extern struct shmid_ds *shmsegs;
struct vmspace;
void shminit __P((void));
void shmfork __P((struct vmspace *, struct vmspace *));
void shmexit __P((struct vmspace *));
int shmctl1 __P((struct proc *, int, int, struct shmid_ds *));
void shminit(void);
void shmfork(struct vmspace *, struct vmspace *);
void shmexit(struct vmspace *);
int shmctl1(struct proc *, int, int, struct shmid_ds *);
#else /* !_KERNEL */
__BEGIN_DECLS
void *shmat __P((int, const void *, int));
int shmctl __P((int, int, struct shmid_ds *)) __RENAME(__shmctl13);
int shmdt __P((const void *));
int shmget __P((key_t, size_t, int));
void *shmat(int, const void *, int);
int shmctl(int, int, struct shmid_ds *) __RENAME(__shmctl13);
int shmdt(const void *);
int shmget(key_t, size_t, int);
__END_DECLS
#endif /* !_KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: signal.h,v 1.58 2004/05/07 23:54:48 kleink Exp $ */
/* $NetBSD: signal.h,v 1.59 2005/02/03 19:20:02 perry Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@ -96,10 +96,10 @@
#include <sys/cdefs.h>
#endif
#define SIG_DFL ((void (*) __P((int))) 0)
#define SIG_IGN ((void (*) __P((int))) 1)
#define SIG_ERR ((void (*) __P((int))) -1)
#define SIG_HOLD ((void (*) __P((int))) 3)
#define SIG_DFL ((void (*)(int)) 0)
#define SIG_IGN ((void (*)(int)) 1)
#define SIG_ERR ((void (*)(int)) -1)
#define SIG_HOLD ((void (*)(int)) 3)
#if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \
defined(_NETBSD_SOURCE)
@ -109,7 +109,7 @@
*/
struct sigaction13 {
void (*osa_handler) /* signal handler */
__P((int));
(int);
sigset13_t osa_mask; /* signal mask to apply */
int osa_flags; /* see signal options below */
};
@ -140,10 +140,10 @@ struct sigaction13 {
*/
struct sigaction {
union {
void (*_sa_handler) __P((int));
void (*_sa_handler)(int);
#if (_POSIX_C_SOURCE - 0) >= 199309L || (_XOPEN_SOURCE - 0) >= 500 || \
defined(_NETBSD_SOURCE)
void (*_sa_sigaction) __P((int, siginfo_t *, void *));
void (*_sa_sigaction)(int, siginfo_t *, void *);
#endif
} _sa_u; /* signal handler */
sigset_t sa_mask; /* signal mask to apply */
@ -184,7 +184,7 @@ struct sigaction {
#define SIG_SETMASK 3 /* set specified signal set */
#if defined(_NETBSD_SOURCE)
typedef void (*sig_t) __P((int)); /* type of signal function */
typedef void (*sig_t)(int); /* type of signal function */
#endif
#if (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \
@ -208,7 +208,7 @@ typedef void (*sig_t) __P((int)); /* type of signal function */
*/
struct sigvec {
void (*sv_handler) /* signal handler */
__P((int));
(int);
int sv_mask; /* signal mask to apply */
int sv_flags; /* see signal options below */
};
@ -262,6 +262,6 @@ struct sigevent {
* defined by <sys/signal.h>.
*/
__BEGIN_DECLS
void (*signal __P((int, void (*) __P((int))))) __P((int));
void (*signal(int, void (*)(int)))(int);
__END_DECLS
#endif /* !_SYS_SIGNAL_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: signalvar.h,v 1.53 2005/01/09 19:23:26 christos Exp $ */
/* $NetBSD: signalvar.h,v 1.54 2005/02/03 19:20:02 perry Exp $ */
/*
* Copyright (c) 1991, 1993
@ -86,7 +86,7 @@ struct sigctx {
#define SAS_OLDMASK 0x01 /* need to restore mask before pause */
/* additional signal action values, used only temporarily/internally */
#define SIG_CATCH (void (*) __P((int)))2
#define SIG_CATCH (void (*)(int))2
/*
* get signal action for process and signal; currently only for current process
@ -139,70 +139,69 @@ struct ucred;
/*
* Machine-independent functions:
*/
int coredump __P((struct lwp *, const char *));
int coredump_netbsd __P((struct lwp *, struct vnode *, struct ucred *));
void execsigs __P((struct proc *));
void gsignal __P((int, int));
void kgsignal __P((int, struct ksiginfo *, void *));
int issignal __P((struct lwp *));
void pgsignal __P((struct pgrp *, int, int));
void kpgsignal __P((struct pgrp *, struct ksiginfo *, void *, int));
void postsig __P((int));
void psignal1 __P((struct proc *, int, int));
void kpsignal1 __P((struct proc *, struct ksiginfo *, void *, int));
int coredump(struct lwp *, const char *);
int coredump_netbsd(struct lwp *, struct vnode *, struct ucred *);
void execsigs(struct proc *);
void gsignal(int, int);
void kgsignal(int, struct ksiginfo *, void *);
int issignal(struct lwp *);
void pgsignal(struct pgrp *, int, int);
void kpgsignal(struct pgrp *, struct ksiginfo *, void *, int);
void postsig(int);
void psignal1(struct proc *, int, int);
void kpsignal1(struct proc *, struct ksiginfo *, void *, int);
#define kpsignal(p, ksi, data) kpsignal1((p), (ksi), (data), 1)
#define psignal(p, sig) psignal1((p), (sig), 1)
#define sched_psignal(p, sig) psignal1((p), (sig), 0)
void siginit __P((struct proc *));
void trapsignal __P((struct lwp *, const struct ksiginfo *));
void sigexit __P((struct lwp *, int));
void killproc __P((struct proc *, const char *));
void setsigvec __P((struct proc *, int, struct sigaction *));
int killpg1 __P((struct proc *, struct ksiginfo *, int, int));
struct lwp *proc_unstop __P((struct proc *p));
void siginit(struct proc *);
void trapsignal(struct lwp *, const struct ksiginfo *);
void sigexit(struct lwp *, int);
void killproc(struct proc *, const char *);
void setsigvec(struct proc *, int, struct sigaction *);
int killpg1(struct proc *, struct ksiginfo *, int, int);
struct lwp *proc_unstop(struct proc *p);
int sigaction1 __P((struct proc *, int, const struct sigaction *,
struct sigaction *, const void *, int));
int sigprocmask1 __P((struct proc *, int, const sigset_t *, sigset_t *));
void sigpending1 __P((struct proc *, sigset_t *));
int sigsuspend1 __P((struct proc *, const sigset_t *));
int sigaltstack1 __P((struct proc *, const struct sigaltstack *,
struct sigaltstack *));
int sigismasked __P((struct proc *, int));
int sigaction1(struct proc *, int, const struct sigaction *,
struct sigaction *, const void *, int);
int sigprocmask1(struct proc *, int, const sigset_t *, sigset_t *);
void sigpending1(struct proc *, sigset_t *);
int sigsuspend1(struct proc *, const sigset_t *);
int sigaltstack1(struct proc *, const struct sigaltstack *,
struct sigaltstack *);
int sigismasked(struct proc *, int);
void signal_init __P((void));
void signal_init(void);
void sigactsinit __P((struct proc *, struct proc *, int));
void sigactsunshare __P((struct proc *));
void sigactsfree __P((struct sigacts *));
void sigactsinit(struct proc *, struct proc *, int);
void sigactsunshare(struct proc *);
void sigactsfree(struct sigacts *);
void kpsendsig __P((struct lwp *, const struct ksiginfo *,
const sigset_t *));
void kpsendsig(struct lwp *, const struct ksiginfo *, const sigset_t *);
/*
* Machine-dependent functions:
*/
void sendsig __P((const struct ksiginfo *, const sigset_t *));
void sendsig(const struct ksiginfo *, const sigset_t *);
struct core;
struct core32;
int cpu_coredump __P((struct lwp *, struct vnode *, struct ucred *,
struct core *));
int cpu_coredump32 __P((struct lwp *, struct vnode *, struct ucred *,
struct core32 *));
int cpu_coredump(struct lwp *, struct vnode *, struct ucred *,
struct core *);
int cpu_coredump32(struct lwp *, struct vnode *, struct ucred *,
struct core32 *);
/*
* Compatibility functions. See compat/common/kern_sig_13.c.
*/
void native_sigset13_to_sigset __P((const sigset13_t *, sigset_t *));
void native_sigset_to_sigset13 __P((const sigset_t *, sigset13_t *));
void native_sigaction13_to_sigaction __P((const struct sigaction13 *,
struct sigaction *));
void native_sigaction_to_sigaction13 __P((const struct sigaction *,
struct sigaction13 *));
void native_sigaltstack13_to_sigaltstack __P((const struct sigaltstack13 *,
struct sigaltstack *));
void native_sigaltstack_to_sigaltstack13 __P((const struct sigaltstack *,
struct sigaltstack13 *));
void native_sigset13_to_sigset(const sigset13_t *, sigset_t *);
void native_sigset_to_sigset13(const sigset_t *, sigset13_t *);
void native_sigaction13_to_sigaction(const struct sigaction13 *,
struct sigaction *);
void native_sigaction_to_sigaction13(const struct sigaction *,
struct sigaction13 *);
void native_sigaltstack13_to_sigaltstack(const struct sigaltstack13 *,
struct sigaltstack *);
void native_sigaltstack_to_sigaltstack13(const struct sigaltstack *,
struct sigaltstack13 *);
#endif /* _KERNEL */
#endif /* !_SYS_SIGNALVAR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: socket.h,v 1.69 2004/09/03 18:14:09 darrenr Exp $ */
/* $NetBSD: socket.h,v 1.70 2005/02/03 19:20:02 perry Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -508,35 +508,32 @@ struct omsghdr {
#include <sys/cdefs.h>
__BEGIN_DECLS
int __cmsg_alignbytes __P((void));
int __cmsg_alignbytes(void);
__END_DECLS
#ifndef _KERNEL
__BEGIN_DECLS
int accept __P((int, struct sockaddr * __restrict, socklen_t * __restrict));
int bind __P((int, const struct sockaddr *, socklen_t));
int connect __P((int, const struct sockaddr *, socklen_t));
int getpeername __P((int, struct sockaddr * __restrict,
socklen_t * __restrict));
int getsockname __P((int, struct sockaddr * __restrict,
socklen_t * __restrict));
int getsockopt __P((int, int, int, void * __restrict,
socklen_t * __restrict));
int listen __P((int, int));
ssize_t recv __P((int, void *, size_t, int));
ssize_t recvfrom __P((int, void * __restrict, size_t, int,
struct sockaddr * __restrict, socklen_t * __restrict));
ssize_t recvmsg __P((int, struct msghdr *, int));
ssize_t send __P((int, const void *, size_t, int));
ssize_t sendto __P((int, const void *,
size_t, int, const struct sockaddr *, socklen_t));
ssize_t sendmsg __P((int, const struct msghdr *, int));
int setsockopt __P((int, int, int, const void *, socklen_t));
int shutdown __P((int, int));
int sockatmark __P((int));
int socket __P((int, int, int));
int socketpair __P((int, int, int, int *));
int accept(int, struct sockaddr * __restrict, socklen_t * __restrict);
int bind(int, const struct sockaddr *, socklen_t);
int connect(int, const struct sockaddr *, socklen_t);
int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict);
int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict);
int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict);
int listen(int, int);
ssize_t recv(int, void *, size_t, int);
ssize_t recvfrom(int, void * __restrict, size_t, int,
struct sockaddr * __restrict, socklen_t * __restrict);
ssize_t recvmsg(int, struct msghdr *, int);
ssize_t send(int, const void *, size_t, int);
ssize_t sendto(int, const void *,
size_t, int, const struct sockaddr *, socklen_t);
ssize_t sendmsg(int, const struct msghdr *, int);
int setsockopt(int, int, int, const void *, socklen_t);
int shutdown(int, int);
int sockatmark(int);
int socket(int, int, int);
int socketpair(int, int, int, int *);
__END_DECLS
#endif /* !_KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: stat.h,v 1.47 2004/05/25 14:54:58 hannken Exp $ */
/* $NetBSD: stat.h,v 1.48 2005/02/03 19:20:02 perry Exp $ */
/*-
* Copyright (c) 1982, 1986, 1989, 1993
@ -276,35 +276,35 @@ struct stat {
#include <sys/cdefs.h>
__BEGIN_DECLS
int chmod __P((const char *, mode_t));
int mkdir __P((const char *, mode_t));
int mkfifo __P((const char *, mode_t));
int chmod(const char *, mode_t);
int mkdir(const char *, mode_t);
int mkfifo(const char *, mode_t);
#ifdef __LIBC12_SOURCE__
int stat __P((const char *, struct stat12 *));
int fstat __P((int, struct stat12 *));
int __stat13 __P((const char *, struct stat *));
int __fstat13 __P((int, struct stat *));
int stat(const char *, struct stat12 *);
int fstat(int, struct stat12 *);
int __stat13(const char *, struct stat *);
int __fstat13(int, struct stat *);
#else
int stat __P((const char *, struct stat *)) __RENAME(__stat13);
int fstat __P((int, struct stat *)) __RENAME(__fstat13);
int stat(const char *, struct stat *) __RENAME(__stat13);
int fstat(int, struct stat *) __RENAME(__fstat13);
#endif
mode_t umask __P((mode_t));
mode_t umask(mode_t);
#if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)
int fchmod __P((int, mode_t));
int fchmod(int, mode_t);
#ifdef __LIBC12_SOURCE__
int lstat __P((const char *, struct stat12 *));
int __lstat13 __P((const char *, struct stat *));
int lstat(const char *, struct stat12 *);
int __lstat13(const char *, struct stat *);
#else
int lstat __P((const char *, struct stat *)) __RENAME(__lstat13);
int lstat(const char *, struct stat *) __RENAME(__lstat13);
#endif
int mknod __P((const char *, mode_t, dev_t));
int mknod(const char *, mode_t, dev_t);
#endif /* defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE) */
#if defined(_NETBSD_SOURCE)
int chflags __P((const char *, unsigned long));
int fchflags __P((int, unsigned long));
int lchflags __P((const char *, unsigned long));
int lchmod __P((const char *, mode_t));
int chflags(const char *, unsigned long);
int fchflags(int, unsigned long);
int lchflags(const char *, unsigned long);
int lchmod(const char *, mode_t);
#endif /* defined(_NETBSD_SOURCE) */
__END_DECLS

View File

@ -1,4 +1,4 @@
/* $NetBSD: sysctl.h,v 1.127 2004/08/09 08:35:23 yamt Exp $ */
/* $NetBSD: sysctl.h,v 1.128 2005/02/03 19:20:02 perry Exp $ */
/*
* Copyright (c) 1989, 1993
@ -1041,11 +1041,11 @@ MALLOC_DECLARE(M_SYSCTLDATA);
typedef void *sysctlfn;
__BEGIN_DECLS
int sysctl __P((int *, u_int, void *, size_t *, const void *, size_t));
int sysctlbyname __P((const char *, void *, size_t *, void *, size_t));
int sysctlgetmibinfo __P((const char *, int *, u_int *,
char *, size_t *, struct sysctlnode **, int));
int sysctlnametomib __P((const char *, int *, size_t *));
int sysctl(int *, u_int, void *, size_t *, const void *, size_t);
int sysctlbyname(const char *, void *, size_t *, void *, size_t);
int sysctlgetmibinfo(const char *, int *, u_int *,
char *, size_t *, struct sysctlnode **, int);
int sysctlnametomib(const char *, int *, size_t *);
__END_DECLS
#endif /* !_KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: syslog.h,v 1.25 2003/08/07 16:34:16 agc Exp $ */
/* $NetBSD: syslog.h,v 1.26 2005/02/03 19:20:02 perry Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1993
@ -179,27 +179,27 @@ CODE facilitynames[] = {
#include <sys/featuretest.h>
__BEGIN_DECLS
void closelog __P((void));
void openlog __P((const char *, int, int));
int setlogmask __P((int));
void syslog __P((int, const char *, ...))
void closelog(void);
void openlog(const char *, int, int);
int setlogmask(int);
void syslog(int, const char *, ...)
__attribute__((__format__(__printf__,2,3)));
#if defined(_NETBSD_SOURCE)
void vsyslog __P((int, const char *, _BSD_VA_LIST_))
void vsyslog(int, const char *, _BSD_VA_LIST_)
__attribute__((__format__(__printf__,2,0)));
#endif
__END_DECLS
#else /* !_KERNEL */
void logpri __P((int));
void log __P((int, const char *, ...))
void logpri(int);
void log(int, const char *, ...)
__attribute__((__format__(__printf__,2,3)));
void vlog __P((int, const char *, _BSD_VA_LIST_))
void vlog(int, const char *, _BSD_VA_LIST_)
__attribute__((__format__(__printf__,2,0)));
void addlog __P((const char *, ...))
void addlog(const char *, ...)
__attribute__((__format__(__printf__,1,2)));
void logwakeup __P((void));
void logwakeup(void);
#endif /* !_KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: systm.h,v 1.174 2004/10/23 21:27:33 yamt Exp $ */
/* $NetBSD: systm.h,v 1.175 2005/02/03 19:20:02 perry Exp $ */
/*-
* Copyright (c) 1982, 1988, 1991, 1993
@ -147,10 +147,10 @@ extern int boothowto; /* reboot flags, from console subsystem */
#define bootverbose (boothowto & AB_VERBOSE)
#define bootquiet (boothowto & AB_QUIET)
extern void (*v_putc) __P((int)); /* Virtual console putc routine */
extern void (*v_putc)(int); /* Virtual console putc routine */
extern void _insque __P((void *, void *));
extern void _remque __P((void *));
extern void _insque(void *, void *);
extern void _remque(void *);
/* casts to keep lint happy, but it should be happy with void * */
#define insque(q,p) _insque(q, p)
@ -159,12 +159,12 @@ extern void _remque __P((void *));
/*
* General function declarations.
*/
int nullop __P((void *));
int enodev __P((void));
int enosys __P((void));
int enoioctl __P((void));
int enxio __P((void));
int eopnotsupp __P((void));
int nullop(void *);
int enodev(void);
int enosys(void);
int enoioctl(void);
int enxio(void);
int eopnotsupp(void);
enum hashtype {
HASH_LIST,
@ -172,58 +172,57 @@ enum hashtype {
};
struct malloc_type;
void *hashinit __P((u_int, enum hashtype, struct malloc_type *,
int, u_long *));
void hashdone __P((void *, struct malloc_type *));
int seltrue __P((dev_t, int, struct proc *));
int sys_nosys __P((struct lwp *, void *, register_t *));
void *hashinit(u_int, enum hashtype, struct malloc_type *, int, u_long *);
void hashdone(void *, struct malloc_type *);
int seltrue(dev_t, int, struct proc *);
int sys_nosys(struct lwp *, void *, register_t *);
#ifdef _KERNEL
void aprint_normal __P((const char *, ...))
void aprint_normal(const char *, ...)
__attribute__((__format__(__printf__,1,2)));
void aprint_error __P((const char *, ...))
void aprint_error(const char *, ...)
__attribute__((__format__(__printf__,1,2)));
void aprint_naive __P((const char *, ...))
void aprint_naive(const char *, ...)
__attribute__((__format__(__printf__,1,2)));
void aprint_verbose __P((const char *, ...))
void aprint_verbose(const char *, ...)
__attribute__((__format__(__printf__,1,2)));
void aprint_debug __P((const char *, ...))
void aprint_debug(const char *, ...)
__attribute__((__format__(__printf__,1,2)));
int aprint_get_error_count __P((void));
int aprint_get_error_count(void);
void printf_nolog __P((const char *, ...))
void printf_nolog(const char *, ...)
__attribute__((__format__(__printf__,1,2)));
void printf __P((const char *, ...))
void printf(const char *, ...)
__attribute__((__format__(__printf__,1,2)));
int sprintf __P((char *, const char *, ...))
int sprintf(char *, const char *, ...)
__attribute__((__format__(__printf__,2,3)));
int snprintf __P((char *, size_t, const char *, ...))
int snprintf(char *, size_t, const char *, ...)
__attribute__((__format__(__printf__,3,4)));
void vprintf __P((const char *, _BSD_VA_LIST_));
int vsprintf __P((char *, const char *, _BSD_VA_LIST_));
int vsnprintf __P((char *, size_t, const char *, _BSD_VA_LIST_));
int humanize_number __P((char *, size_t, u_int64_t, const char *, int));
void vprintf(const char *, _BSD_VA_LIST_);
int vsprintf(char *, const char *, _BSD_VA_LIST_);
int vsnprintf(char *, size_t, const char *, _BSD_VA_LIST_);
int humanize_number(char *, size_t, u_int64_t, const char *, int);
void twiddle __P((void));
void twiddle(void);
#endif /* _KERNEL */
void panic __P((const char *, ...))
void panic(const char *, ...)
__attribute__((__noreturn__,__format__(__printf__,1,2)));
void uprintf __P((const char *, ...))
void uprintf(const char *, ...)
__attribute__((__format__(__printf__,1,2)));
void ttyprintf __P((struct tty *, const char *, ...))
void ttyprintf(struct tty *, const char *, ...)
__attribute__((__format__(__printf__,2,3)));
char *bitmask_snprintf __P((u_quad_t, const char *, char *, size_t));
char *bitmask_snprintf(u_quad_t, const char *, char *, size_t);
int format_bytes __P((char *, size_t, u_int64_t));
int format_bytes(char *, size_t, u_int64_t);
void tablefull __P((const char *, const char *));
void tablefull(const char *, const char *);
int kcopy __P((const void *, void *, size_t));
int kcopy(const void *, void *, size_t);
#ifdef _KERNEL
#define bcopy(src, dst, len) memcpy((dst), (src), (len))
@ -231,70 +230,70 @@ int kcopy __P((const void *, void *, size_t));
#define bcmp(a, b, len) memcmp((a), (b), (len))
#endif /* KERNEL */
int copystr __P((const void *, void *, size_t, size_t *));
int copyinstr __P((const void *, void *, size_t, size_t *));
int copyoutstr __P((const void *, void *, size_t, size_t *));
int copyin __P((const void *, void *, size_t));
int copyout __P((const void *, void *, size_t));
int copystr(const void *, void *, size_t, size_t *);
int copyinstr(const void *, void *, size_t, size_t *);
int copyoutstr(const void *, void *, size_t, size_t *);
int copyin(const void *, void *, size_t);
int copyout(const void *, void *, size_t);
int copyin_proc __P((struct proc *, const void *, void *, size_t));
int copyout_proc __P((struct proc *, const void *, void *, size_t));
int copyin_proc(struct proc *, const void *, void *, size_t);
int copyout_proc(struct proc *, const void *, void *, size_t);
int subyte __P((void *, int));
int suibyte __P((void *, int));
int susword __P((void *, short));
int suisword __P((void *, short));
int suswintr __P((void *, short));
int suword __P((void *, long));
int suiword __P((void *, long));
int subyte(void *, int);
int suibyte(void *, int);
int susword(void *, short);
int suisword(void *, short);
int suswintr(void *, short);
int suword(void *, long);
int suiword(void *, long);
int fubyte __P((const void *));
int fuibyte __P((const void *));
int fusword __P((const void *));
int fuisword __P((const void *));
int fuswintr __P((const void *));
long fuword __P((const void *));
long fuiword __P((const void *));
int fubyte(const void *);
int fuibyte(const void *);
int fusword(const void *);
int fuisword(const void *);
int fuswintr(const void *);
long fuword(const void *);
long fuiword(const void *);
int hzto __P((struct timeval *));
int hzto(struct timeval *);
void hardclock __P((struct clockframe *));
void softclock __P((void *));
void statclock __P((struct clockframe *));
void hardclock(struct clockframe *);
void softclock(void *);
void statclock(struct clockframe *);
#ifdef NTP
void hardupdate __P((long offset));
void hardupdate(long offset);
#ifdef PPS_SYNC
void hardpps __P((struct timeval *, long));
void hardpps(struct timeval *, long);
extern void *pps_kc_hardpps_source;
extern int pps_kc_hardpps_mode;
#endif
#endif
void initclocks __P((void));
void inittodr __P((time_t));
void resettodr __P((void));
void cpu_initclocks __P((void));
void setrootfstime __P((time_t));
void initclocks(void);
void inittodr(time_t);
void resettodr(void);
void cpu_initclocks(void);
void setrootfstime(time_t);
void startprofclock __P((struct proc *));
void stopprofclock __P((struct proc *));
void proftick __P((struct clockframe *));
void setstatclockrate __P((int));
void startprofclock(struct proc *);
void stopprofclock(struct proc *);
void proftick(struct clockframe *);
void setstatclockrate(int);
/*
* Shutdown hooks. Functions to be run with all interrupts disabled
* immediately before the system is halted or rebooted.
*/
void *shutdownhook_establish __P((void (*)(void *), void *));
void shutdownhook_disestablish __P((void *));
void doshutdownhooks __P((void));
void *shutdownhook_establish(void (*)(void *), void *);
void shutdownhook_disestablish(void *);
void doshutdownhooks(void);
/*
* Power management hooks.
*/
void *powerhook_establish __P((void (*)(int, void *), void *));
void powerhook_disestablish __P((void *));
void dopowerhooks __P((int));
void *powerhook_establish(void (*)(int, void *), void *);
void powerhook_disestablish(void *);
void dopowerhooks(int);
#define PWR_RESUME 0
#define PWR_SUSPEND 1
#define PWR_STANDBY 2
@ -308,59 +307,58 @@ void dopowerhooks __P((int));
* selected as the root device.
*/
extern int (*mountroot)(void);
void *mountroothook_establish __P((void (*)(struct device *),
struct device *));
void mountroothook_disestablish __P((void *));
void mountroothook_destroy __P((void));
void domountroothook __P((void));
void *mountroothook_establish(void (*)(struct device *), struct device *);
void mountroothook_disestablish(void *);
void mountroothook_destroy(void);
void domountroothook(void);
/*
* Exec hooks. Subsystems may want to do cleanup when a process
* execs.
*/
void *exechook_establish __P((void (*)(struct proc *, void *), void *));
void exechook_disestablish __P((void *));
void doexechooks __P((struct proc *));
void *exechook_establish(void (*)(struct proc *, void *), void *);
void exechook_disestablish(void *);
void doexechooks(struct proc *);
/*
* Exit hooks. Subsystems may want to do cleanup when a process exits.
*/
void *exithook_establish __P((void (*)(struct proc *, void *), void *));
void exithook_disestablish __P((void *));
void doexithooks __P((struct proc *));
void *exithook_establish(void (*)(struct proc *, void *), void *);
void exithook_disestablish(void *);
void doexithooks(struct proc *);
/*
* Fork hooks. Subsystems may want to do special processing when a process
* forks.
*/
void *forkhook_establish __P((void (*)(struct proc *, struct proc *)));
void forkhook_disestablish __P((void *));
void doforkhooks __P((struct proc *, struct proc *));
void *forkhook_establish(void (*)(struct proc *, struct proc *));
void forkhook_disestablish(void *);
void doforkhooks(struct proc *, struct proc *);
/*
* kernel syscall tracing/debugging hooks.
*/
int trace_enter __P((struct lwp *, register_t, register_t,
const struct sysent *, void *));
void trace_exit __P((struct lwp *, register_t, void *, register_t [], int));
int trace_enter(struct lwp *, register_t, register_t,
const struct sysent *, void *);
void trace_exit(struct lwp *, register_t, void *, register_t [], int);
int uiomove __P((void *, size_t, struct uio *));
int uiomove_frombuf __P((void *, size_t, struct uio *));
int uiomove(void *, size_t, struct uio *);
int uiomove_frombuf(void *, size_t, struct uio *);
#ifdef _KERNEL
int setjmp __P((label_t *));
void longjmp __P((label_t *));
int setjmp(label_t *);
void longjmp(label_t *);
#endif
void consinit __P((void));
void consinit(void);
void cpu_startup __P((void));
void cpu_configure __P((void));
void cpu_rootconf __P((void));
void cpu_dumpconf __P((void));
void cpu_startup(void);
void cpu_configure(void);
void cpu_rootconf(void);
void cpu_dumpconf(void);
#ifdef GPROF
void kmstartup __P((void));
void kmstartup(void);
#endif
#ifdef _KERNEL
@ -387,10 +385,10 @@ typedef struct cnm_state {
#define cn_isconsole(d) (cn_tab != NULL && (d) == cn_tab->cn_dev)
#endif
void cn_init_magic __P((cnm_state_t *));
void cn_destroy_magic __P((cnm_state_t *));
int cn_set_magic __P((char *));
int cn_get_magic __P((char *, int));
void cn_init_magic(cnm_state_t *);
void cn_destroy_magic(cnm_state_t *);
int cn_set_magic(char *);
int cn_get_magic(char *, int);
/* This should be called for each byte read */
#ifndef cn_check_magic
#define cn_check_magic(d, k, s) \
@ -415,7 +413,7 @@ int cn_get_magic __P((char *, int));
#if defined(DDB) || defined(sun3) || defined(sun2)
/* note that cpu_Debugger() is always available on sun[23] */
void cpu_Debugger __P((void));
void cpu_Debugger(void);
#define Debugger cpu_Debugger
#endif
@ -433,8 +431,8 @@ extern int db_fromconsole; /* XXX ddb/ddbvar.h */
#endif /* _KERNEL */
#ifdef SYSCALL_DEBUG
void scdebug_call __P((struct lwp *, register_t, register_t[]));
void scdebug_ret __P((struct lwp *, register_t, int, register_t[]));
void scdebug_call(struct lwp *, register_t, register_t[]);
void scdebug_ret(struct lwp *, register_t, int, register_t[]);
#endif /* SYSCALL_DEBUG */
#if defined(MULTIPROCESSOR)

View File

@ -1,4 +1,4 @@
/* $NetBSD: termios.h,v 1.26 2003/08/07 16:34:17 agc Exp $ */
/* $NetBSD: termios.h,v 1.27 2005/02/03 19:20:02 perry Exp $ */
/*
* Copyright (c) 1988, 1989, 1993, 1994
@ -259,24 +259,24 @@ typedef __pid_t pid_t;
#include <sys/cdefs.h>
__BEGIN_DECLS
speed_t cfgetispeed __P((const struct termios *));
speed_t cfgetospeed __P((const struct termios *));
int cfsetispeed __P((struct termios *, speed_t));
int cfsetospeed __P((struct termios *, speed_t));
int tcgetattr __P((int, struct termios *));
int tcsetattr __P((int, int, const struct termios *));
int tcdrain __P((int));
int tcflow __P((int, int));
int tcflush __P((int, int));
int tcsendbreak __P((int, int));
speed_t cfgetispeed(const struct termios *);
speed_t cfgetospeed(const struct termios *);
int cfsetispeed(struct termios *, speed_t);
int cfsetospeed(struct termios *, speed_t);
int tcgetattr(int, struct termios *);
int tcsetattr(int, int, const struct termios *);
int tcdrain(int);
int tcflow(int, int);
int tcflush(int, int);
int tcsendbreak(int, int);
#if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)
pid_t tcgetsid __P((int));
pid_t tcgetsid(int);
#endif /* defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE) */
#if defined(_NETBSD_SOURCE)
void cfmakeraw __P((struct termios *));
int cfsetspeed __P((struct termios *, speed_t));
void cfmakeraw(struct termios *);
int cfsetspeed(struct termios *, speed_t);
#endif /* defined(_NETBSD_SOURCE) */
__END_DECLS

View File

@ -1,4 +1,4 @@
/* $NetBSD: time.h,v 1.43 2004/11/14 03:30:08 atatat Exp $ */
/* $NetBSD: time.h,v 1.44 2005/02/03 19:20:02 perry Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -209,22 +209,22 @@ struct ptimers {
int pts_fired;
};
int itimerfix __P((struct timeval *tv));
int itimerdecr __P((struct ptimer *, int));
void itimerfire __P((struct ptimer *));
void microtime __P((struct timeval *tv));
int settime __P((struct timeval *));
int ratecheck __P((struct timeval *, const struct timeval *));
int ppsratecheck __P((struct timeval *, int *, int));
int settimeofday1 __P((const struct timeval *, const struct timezone *,
struct proc *));
int adjtime1 __P((const struct timeval *, struct timeval *, struct proc *));
int clock_settime1 __P((clockid_t, const struct timespec *));
void timer_settime __P((struct ptimer *));
void timer_gettime __P((struct ptimer *, struct itimerval *));
void timers_alloc __P((struct proc *));
void timers_free __P((struct proc *, int));
void realtimerexpire __P((void *));
int itimerfix(struct timeval *tv);
int itimerdecr(struct ptimer *, int);
void itimerfire(struct ptimer *);
void microtime(struct timeval *tv);
int settime(struct timeval *);
int ratecheck(struct timeval *, const struct timeval *);
int ppsratecheck(struct timeval *, int *, int);
int settimeofday1(const struct timeval *, const struct timezone *,
struct proc *);
int adjtime1(const struct timeval *, struct timeval *, struct proc *);
int clock_settime1(clockid_t, const struct timespec *);
void timer_settime(struct ptimer *);
void timer_gettime(struct ptimer *, struct itimerval *);
void timers_alloc(struct proc *);
void timers_free(struct proc *, int);
void realtimerexpire(void *);
#else /* !_KERNEL */
#ifndef _STANDALONE
@ -234,17 +234,16 @@ void realtimerexpire __P((void *));
#include <sys/cdefs.h>
__BEGIN_DECLS
int adjtime __P((const struct timeval *, struct timeval *));
int futimes __P((int, const struct timeval [2]));
int getitimer __P((int, struct itimerval *));
int gettimeofday __P((struct timeval * __restrict,
void * __restrict));
int lutimes __P((const char *, const struct timeval [2]));
int setitimer __P((int, const struct itimerval * __restrict,
struct itimerval * __restrict));
int settimeofday __P((const struct timeval * __restrict,
const void * __restrict));
int utimes __P((const char *, const struct timeval [2]));
int adjtime(const struct timeval *, struct timeval *);
int futimes(int, const struct timeval [2]);
int getitimer(int, struct itimerval *);
int gettimeofday(struct timeval * __restrict, void * __restrict);
int lutimes(const char *, const struct timeval [2]);
int setitimer(int, const struct itimerval * __restrict,
struct itimerval * __restrict);
int settimeofday(const struct timeval * __restrict,
const void * __restrict);
int utimes(const char *, const struct timeval [2]);
__END_DECLS
#endif /* _XOPEN_SOURCE || _NETBSD_SOURCE */

View File

@ -1,4 +1,4 @@
/* $NetBSD: timeb.h,v 1.12 2003/08/07 16:34:19 agc Exp $ */
/* $NetBSD: timeb.h,v 1.13 2005/02/03 19:20:02 perry Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -51,7 +51,7 @@ struct timeb {
#include <sys/cdefs.h>
__BEGIN_DECLS
int ftime __P((struct timeb *));
int ftime(struct timeb *);
__END_DECLS
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: timepps.h,v 1.6 2004/01/23 05:01:19 simonb Exp $ */
/* $NetBSD: timepps.h,v 1.7 2005/02/03 19:20:02 perry Exp $ */
/*
* Copyright (c) 1998 Jonathan Stone
@ -134,21 +134,20 @@ typedef struct {
#include <sys/cdefs.h>
#include <sys/ioctl.h>
static __inline int time_pps_create __P((int, pps_handle_t *));
static __inline int time_pps_destroy __P((pps_handle_t));
static __inline int time_pps_setparams __P((pps_handle_t,
const pps_params_t *));
static __inline int time_pps_getparams __P((pps_handle_t, pps_params_t *));
static __inline int time_pps_getcap __P((pps_handle_t, int *));
static __inline int time_pps_fetch __P((pps_handle_t, const int, pps_info_t *,
const struct timespec *));
static __inline int time_pps_create(int, pps_handle_t *);
static __inline int time_pps_destroy(pps_handle_t);
static __inline int time_pps_setparams(pps_handle_t, const pps_params_t *);
static __inline int time_pps_getparams(pps_handle_t, pps_params_t *);
static __inline int time_pps_getcap(pps_handle_t, int *);
static __inline int time_pps_fetch(pps_handle_t, const int, pps_info_t *,
const struct timespec *);
#if 0
static __inline int time_pps_wait __P((pps_handle_t, const struct timespec *,
pps_info_t *));
static __inline int time_pps_wait(pps_handle_t, const struct timespec *,
pps_info_t *);
#endif
static __inline int time_pps_kcbind __P((pps_handle_t, const int, const int,
const int));
static __inline int time_pps_kcbind(pps_handle_t, const int, const int,
const int);
static __inline int
time_pps_create(filedes, handle)

View File

@ -1,4 +1,4 @@
/* $NetBSD: times.h,v 1.10 2003/08/07 16:34:19 agc Exp $ */
/* $NetBSD: times.h,v 1.11 2005/02/03 19:20:02 perry Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -58,9 +58,9 @@ struct tms {
__BEGIN_DECLS
#ifdef __LIBC12_SOURCE__
clock_t times __P((struct tms *));
clock_t times(struct tms *);
#else
clock_t times __P((struct tms *)) __RENAME(__times13);
clock_t times(struct tms *) __RENAME(__times13);
#endif
__END_DECLS
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: timex.h,v 1.7 2002/03/17 11:14:04 simonb Exp $ */
/* $NetBSD: timex.h,v 1.8 2005/02/03 19:20:02 perry Exp $ */
/******************************************************************************
* *
@ -292,8 +292,8 @@ struct timex {
#include <sys/cdefs.h>
__BEGIN_DECLS
int ntp_gettime __P((struct ntptimeval *));
int ntp_adjtime __P((struct timex *));
int ntp_gettime (struct ntptimeval *);
int ntp_adjtime (struct timex *);
__END_DECLS
#endif /* not _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: tprintf.h,v 1.14 2003/08/07 16:34:19 agc Exp $ */
/* $NetBSD: tprintf.h,v 1.15 2005/02/03 19:20:02 perry Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -37,10 +37,10 @@
#ifdef _KERNEL
typedef struct session *tpr_t;
tpr_t tprintf_open __P((struct proc *));
void tprintf_close __P((tpr_t));
tpr_t tprintf_open(struct proc *);
void tprintf_close(tpr_t);
void tprintf __P((tpr_t, const char *fmt, ...))
void tprintf(tpr_t, const char *fmt, ...)
__attribute__((__format__(__printf__,2,3)));
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: tty.h,v 1.65 2004/04/25 06:13:38 matt Exp $ */
/* $NetBSD: tty.h,v 1.66 2005/02/03 19:20:02 perry Exp $ */
/*-
* Copyright (c) 1982, 1986, 1993
@ -92,11 +92,11 @@ struct tty {
struct termios t_termios; /* Termios state. */
struct winsize t_winsize; /* Window size. */
/* Start output. */
void (*t_oproc) __P((struct tty *));
void (*t_oproc)(struct tty *);
/* Set hardware state. */
int (*t_param) __P((struct tty *, struct termios *));
int (*t_param)(struct tty *, struct termios *);
/* Set hardware flow control. */
int (*t_hwiflow) __P((struct tty *, int));
int (*t_hwiflow)(struct tty *, int);
void *t_sc; /* XXX: net/if_sl.c:sl_softc. */
short t_column; /* Tty output column. */
short t_rocount, t_rocol; /* Tty. */
@ -208,57 +208,57 @@ extern struct ttychars ttydefaults;
/* Symbolic sleep message strings. */
extern const char ttyin[], ttyout[], ttopen[], ttclos[], ttybg[], ttybuf[];
int b_to_q __P((const u_char *, int, struct clist *));
void catq __P((struct clist *, struct clist *));
void clist_init __P((void));
int getc __P((struct clist *));
void ndflush __P((struct clist *, int));
int ndqb __P((struct clist *, int));
u_char *nextc __P((struct clist *, u_char *, int *));
int putc __P((int, struct clist *));
int q_to_b __P((struct clist *, u_char *, int));
int unputc __P((struct clist *));
int b_to_q(const u_char *, int, struct clist *);
void catq(struct clist *, struct clist *);
void clist_init(void);
int getc(struct clist *);
void ndflush(struct clist *, int);
int ndqb(struct clist *, int);
u_char *nextc(struct clist *, u_char *, int *);
int putc(int, struct clist *);
int q_to_b(struct clist *, u_char *, int);
int unputc(struct clist *);
int nullmodem __P((struct tty *, int));
int tputchar __P((int, int, struct tty *));
int ttioctl __P((struct tty *, u_long, caddr_t, int, struct proc *));
int ttread __P((struct tty *, struct uio *, int));
void ttrstrt __P((void *));
int ttpoll __P((struct tty *, int, struct proc *));
void ttsetwater __P((struct tty *));
int ttspeedtab __P((int, const struct speedtab *));
int ttstart __P((struct tty *));
void ttwakeup __P((struct tty *));
int ttwrite __P((struct tty *, struct uio *, int));
void ttychars __P((struct tty *));
int ttycheckoutq __P((struct tty *, int));
int ttyclose __P((struct tty *));
void ttyflush __P((struct tty *, int));
void ttyinfo __P((struct tty *));
int ttyinput __P((int, struct tty *));
int ttylclose __P((struct tty *, int));
int ttylopen __P((dev_t, struct tty *));
int ttykqfilter __P((dev_t, struct knote *));
int ttymodem __P((struct tty *, int));
int ttyopen __P((struct tty *, int, int));
int ttyoutput __P((int, struct tty *));
void ttypend __P((struct tty *));
void ttyretype __P((struct tty *));
void ttyrub __P((int, struct tty *));
int ttysleep __P((struct tty *, void *, int, const char *, int));
int ttywait __P((struct tty *));
int ttywflush __P((struct tty *));
int nullmodem(struct tty *, int);
int tputchar(int, int, struct tty *);
int ttioctl(struct tty *, u_long, caddr_t, int, struct proc *);
int ttread(struct tty *, struct uio *, int);
void ttrstrt(void *);
int ttpoll(struct tty *, int, struct proc *);
void ttsetwater(struct tty *);
int ttspeedtab(int, const struct speedtab *);
int ttstart(struct tty *);
void ttwakeup(struct tty *);
int ttwrite(struct tty *, struct uio *, int);
void ttychars(struct tty *);
int ttycheckoutq(struct tty *, int);
int ttyclose(struct tty *);
void ttyflush(struct tty *, int);
void ttyinfo(struct tty *);
int ttyinput(int, struct tty *);
int ttylclose(struct tty *, int);
int ttylopen(dev_t, struct tty *);
int ttykqfilter(dev_t, struct knote *);
int ttymodem(struct tty *, int);
int ttyopen(struct tty *, int, int);
int ttyoutput(int, struct tty *);
void ttypend(struct tty *);
void ttyretype(struct tty *);
void ttyrub(int, struct tty *);
int ttysleep(struct tty *, void *, int, const char *, int);
int ttywait(struct tty *);
int ttywflush(struct tty *);
void tty_init __P((void));
void tty_attach __P((struct tty *));
void tty_detach __P((struct tty *));
void tty_init(void);
void tty_attach(struct tty *);
void tty_detach(struct tty *);
struct tty
*ttymalloc __P((void));
void ttyfree __P((struct tty *));
u_char *firstc __P((struct clist *, int *));
*ttymalloc(void);
void ttyfree(struct tty *);
u_char *firstc(struct clist *, int *);
int clalloc __P((struct clist *, int, int));
void clfree __P((struct clist *));
int clalloc(struct clist *, int, int);
void clfree(struct clist *);
#if defined(_KERNEL_OPT)
#include "opt_compat_freebsd.h"
@ -271,7 +271,7 @@ void clfree __P((struct clist *));
#if defined(COMPAT_43) || defined(COMPAT_SUNOS) || defined(COMPAT_SVR4) || \
defined(COMPAT_FREEBSD) || defined(COMPAT_OSF1) || defined(LKM)
# define COMPAT_OLDTTY
int ttcompat __P((struct tty *, u_long, caddr_t, int, struct proc *));
int ttcompat(struct tty *, u_long, caddr_t, int, struct proc *);
#endif
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: types.h,v 1.64 2005/01/02 18:33:14 christos Exp $ */
/* $NetBSD: types.h,v 1.65 2005/02/03 19:20:02 perry Exp $ */
/*-
* Copyright (c) 1982, 1986, 1991, 1993, 1994
@ -230,9 +230,9 @@ typedef intptr_t semid_t;
#ifndef _KERNEL
#include <sys/cdefs.h>
__BEGIN_DECLS
off_t lseek __P((int, off_t, int));
int ftruncate __P((int, off_t));
int truncate __P((const char *, off_t));
off_t lseek(int, off_t, int);
int ftruncate(int, off_t);
int truncate(const char *, off_t);
__END_DECLS
#endif /* !_KERNEL */
#endif /* __OFF_T_SYSCALLS_DECLARED */

View File

@ -1,4 +1,4 @@
/* $NetBSD: uio.h,v 1.31 2003/09/13 16:59:29 erh Exp $ */
/* $NetBSD: uio.h,v 1.32 2005/02/03 19:20:02 perry Exp $ */
/*
* Copyright (c) 1982, 1986, 1993, 1994
@ -108,14 +108,14 @@ MALLOC_DECLARE(M_IOV);
__BEGIN_DECLS
#if defined(_NETBSD_SOURCE)
ssize_t preadv __P((int, const struct iovec *, int, off_t));
ssize_t pwritev __P((int, const struct iovec *, int, off_t));
ssize_t preadv(int, const struct iovec *, int, off_t);
ssize_t pwritev(int, const struct iovec *, int, off_t);
#endif /* _NETBSD_SOURCE */
ssize_t readv __P((int, const struct iovec *, int));
ssize_t writev __P((int, const struct iovec *, int));
ssize_t readv(int, const struct iovec *, int);
ssize_t writev(int, const struct iovec *, int);
__END_DECLS
#else
int ureadc __P((int, struct uio *));
int ureadc(int, struct uio *);
#endif /* !_KERNEL */
#endif /* !_SYS_UIO_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: userconf.h,v 1.2 2001/07/14 12:05:53 kleink Exp $ */
/* $NetBSD: userconf.h,v 1.3 2005/02/03 19:20:02 perry Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -36,6 +36,6 @@
#ifndef _SYS_USERCONF_H_
#define _SYS_USERCONF_H_
void user_config __P((void));
void user_config(void);
#endif /* !_SYS_USERCONF_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: utsname.h,v 1.11 2003/08/07 16:34:22 agc Exp $ */
/* $NetBSD: utsname.h,v 1.12 2005/02/03 19:20:02 perry Exp $ */
/*-
* Copyright (c) 1994
@ -56,7 +56,7 @@ struct utsname {
#include <sys/cdefs.h>
__BEGIN_DECLS
int uname __P((struct utsname *));
int uname(struct utsname *);
__END_DECLS
#endif /* !_SYS_UTSNAME_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: verified_exec.h,v 1.4 2003/07/08 06:49:23 itojun Exp $ */
/* $NetBSD: verified_exec.h,v 1.5 2005/02/03 19:20:02 perry Exp $ */
/*-
* Copyright (c) 1998-1999 Brett Lymn
@ -66,10 +66,10 @@ struct verified_exec_params {
#define VERIEXECLOAD _IOW('S', 0x1, struct verified_exec_params)
#ifdef _KERNEL
void verifiedexecattach __P((struct device *, struct device *, void *));
int verifiedexecopen __P((dev_t, int, int, struct proc *));
int verifiedexecclose __P((dev_t, int, int, struct proc *));
int verifiedexecioctl __P((dev_t, u_long, caddr_t, int, struct proc *));
void verifiedexecattach(struct device *, struct device *, void *);
int verifiedexecopen(dev_t, int, int, struct proc *);
int verifiedexecclose(dev_t, int, int, struct proc *);
int verifiedexecioctl(dev_t, u_long, caddr_t, int, struct proc *);
/*
* list structure definitions - needed in kern_exec.c
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: vnode.h,v 1.132 2005/01/25 23:55:21 wrstuden Exp $ */
/* $NetBSD: vnode.h,v 1.133 2005/02/03 19:20:02 perry Exp $ */
/*
* Copyright (c) 1989, 1993
@ -100,7 +100,7 @@ struct vnode {
long v_writecount; /* reference count of writers */
long v_holdcnt; /* page & buffer references */
struct mount *v_mount; /* ptr to vfs we are in */
int (**v_op) __P((void *)); /* vnode operations vector */
int (**v_op)(void *); /* vnode operations vector */
TAILQ_ENTRY(vnode) v_freelist; /* vnode freelist */
LIST_ENTRY(vnode) v_mntvnodes; /* vnodes for mount point */
struct buflists v_cleanblkhd; /* clean blocklist head */

View File

@ -1,4 +1,4 @@
/* $NetBSD: wait.h,v 1.21 2003/09/20 14:59:56 cl Exp $ */
/* $NetBSD: wait.h,v 1.22 2005/02/03 19:20:02 perry Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993, 1994
@ -171,11 +171,11 @@ union wait {
__BEGIN_DECLS
struct rusage; /* forward declaration */
pid_t wait __P((int *));
pid_t waitpid __P((pid_t, int *, int));
pid_t wait(int *);
pid_t waitpid(pid_t, int *, int);
#if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)
pid_t wait3 __P((int *, int, struct rusage *));
pid_t wait4 __P((pid_t, int *, int, struct rusage *));
pid_t wait3(int *, int, struct rusage *);
pid_t wait4(pid_t, int *, int, struct rusage *);
#endif
__END_DECLS
#endif