Moved prototypes for soo_{read,write,close} into socketvar.h where they
belong. Suggested by: bde
This commit is contained in:
parent
57a476899d
commit
9cbac9cee4
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)sys_socket.c 8.1 (Berkeley) 6/10/93
|
||||
* $Id: sys_socket.c,v 1.21 1999/01/31 03:15:13 newton Exp $
|
||||
* $Id: sys_socket.c,v 1.22 1999/02/01 13:24:39 newton Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -49,11 +49,6 @@
|
||||
#include <net/if.h>
|
||||
#include <net/route.h>
|
||||
|
||||
/* soo_{read,write,close} non-static for SysVR4 "streams" pseudo-device */
|
||||
int soo_read __P((struct file *fp, struct uio *uio, struct ucred *cred));
|
||||
int soo_write __P((struct file *fp, struct uio *uio, struct ucred *cred));
|
||||
int soo_close __P((struct file *fp, struct proc *p));
|
||||
|
||||
struct fileops socketops =
|
||||
{ soo_read, soo_write, soo_ioctl, soo_poll, soo_close };
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)socketvar.h 8.3 (Berkeley) 2/19/95
|
||||
* $Id: socketvar.h,v 1.34 1999/01/30 06:26:35 newton Exp $
|
||||
* $Id: socketvar.h,v 1.35 1999/01/31 09:40:14 bde Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_SOCKETVAR_H_
|
||||
@ -287,6 +287,9 @@ struct uio;
|
||||
/*
|
||||
* File operations on sockets.
|
||||
*/
|
||||
int soo_read __P((struct file *fp, struct uio *uio, struct ucred *cred));
|
||||
int soo_write __P((struct file *fp, struct uio *uio, struct ucred *cred));
|
||||
int soo_close __P((struct file *fp, struct proc *p));
|
||||
int soo_ioctl __P((struct file *fp, u_long cmd, caddr_t data,
|
||||
struct proc *p));
|
||||
int soo_poll __P((struct file *fp, int events, struct ucred *cred,
|
||||
|
Loading…
Reference in New Issue
Block a user