1 /* $NetBSD: svr4_32_stropts.h,v 1.4 2007/12/04 18:40:26 dsl Exp $ */
4 * Copyright (c) 1994 The NetBSD Foundation, Inc.
7 * This code is derived from software contributed to The NetBSD Foundation
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
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.
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.
32 #ifndef _SVR4_32_STROPTS_H_
33 #define _SVR4_32_STROPTS_H_
35 #include <compat/svr4/svr4_stropts.h>
37 struct svr4_32_strbuf
{
42 typedef netbsd32_caddr_t svr4_32_strbufp
;
44 /* Struct passed for SVR4_I_STR */
45 struct svr4_32_strioctl
{
51 typedef netbsd32_caddr_t svr4_32_strioctlp
;
52 typedef netbsd32_caddr_t svr4_32_strmp
;
55 * The following structures are determined empirically.
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];
63 typedef netbsd32_caddr_t svr4_32_strmcmdp
;
65 struct svr4_32_infocmd
{
75 netbsd32_long current
;
76 netbsd32_long provider
;
78 typedef netbsd32_caddr_t svr4_32_infocmdp
;
80 struct svr4_32_strfdinsert
{
81 struct svr4_32_strbuf ctl
;
82 struct svr4_32_strbuf data
;
87 typedef netbsd32_caddr_t svr4_32_strfdinsertp
;
89 struct svr4_32_netaddr_in
{
94 typedef netbsd32_caddr_t svr4_32_netaddr_inp
;
96 struct svr4_32_netaddr_un
{
100 typedef netbsd32_caddr_t svr4_32_netaddr_unp
;
102 struct svr4_strm
*svr4_32_stream_get(struct file
*fp
);
104 #endif /* !_SVR4_32_STROPTS */