1 /* $NetBSD: svr4_32_stropts.h,v 1.5 2008/04/28 20:23:46 martin 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 *
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 */
31
32 #ifndef _SVR4_32_STROPTS_H_
33 #define _SVR4_32_STROPTS_H_
34
35 #include <compat/svr4/svr4_stropts.h>
36
37 struct svr4_32_strbuf {
38 int maxlen;
39 int len;
40 netbsd32_charp buf;
41 };
42 typedef netbsd32_caddr_t svr4_32_strbufp;
43
44 /* Struct passed for SVR4_I_STR */
45 struct svr4_32_strioctl {
46 netbsd32_u_long cmd;
47 int timeout;
48 int len;
49 netbsd32_charp buf;
50 };
51 typedef netbsd32_caddr_t svr4_32_strioctlp;
52 typedef netbsd32_caddr_t svr4_32_strmp;
53
54 /*
55 * The following structures are determined empirically.
56 */
57 struct svr4_32_strmcmd {
58 netbsd32_long cmd; /* command ? */
59 netbsd32_long len; /* Address len */
60 netbsd32_long offs; /* Address offset */
61 netbsd32_long pad[61];
62 };
63 typedef netbsd32_caddr_t svr4_32_strmcmdp;
64
65 struct svr4_32_infocmd {
66 netbsd32_long cmd;
67 netbsd32_long tsdu;
68 netbsd32_long etsdu;
69 netbsd32_long cdata;
70 netbsd32_long ddata;
71 netbsd32_long addr;
72 netbsd32_long opt;
73 netbsd32_long tidu;
74 netbsd32_long serv;
75 netbsd32_long current;
76 netbsd32_long provider;
77 };
78 typedef netbsd32_caddr_t svr4_32_infocmdp;
79
80 struct svr4_32_strfdinsert {
81 struct svr4_32_strbuf ctl;
82 struct svr4_32_strbuf data;
83 netbsd32_long flags;
84 int fd;
85 int offset;
86 };
87 typedef netbsd32_caddr_t svr4_32_strfdinsertp;
88
89 struct svr4_32_netaddr_in {
90 u_short family;
91 u_short port;
92 netbsd32_u_long addr;
93 };
94 typedef netbsd32_caddr_t svr4_32_netaddr_inp;
95
96 struct svr4_32_netaddr_un {
97 u_short family;
98 char path[1];
99 };
100 typedef netbsd32_caddr_t svr4_32_netaddr_unp;
101
102 struct svr4_strm *svr4_32_stream_get(struct file *fp);
103
104 #endif /* !_SVR4_32_STROPTS */
Cache object: 7a7bc89d48e832b731b6d48a151db74c
|