1 /* $NetBSD: svr4_32_stropts.h,v 1.1 2001/02/06 16:37:59 eeh Exp $ */
2
3 /*-
4 * Copyright (c) 1994 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Christos Zoulas.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the NetBSD
21 * Foundation, Inc. and its contributors.
22 * 4. Neither the name of The NetBSD Foundation nor the names of its
23 * contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39 #ifndef _SVR4_32_STROPTS_H_
40 #define _SVR4_32_STROPTS_H_
41
42 #include <compat/svr4/svr4_stropts.h>
43
44 struct svr4_32_strbuf {
45 int maxlen;
46 int len;
47 netbsd32_charp buf;
48 };
49 typedef netbsd32_caddr_t svr4_32_strbufp;
50
51 /* Struct passed for SVR4_I_STR */
52 struct svr4_32_strioctl {
53 netbsd32_u_long cmd;
54 int timeout;
55 int len;
56 netbsd32_charp buf;
57 };
58 typedef netbsd32_caddr_t svr4_32_strioctlp;
59 typedef netbsd32_caddr_t svr4_32_strmp;
60
61 /*
62 * The following structures are determined empirically.
63 */
64 struct svr4_32_strmcmd {
65 netbsd32_long cmd; /* command ? */
66 netbsd32_long len; /* Address len */
67 netbsd32_long offs; /* Address offset */
68 netbsd32_long pad[61];
69 };
70 typedef netbsd32_caddr_t svr4_32_strmcmdp;
71
72 struct svr4_32_infocmd {
73 netbsd32_long cmd;
74 netbsd32_long tsdu;
75 netbsd32_long etsdu;
76 netbsd32_long cdata;
77 netbsd32_long ddata;
78 netbsd32_long addr;
79 netbsd32_long opt;
80 netbsd32_long tidu;
81 netbsd32_long serv;
82 netbsd32_long current;
83 netbsd32_long provider;
84 };
85 typedef netbsd32_caddr_t svr4_32_infocmdp;
86
87 struct svr4_32_strfdinsert {
88 struct svr4_32_strbuf ctl;
89 struct svr4_32_strbuf data;
90 netbsd32_long flags;
91 int fd;
92 int offset;
93 };
94 typedef netbsd32_caddr_t svr4_32_strfdinsertp;
95
96 struct svr4_32_netaddr_in {
97 u_short family;
98 u_short port;
99 netbsd32_u_long addr;
100 };
101 typedef netbsd32_caddr_t svr4_32_netaddr_inp;
102
103 struct svr4_32_netaddr_un {
104 u_short family;
105 char path[1];
106 };
107 typedef netbsd32_caddr_t svr4_32_netaddr_unp;
108
109 struct svr4_strm *svr4_32_stream_get __P((struct file *fp));
110
111 #endif /* !_SVR4_32_STROPTS */
Cache object: 642f5a78ad51b534b4ef4843d5122323
|