summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-03-17 07:30:08 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-03-17 07:30:08 +0000
commitd7664246ef9666457816c244c7766878b547f171 (patch)
tree0087a2549c4f9ed4588d1a58c829fcb0b76c1018
parent2007-03-17 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-d7664246ef9666457816c244c7766878b547f171.tar.bz2
Remove __P().
-rw-r--r--cpukit/libnetworking/sys/buf.h98
-rw-r--r--cpukit/libnetworking/sys/conf.h68
2 files changed, 83 insertions, 83 deletions
diff --git a/cpukit/libnetworking/sys/buf.h b/cpukit/libnetworking/sys/buf.h
index 8fbf734cbe..1bcfe4c0bf 100644
--- a/cpukit/libnetworking/sys/buf.h
+++ b/cpukit/libnetworking/sys/buf.h
@@ -50,7 +50,7 @@ struct buf;
struct iodone_chain {
long ic_prev_flags;
- void (*ic_prev_iodone) __P((struct buf *));
+ void (*ic_prev_iodone)(struct buf *);
void *ic_prev_iodone_chain;
struct {
long ia_long;
@@ -86,7 +86,7 @@ struct buf {
daddr_t b_lblkno; /* Logical block number. */
daddr_t b_blkno; /* Underlying physical block number. */
/* Function to call upon completion. */
- void (*b_iodone) __P((struct buf *));
+ void (*b_iodone)(struct buf *);
/* For nested b_iodone's. */
struct iodone_chain *b_iodone_chain;
struct vnode *b_vp; /* Device vnode. */
@@ -195,54 +195,54 @@ extern struct buf *swbuf; /* Swap I/O buffer headers. */
extern int nswbuf; /* Number of swap I/O buffer headers. */
extern TAILQ_HEAD(swqueue, buf) bswlist;
-void bufinit __P((void));
-void bremfree __P((struct buf *));
-int bread __P((struct vnode *, daddr_t, int,
- struct ucred *, struct buf **));
-int breadn __P((struct vnode *, daddr_t, int, daddr_t *, int *, int,
- struct ucred *, struct buf **));
-int bwrite __P((struct buf *));
-void bdwrite __P((struct buf *));
-void bawrite __P((struct buf *));
-int bowrite __P((struct buf *));
-void brelse __P((struct buf *));
-void bqrelse __P((struct buf *));
-int vfs_bio_awrite __P((struct buf *));
-struct buf * getpbuf __P((void));
-struct buf *incore __P((struct vnode *, daddr_t));
-struct buf *gbincore __P((struct vnode *, daddr_t));
-int inmem __P((struct vnode *, daddr_t));
-struct buf *getblk __P((struct vnode *, daddr_t, int, int, int));
-struct buf *geteblk __P((int));
-int allocbuf __P((struct buf *, int));
-int biowait __P((struct buf *));
-void biodone __P((struct buf *));
-
-void cluster_callback __P((struct buf *));
-int cluster_read __P((struct vnode *, u_quad_t, daddr_t, long,
- struct ucred *, struct buf **));
-int cluster_wbuild __P((struct vnode *, long, daddr_t, int));
-void cluster_write __P((struct buf *, u_quad_t));
-int physio __P((void (*)(struct buf *), struct buf *, dev_t,
- int, u_int (*)(struct buf *), struct uio *));
-u_int minphys __P((struct buf *));
-void vfs_bio_clrbuf __P((struct buf *));
-void vfs_busy_pages __P((struct buf *, int clear_modify));
+void bufinit(void);
+void bremfree(struct buf *);
+int bread(struct vnode *, daddr_t, int,
+ struct ucred *, struct buf **);
+int breadn(struct vnode *, daddr_t, int, daddr_t *, int *, int,
+ struct ucred *, struct buf **);
+int bwrite(struct buf *);
+void bdwrite(struct buf *);
+void bawrite(struct buf *);
+int bowrite(struct buf *);
+void brelse(struct buf *);
+void bqrelse(struct buf *);
+int vfs_bio_awrite(struct buf *);
+struct buf * getpbuf(void);
+struct buf *incore(struct vnode *, daddr_t);
+struct buf *gbincore(struct vnode *, daddr_t);
+int inmem(struct vnode *, daddr_t);
+struct buf *getblk(struct vnode *, daddr_t, int, int, int);
+struct buf *geteblk(int);
+int allocbuf(struct buf *, int);
+int biowait(struct buf *);
+void biodone(struct buf *);
+
+void cluster_callback(struct buf *);
+int cluster_read(struct vnode *, u_quad_t, daddr_t, long,
+ struct ucred *, struct buf **);
+int cluster_wbuild(struct vnode *, long, daddr_t, int);
+void cluster_write(struct buf *, u_quad_t);
+int physio(void (*)(struct buf *), struct buf *, dev_t,
+ int, u_int (*)(struct buf *), struct uio *);
+u_int minphys(struct buf *);
+void vfs_bio_clrbuf(struct buf *);
+void vfs_busy_pages(struct buf *, int clear_modify);
void vfs_unbusy_pages(struct buf *);
-void vwakeup __P((struct buf *));
-void vmapbuf __P((struct buf *));
-void vunmapbuf __P((struct buf *));
-void relpbuf __P((struct buf *));
-void brelvp __P((struct buf *));
-void bgetvp __P((struct vnode *, struct buf *));
-void pbgetvp __P((struct vnode *, struct buf *));
-void pbrelvp __P((struct buf *));
-void reassignbuf __P((struct buf *, struct vnode *));
-struct buf *trypbuf __P((void));
-void vm_bounce_alloc __P((struct buf *));
-void vm_bounce_free __P((struct buf *));
-vm_offset_t vm_bounce_kva_alloc __P((int));
-void vm_bounce_kva_alloc_free __P((vm_offset_t, int));
+void vwakeup(struct buf *);
+void vmapbuf(struct buf *);
+void vunmapbuf(struct buf *);
+void relpbuf(struct buf *);
+void brelvp(struct buf *);
+void bgetvp(struct vnode *, struct buf *);
+void pbgetvp(struct vnode *, struct buf *);
+void pbrelvp(struct buf *);
+void reassignbuf(struct buf *, struct vnode *);
+struct buf *trypbuf(void);
+void vm_bounce_alloc(struct buf *);
+void vm_bounce_free(struct buf *);
+vm_offset_t vm_bounce_kva_alloc(int);
+void vm_bounce_kva_alloc_free(vm_offset_t, int);
#endif /* _KERNEL */
#endif /* !_SYS_BUF_H_ */
diff --git a/cpukit/libnetworking/sys/conf.h b/cpukit/libnetworking/sys/conf.h
index 5a9cacde1e..fb6fecc160 100644
--- a/cpukit/libnetworking/sys/conf.h
+++ b/cpukit/libnetworking/sys/conf.h
@@ -52,31 +52,31 @@ struct tty;
struct uio;
struct vnode;
-typedef int d_open_t __P((dev_t dev, int oflags, int devtype, struct proc *p));
-typedef int d_close_t __P((dev_t dev, int fflag, int devtype, struct proc *p));
-typedef void d_strategy_t __P((struct buf *bp));
-typedef int d_ioctl_t __P((dev_t dev, int cmd, caddr_t data,
- int fflag, struct proc *p));
-typedef int d_dump_t __P((dev_t dev));
-typedef int d_psize_t __P((dev_t dev));
-
-typedef int d_read_t __P((dev_t dev, struct uio *uio, int ioflag));
-typedef int d_write_t __P((dev_t dev, struct uio *uio, int ioflag));
-typedef void d_stop_t __P((struct tty *tp, int rw));
-typedef int d_reset_t __P((dev_t dev));
-typedef struct tty *d_devtotty_t __P((dev_t dev));
-typedef int d_select_t __P((dev_t dev, int which, struct proc *p));
-typedef int d_mmap_t __P((dev_t dev, int offset, int nprot));
-
-typedef int l_open_t __P((dev_t dev, struct tty *tp));
-typedef int l_close_t __P((struct tty *tp, int flag));
-typedef int l_read_t __P((struct tty *tp, struct uio *uio, int flag));
-typedef int l_write_t __P((struct tty *tp, struct uio *uio, int flag));
-typedef int l_ioctl_t __P((struct tty *tp, int cmd, caddr_t data,
- int flag, struct proc *p));
-typedef int l_rint_t __P((int c, struct tty *tp));
-typedef int l_start_t __P((struct tty *tp));
-typedef int l_modem_t __P((struct tty *tp, int flag));
+typedef int d_open_t(dev_t dev, int oflags, int devtype, struct proc *p);
+typedef int d_close_t(dev_t dev, int fflag, int devtype, struct proc *p);
+typedef void d_strategy_t(struct buf *bp);
+typedef int d_ioctl_t(dev_t dev, int cmd, caddr_t data,
+ int fflag, struct proc *p);
+typedef int d_dump_t(dev_t dev);
+typedef int d_psize_t(dev_t dev);
+
+typedef int d_read_t(dev_t dev, struct uio *uio, int ioflag);
+typedef int d_write_t(dev_t dev, struct uio *uio, int ioflag);
+typedef void d_stop_t(struct tty *tp, int rw);
+typedef int d_reset_t(dev_t dev);
+typedef struct tty *d_devtotty_t(dev_t dev);
+typedef int d_select_t(dev_t dev, int which, struct proc *p);
+typedef int d_mmap_t(dev_t dev, int offset, int nprot);
+
+typedef int l_open_t(dev_t dev, struct tty *tp);
+typedef int l_close_t(struct tty *tp, int flag);
+typedef int l_read_t(struct tty *tp, struct uio *uio, int flag);
+typedef int l_write_t(struct tty *tp, struct uio *uio, int flag);
+typedef int l_ioctl_t(struct tty *tp, int cmd, caddr_t data,
+ int flag, struct proc *p);
+typedef int l_rint_t(int c, struct tty *tp);
+typedef int l_start_t(struct tty *tp);
+typedef int l_modem_t(struct tty *tp, int flag);
/*
* Block device switch table
@@ -189,15 +189,15 @@ d_write_t rawwrite;
l_read_t l_noread;
l_write_t l_nowrite;
-int bdevsw_add __P((dev_t *descrip,struct bdevsw *new,struct bdevsw **old));
-int cdevsw_add __P((dev_t *descrip,struct cdevsw *new,struct cdevsw **old));
-void cdevsw_make __P((struct bdevsw *from));
-void bdevsw_add_generic __P((int bdev, int cdev, struct bdevsw *bdevsw));
-dev_t chrtoblk __P((dev_t dev));
-int isdisk __P((dev_t dev, int type));
-int iskmemdev __P((dev_t dev));
-int iszerodev __P((dev_t dev));
-void setconf __P((void));
+int bdevsw_add(dev_t *descrip,struct bdevsw *new,struct bdevsw **old);
+int cdevsw_add(dev_t *descrip,struct cdevsw *new,struct cdevsw **old);
+void cdevsw_make(struct bdevsw *from);
+void bdevsw_add_generic(int bdev, int cdev, struct bdevsw *bdevsw);
+dev_t chrtoblk(dev_t dev);
+int isdisk(dev_t dev, int type);
+int iskmemdev(dev_t dev);
+int iszerodev(dev_t dev);
+void setconf(void);
#endif /* _KERNEL */
#include <machine/conf.h>