Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / compat / svr4_32 / svr4_32_stropts.h
blob9cec40433aadf7bd8af0e49633ba4f87074de75f
1 /* $NetBSD: svr4_32_stropts.h,v 1.4 2007/12/04 18:40:26 dsl Exp $ */
3 /*-
4 * Copyright (c) 1994 The NetBSD Foundation, Inc.
5 * All rights reserved.
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Christos Zoulas.
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.
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 {
38 int maxlen;
39 int len;
40 netbsd32_charp buf;
42 typedef netbsd32_caddr_t svr4_32_strbufp;
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;
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 {
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;
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;
83 netbsd32_long flags;
84 int fd;
85 int offset;
87 typedef netbsd32_caddr_t svr4_32_strfdinsertp;
89 struct svr4_32_netaddr_in {
90 u_short family;
91 u_short port;
92 netbsd32_u_long addr;
94 typedef netbsd32_caddr_t svr4_32_netaddr_inp;
96 struct svr4_32_netaddr_un {
97 u_short family;
98 char path[1];
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 */