blob: affc9355c256227303cd909701e175180fd075e7 [file] [log] [blame]
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00001/*
2 * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3 * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4 * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +00005 * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
Roland McGrathe1e584b2003-06-02 19:18:58 +00006 * Copyright (c) 2000 PocketPenguins Inc. Linux for Hitachi SuperH
7 * port by Greg Banks <gbanks@pocketpenguins.com>
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00008 * All rights reserved.
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. The name of the author may not be used to endorse or promote products
19 * derived from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000031 */
32
33#include "defs.h"
Roland McGrath05cdd3c2004-03-02 06:16:59 +000034#include <asm/mman.h>
Wichert Akkerman2e2553a1999-05-09 00:29:58 +000035#include <sys/mman.h>
Denys Vlasenko1ba85432013-02-19 11:28:20 +010036
Dmitry V. Levinea1fea62015-03-31 19:45:08 +000037unsigned long
38get_pagesize(void)
Dmitry V. Levinc76a3632013-03-05 14:58:24 +000039{
40 static unsigned long pagesize;
41
42 if (!pagesize)
43 pagesize = sysconf(_SC_PAGESIZE);
44 return pagesize;
45}
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000046
Dmitry V. Levina0bd3742015-04-07 01:36:50 +000047SYS_FUNC(brk)
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000048{
Dmitry V. Levin85813ce2015-07-19 23:37:40 +000049 printaddr(tcp->u_arg[0]);
50
51 return RVAL_DECODED | RVAL_HEX;
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000052}
53
Dmitry V. Levin0ed617b2014-04-25 23:30:54 +000054#include "xlat/mmap_prot.h"
Dmitry V. Levin0ed617b2014-04-25 23:30:54 +000055#include "xlat/mmap_flags.h"
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000056
Dmitry V. Levin85813ce2015-07-19 23:37:40 +000057static void
Denys Vlasenko923255c2013-02-18 02:36:36 +010058print_mmap(struct tcb *tcp, long *u_arg, unsigned long long offset)
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000059{
Dmitry V. Levin3ae86902016-04-01 15:31:23 +000060 const unsigned long addr = u_arg[0];
61 const unsigned long len = u_arg[1];
62 const unsigned long prot = u_arg[2];
63 const unsigned long flags = u_arg[3];
64 const int fd = u_arg[4];
65
66 printaddr(addr);
67 tprintf(", %lu, ", len);
Dmitry V. Levin11681142016-05-16 22:58:45 +000068 printflags_long(mmap_prot, prot, "PROT_???");
Dmitry V. Levin85813ce2015-07-19 23:37:40 +000069 tprints(", ");
Wichert Akkermanbf79f2e2000-09-01 21:03:06 +000070#ifdef MAP_TYPE
Dmitry V. Levin11681142016-05-16 22:58:45 +000071 printxval_long(mmap_flags, flags & MAP_TYPE, "MAP_???");
Dmitry V. Levin3ae86902016-04-01 15:31:23 +000072 addflags(mmap_flags, flags & ~MAP_TYPE);
Wichert Akkermanbf79f2e2000-09-01 21:03:06 +000073#else
Dmitry V. Levin11681142016-05-16 22:58:45 +000074 printflags_long(mmap_flags, flags, "MAP_???");
Wichert Akkermanbf79f2e2000-09-01 21:03:06 +000075#endif
Dmitry V. Levin85813ce2015-07-19 23:37:40 +000076 tprints(", ");
Dmitry V. Levin3ae86902016-04-01 15:31:23 +000077 printfd(tcp, fd);
Dmitry V. Levin85813ce2015-07-19 23:37:40 +000078 tprintf(", %#llx", offset);
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000079}
80
Denys Vlasenko1ba85432013-02-19 11:28:20 +010081/* Syscall name<->function correspondence is messed up on many arches.
82 * For example:
83 * i386 has __NR_mmap == 90, and it is "old mmap", and
84 * also it has __NR_mmap2 == 192, which is a "new mmap with page offsets".
85 * But x86_64 has just one __NR_mmap == 9, a "new mmap with byte offsets".
86 * Confused? Me too!
87 */
88
Dmitry V. Levinbc724ce2016-04-22 23:36:26 +000089#if defined AARCH64 || defined ARM \
90 || defined I386 || defined X86_64 || defined X32 \
91 || defined M68K \
92 || defined S390 || defined S390X
Denys Vlasenko1ba85432013-02-19 11:28:20 +010093/* Params are pointed to by u_arg[0], offset is in bytes */
Dmitry V. Levina0bd3742015-04-07 01:36:50 +000094SYS_FUNC(old_mmap)
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +000095{
Denys Vlasenko1ba85432013-02-19 11:28:20 +010096 long u_arg[6];
Dmitry V. Levincf527782016-04-22 23:47:46 +000097# if defined AARCH64 || defined X86_64
98 /* We are here only in a 32-bit personality. */
Dmitry V. Levin3db07f12016-04-22 23:41:36 +000099 unsigned int narrow_arg[6];
100 if (umove_or_printaddr(tcp, tcp->u_arg[0], &narrow_arg))
101 return RVAL_DECODED | RVAL_HEX;
102 unsigned int i;
103 for (i = 0; i < 6; i++)
104 u_arg[i] = narrow_arg[i];
Dmitry V. Levinbc724ce2016-04-22 23:36:26 +0000105# else
Dmitry V. Levin3db07f12016-04-22 23:41:36 +0000106 if (umove_or_printaddr(tcp, tcp->u_arg[0], &u_arg))
107 return RVAL_DECODED | RVAL_HEX;
Dmitry V. Levinbc724ce2016-04-22 23:36:26 +0000108# endif
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000109 print_mmap(tcp, u_arg, (unsigned long) u_arg[5]);
110
111 return RVAL_DECODED | RVAL_HEX;
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +0000112}
Dmitry V. Levinbc724ce2016-04-22 23:36:26 +0000113#endif /* old_mmap architectures */
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +0000114
Denys Vlasenko1ba85432013-02-19 11:28:20 +0100115#if defined(S390)
116/* Params are pointed to by u_arg[0], offset is in pages */
Dmitry V. Levina0bd3742015-04-07 01:36:50 +0000117SYS_FUNC(old_mmap_pgoff)
Denys Vlasenko1ba85432013-02-19 11:28:20 +0100118{
119 long u_arg[5];
120 int i;
121 unsigned narrow_arg[6];
122 unsigned long long offset;
Denys Vlasenko7e69ed92015-03-21 19:50:53 +0100123 if (umoven(tcp, tcp->u_arg[0], sizeof(narrow_arg), narrow_arg) == -1)
Denys Vlasenko1ba85432013-02-19 11:28:20 +0100124 return 0;
125 for (i = 0; i < 5; i++)
126 u_arg[i] = (unsigned long) narrow_arg[i];
127 offset = narrow_arg[5];
Dmitry V. Levinc76a3632013-03-05 14:58:24 +0000128 offset *= get_pagesize();
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000129 print_mmap(tcp, u_arg, offset);
130
131 return RVAL_DECODED | RVAL_HEX;
Denys Vlasenko1ba85432013-02-19 11:28:20 +0100132}
133#endif
134
135/* Params are passed directly, offset is in bytes */
Dmitry V. Levina0bd3742015-04-07 01:36:50 +0000136SYS_FUNC(mmap)
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +0000137{
Dmitry V. Levinb0c51132016-06-17 16:12:13 +0000138 unsigned long long offset =
139#if HAVE_STRUCT_TCB_EXT_ARG
140 tcp->ext_arg[5]; /* try test/x32_mmap.c */
141#else
142 (unsigned long) tcp->u_arg[5];
Roland McGrath542c2c62008-05-20 01:11:56 +0000143#endif
Denys Vlasenko1ba85432013-02-19 11:28:20 +0100144 /* Example of kernel-side handling of this variety of mmap:
145 * arch/x86/kernel/sys_x86_64.c::SYSCALL_DEFINE6(mmap, ...) calls
146 * sys_mmap_pgoff(..., off >> PAGE_SHIFT); i.e. off is in bytes,
147 * since the above code converts off to pages.
148 */
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000149 print_mmap(tcp, tcp->u_arg, offset);
150
151 return RVAL_DECODED | RVAL_HEX;
Denys Vlasenko1ba85432013-02-19 11:28:20 +0100152}
153
154/* Params are passed directly, offset is in pages */
Dmitry V. Levina0bd3742015-04-07 01:36:50 +0000155SYS_FUNC(mmap_pgoff)
Denys Vlasenko1ba85432013-02-19 11:28:20 +0100156{
157 /* Try test/mmap_offset_decode.c */
158 unsigned long long offset;
159 offset = (unsigned long) tcp->u_arg[5];
Dmitry V. Levinc76a3632013-03-05 14:58:24 +0000160 offset *= get_pagesize();
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000161 print_mmap(tcp, tcp->u_arg, offset);
162
163 return RVAL_DECODED | RVAL_HEX;
Denys Vlasenko1ba85432013-02-19 11:28:20 +0100164}
165
166/* Params are passed directly, offset is in 4k units */
Dmitry V. Levina0bd3742015-04-07 01:36:50 +0000167SYS_FUNC(mmap_4koff)
Denys Vlasenko1ba85432013-02-19 11:28:20 +0100168{
169 unsigned long long offset;
170 offset = (unsigned long) tcp->u_arg[5];
171 offset <<= 12;
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000172 print_mmap(tcp, tcp->u_arg, offset);
173
174 return RVAL_DECODED | RVAL_HEX;
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +0000175}
176
Dmitry V. Levina0bd3742015-04-07 01:36:50 +0000177SYS_FUNC(munmap)
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000178{
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000179 printaddr(tcp->u_arg[0]);
180 tprintf(", %lu", tcp->u_arg[1]);
181
182 return RVAL_DECODED;
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000183}
184
Dmitry V. Levina0bd3742015-04-07 01:36:50 +0000185SYS_FUNC(mprotect)
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000186{
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000187 printaddr(tcp->u_arg[0]);
188 tprintf(", %lu, ", tcp->u_arg[1]);
Dmitry V. Levin11681142016-05-16 22:58:45 +0000189 printflags_long(mmap_prot, tcp->u_arg[2], "PROT_???");
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000190
191 return RVAL_DECODED;
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000192}
193
Dmitry V. Levin0ed617b2014-04-25 23:30:54 +0000194#include "xlat/mremap_flags.h"
Wichert Akkerman2e2553a1999-05-09 00:29:58 +0000195
Dmitry V. Levina0bd3742015-04-07 01:36:50 +0000196SYS_FUNC(mremap)
Wichert Akkerman2e2553a1999-05-09 00:29:58 +0000197{
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000198 printaddr(tcp->u_arg[0]);
199 tprintf(", %lu, %lu, ", tcp->u_arg[1], tcp->u_arg[2]);
Dmitry V. Levin11681142016-05-16 22:58:45 +0000200 printflags_long(mremap_flags, tcp->u_arg[3], "MREMAP_???");
Dmitry V. Levinfdc45592009-12-24 23:34:58 +0000201#ifdef MREMAP_FIXED
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000202 if ((tcp->u_arg[3] & (MREMAP_MAYMOVE | MREMAP_FIXED)) ==
203 (MREMAP_MAYMOVE | MREMAP_FIXED)) {
204 tprints(", ");
205 printaddr(tcp->u_arg[4]);
Wichert Akkerman2e2553a1999-05-09 00:29:58 +0000206 }
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000207#endif
208 return RVAL_DECODED | RVAL_HEX;
Wichert Akkerman2e2553a1999-05-09 00:29:58 +0000209}
210
Dmitry V. Levin0ed617b2014-04-25 23:30:54 +0000211#include "xlat/madvise_cmds.h"
Wichert Akkermanc7926982000-04-10 22:22:31 +0000212
Dmitry V. Levina0bd3742015-04-07 01:36:50 +0000213SYS_FUNC(madvise)
Wichert Akkermanc7926982000-04-10 22:22:31 +0000214{
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000215 printaddr(tcp->u_arg[0]);
216 tprintf(", %lu, ", tcp->u_arg[1]);
217 printxval(madvise_cmds, tcp->u_arg[2], "MADV_???");
218
219 return RVAL_DECODED;
Wichert Akkermanc7926982000-04-10 22:22:31 +0000220}
221
Dmitry V. Levin0ed617b2014-04-25 23:30:54 +0000222#include "xlat/mlockall_flags.h"
Wichert Akkermanc7926982000-04-10 22:22:31 +0000223
Dmitry V. Levina0bd3742015-04-07 01:36:50 +0000224SYS_FUNC(mlockall)
Wichert Akkermanc7926982000-04-10 22:22:31 +0000225{
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000226 printflags(mlockall_flags, tcp->u_arg[0], "MCL_???");
227
228 return RVAL_DECODED;
Wichert Akkermanc7926982000-04-10 22:22:31 +0000229}
230
Dmitry V. Levin0ed617b2014-04-25 23:30:54 +0000231#include "xlat/mctl_sync.h"
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000232
Dmitry V. Levina0bd3742015-04-07 01:36:50 +0000233SYS_FUNC(msync)
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000234{
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000235 /* addr */
236 printaddr(tcp->u_arg[0]);
237 /* len */
238 tprintf(", %lu, ", tcp->u_arg[1]);
239 /* flags */
240 printflags(mctl_sync, tcp->u_arg[2], "MS_???");
241
242 return RVAL_DECODED;
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000243}
244
Dmitry V. Levin0d0a50a2015-11-15 02:35:57 +0000245#include "xlat/mlock_flags.h"
246
247SYS_FUNC(mlock2)
248{
249 printaddr(tcp->u_arg[0]);
250 tprintf(", %lu, ", tcp->u_arg[1]);
251 printflags(mlock_flags, tcp->u_arg[2], "MLOCK_???");
252
253 return RVAL_DECODED;
254}
255
Dmitry V. Levina0bd3742015-04-07 01:36:50 +0000256SYS_FUNC(mincore)
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000257{
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000258 if (entering(tcp)) {
Dmitry V. Levin2c389f62015-07-19 23:25:56 +0000259 printaddr(tcp->u_arg[0]);
260 tprintf(", %lu, ", tcp->u_arg[1]);
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000261 } else {
Dmitry V. Levindfea1da2016-01-29 01:51:54 +0000262 const unsigned long page_size = get_pagesize();
263 const unsigned long page_mask = page_size - 1;
264 unsigned long len = tcp->u_arg[1];
265 unsigned char *vec = NULL;
Denys Vlasenko1d46ba52011-08-31 14:00:02 +0200266
Dmitry V. Levindfea1da2016-01-29 01:51:54 +0000267 len = len / page_size + (len & page_mask ? 1 : 0);
Dmitry V. Levin2c389f62015-07-19 23:25:56 +0000268 if (syserror(tcp) || !verbose(tcp) ||
269 !tcp->u_arg[2] || !(vec = malloc(len)) ||
270 umoven(tcp, tcp->u_arg[2], len, vec) < 0)
271 printaddr(tcp->u_arg[2]);
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000272 else {
Dmitry V. Levindfea1da2016-01-29 01:51:54 +0000273 unsigned long i;
Denys Vlasenko60fe8c12011-09-01 10:00:28 +0200274 tprints("[");
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000275 for (i = 0; i < len; i++) {
276 if (abbrev(tcp) && i >= max_strlen) {
Denys Vlasenko60fe8c12011-09-01 10:00:28 +0200277 tprints("...");
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000278 break;
279 }
Denys Vlasenko60fe8c12011-09-01 10:00:28 +0200280 tprints((vec[i] & 1) ? "1" : "0");
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000281 }
Denys Vlasenko60fe8c12011-09-01 10:00:28 +0200282 tprints("]");
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000283 }
Denys Vlasenko1d46ba52011-08-31 14:00:02 +0200284 free(vec);
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000285 }
286 return 0;
287}
288
Dmitry V. Levinece9ce62015-07-21 15:55:09 +0000289#if defined ALPHA || defined IA64 || defined M68K \
290 || defined SPARC || defined SPARC64
Dmitry V. Levina0bd3742015-04-07 01:36:50 +0000291SYS_FUNC(getpagesize)
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000292{
Dmitry V. Levinb61b2d82016-01-08 19:20:05 +0000293 return RVAL_DECODED | RVAL_HEX;
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000294}
Denys Vlasenko84703742012-02-25 02:38:52 +0100295#endif
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000296
Dmitry V. Levina0bd3742015-04-07 01:36:50 +0000297SYS_FUNC(remap_file_pages)
Roland McGrath72c5b7b2003-03-05 04:08:00 +0000298{
Dmitry V. Levin3ae86902016-04-01 15:31:23 +0000299 const unsigned long addr = tcp->u_arg[0];
300 const unsigned long size = tcp->u_arg[1];
301 const unsigned long prot = tcp->u_arg[2];
302 const unsigned long pgoff = tcp->u_arg[3];
303 const unsigned long flags = tcp->u_arg[4];
304
305 printaddr(addr);
306 tprintf(", %lu, ", size);
Dmitry V. Levin11681142016-05-16 22:58:45 +0000307 printflags_long(mmap_prot, prot, "PROT_???");
Dmitry V. Levin3ae86902016-04-01 15:31:23 +0000308 tprintf(", %lu, ", pgoff);
Roland McGrath72c5b7b2003-03-05 04:08:00 +0000309#ifdef MAP_TYPE
Dmitry V. Levin11681142016-05-16 22:58:45 +0000310 printxval_long(mmap_flags, flags & MAP_TYPE, "MAP_???");
Dmitry V. Levin3ae86902016-04-01 15:31:23 +0000311 addflags(mmap_flags, flags & ~MAP_TYPE);
Roland McGrath72c5b7b2003-03-05 04:08:00 +0000312#else
Dmitry V. Levin11681142016-05-16 22:58:45 +0000313 printflags_long(mmap_flags, flags, "MAP_???");
Roland McGrath72c5b7b2003-03-05 04:08:00 +0000314#endif
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000315
316 return RVAL_DECODED;
Roland McGrath72c5b7b2003-03-05 04:08:00 +0000317}
Roland McGrathb10a3352004-10-07 18:53:12 +0000318
Denys Vlasenko84703742012-02-25 02:38:52 +0100319#if defined(POWERPC)
Dmitry V. Levin0f04b9d2016-05-07 23:00:52 +0000320static bool
321print_protmap_entry(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data)
322{
323 tprintf("%#08x", * (unsigned int *) elem_buf);
324
325 return true;
326}
327
Dmitry V. Levina0bd3742015-04-07 01:36:50 +0000328SYS_FUNC(subpage_prot)
Roland McGrath4a6f6522008-08-25 03:09:16 +0000329{
Dmitry V. Levin0f04b9d2016-05-07 23:00:52 +0000330 unsigned long addr = tcp->u_arg[0];
331 unsigned long len = tcp->u_arg[1];
332 unsigned long nmemb = len >> 16;
333 unsigned long map = tcp->u_arg[2];
Roland McGrath4a6f6522008-08-25 03:09:16 +0000334
Dmitry V. Levin0f04b9d2016-05-07 23:00:52 +0000335 printaddr(addr);
336 tprintf(", %lu, ", len);
337
338 unsigned int entry;
339 print_array(tcp, map, nmemb, &entry, sizeof(entry),
340 umoven_or_printaddr, print_protmap_entry, 0);
Roland McGrath4a6f6522008-08-25 03:09:16 +0000341
Dmitry V. Levin85813ce2015-07-19 23:37:40 +0000342 return RVAL_DECODED;
Roland McGrath4a6f6522008-08-25 03:09:16 +0000343}
344#endif