diff options
author | Miles Bader <miles@gnu.org> | 1995-07-17 20:47:13 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-07-17 20:47:13 +0000 |
commit | 2eeed9f09885325c1cc77a35b1846edb29a09aa0 (patch) | |
tree | 5ab3c449107bf0109c658f207f3b730a96a927af /pflocal | |
parent | e4218d1308dd1ec4305c483dcfdf623e211ac73c (diff) |
Formerly pf.c.~7~
Diffstat (limited to 'pflocal')
-rw-r--r-- | pflocal/pf.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/pflocal/pf.c b/pflocal/pf.c index fff79115..0f0e2d9c 100644 --- a/pflocal/pf.c +++ b/pflocal/pf.c @@ -18,23 +18,22 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include "sock.h" +#include <sys/socket.h> -/* temp XXX */ -#include <mach/mach.h> -typedef mach_port_t pf_t; +#include "sock.h" +#include "pipe.h" #include "socket_S.h" /* Create a new socket. Sock type is, for example, SOCK_STREAM, SOCK_DGRAM, or some such. */ +error_t S_socket_create (mach_port_t pf, int sock_type, int protocol, mach_port_t *port, mach_msg_type_name_t *port_type) { error_t err; struct sock *sock; - struct sock_user *user; struct pipe_class *pipe_class; if (protocol != 0) @@ -61,21 +60,25 @@ S_socket_create (mach_port_t pf, return err; } +error_t S_socket_create_address (mach_port_t pf, int sockaddr_type, - char *data, unsigned data_len, + char *data, size_t data_len, mach_port_t *addr_port, - mach_msg_type_name_t *addr_port_type) + mach_msg_type_name_t *addr_port_type, + int binding) { return EOPNOTSUPP; } +error_t S_socket_fabricate_address (mach_port_t pf, int sockaddr_type, mach_port_t *addr_port, mach_msg_type_name_t *addr_port_type) { error_t err; + struct addr *addr; if (sockaddr_type != AF_LOCAL) return EAFNOSUPPORT; @@ -90,9 +93,10 @@ S_socket_fabricate_address (mach_port_t pf, return 0; } -S_socket_whatis_address (mach_port_t pf, +error_t +S_socket_whatis_address (struct addr *addr, int *sockaddr_type, - char **sockaddr, unsigned *sockaddr_len) + char **sockaddr, size_t *sockaddr_len) { return EOPNOTSUPP; } |