consistency with tty.c about value for "no pgrp"
[unix-history] / usr / src / sys / kern / uipc_proto.c
CommitLineData
f406ae69
KB
1/*-
2 * Copyright (c) 1982, 1986 The Regents of the University of California.
5b519e94 3 * All rights reserved.
da7c5cc6 4 *
f406ae69 5 * %sccs.include.redist.c%
5b519e94 6 *
f406ae69 7 * @(#)uipc_proto.c 7.6 (Berkeley) %G%
da7c5cc6 8 */
07d8f161 9
94368568
JB
10#include "param.h"
11#include "socket.h"
12#include "protosw.h"
13#include "domain.h"
14#include "mbuf.h"
07d8f161 15
d0e67d5f 16/*
a5eafe8a 17 * Definitions of protocols supported in the UNIX domain.
d0e67d5f
BJ
18 */
19
a5eafe8a 20int uipc_usrreq();
0649e349 21int raw_init(),raw_usrreq(),raw_input(),raw_ctlinput();
261a8548 22extern struct domain unixdomain; /* or at least forward */
8f4851aa 23
a5eafe8a 24struct protosw unixsw[] = {
430b56ec 25{ SOCK_STREAM, &unixdomain, 0, PR_CONNREQUIRED|PR_WANTRCVD|PR_RIGHTS,
07d8f161 26 0, 0, 0, 0,
a5eafe8a 27 uipc_usrreq,
07d8f161 28 0, 0, 0, 0,
cc15ab5d 29},
261a8548 30{ SOCK_DGRAM, &unixdomain, 0, PR_ATOMIC|PR_ADDR|PR_RIGHTS,
07d8f161 31 0, 0, 0, 0,
a5eafe8a 32 uipc_usrreq,
cc15ab5d
BJ
33 0, 0, 0, 0,
34},
8f4851aa 35{ 0, 0, 0, 0,
0649e349 36 raw_input, 0, raw_ctlinput, 0,
8f4851aa
BJ
37 raw_usrreq,
38 raw_init, 0, 0, 0,
8f4851aa 39}
d0e67d5f 40};
cc15ab5d 41
261a8548
MK
42int unp_externalize(), unp_dispose();
43
a5eafe8a 44struct domain unixdomain =
261a8548
MK
45 { AF_UNIX, "unix", 0, unp_externalize, unp_dispose,
46 unixsw, &unixsw[sizeof(unixsw)/sizeof(unixsw[0])] };