hinfo_13.c revision 90e303b114e56db5809fdd19805243457fa43cd9
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley * Copyright (C) 1998-2001 Internet Software Consortium.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * Permission to use, copy, modify, and distribute this software for any
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * purpose with or without fee is hereby granted, provided that the above
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * copyright notice and this permission notice appear in all copies.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User/* $Id: hinfo_13.c,v 1.39 2002/01/05 07:05:10 ogud Exp $ */
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt * Reviewed: Wed Mar 15 16:47:10 PST 2000 by halley.
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt for (i = 0; i < 2; i++) {
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt RETTOK(txt_fromtext(&token.value.as_textregion, target));
aee5e9cbacd8f88325840b8a498876f4319b0890Mark Andrews return (mem_tobuffer(target, rdata->data, rdata->length));
f7a6d4f915ce622d988916397f313b33ae954afcMark Andrewsstatic inline int
6dcb47e37f9f0cdb94bdabc3fa157ff07983c590Mark Andrews RETERR(uint8_tobuffer(hinfo->cpu_len, target));
6dcb47e37f9f0cdb94bdabc3fa157ff07983c590Mark Andrews RETERR(mem_tobuffer(target, hinfo->cpu, hinfo->cpu_len));
43b3337ba58d70ca34f4d91e8c6c5e13a54af690Mark Andrews return (mem_tobuffer(target, hinfo->os, hinfo->os_len));
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley hinfo->cpu = mem_maybedup(mctx, region.base, hinfo->cpu_len);
a9558a6c63d9c6dbb2f3800b39ccb008652fcde3Mark Andrews hinfo->os = mem_maybedup(mctx, region.base, hinfo->os_len);
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleystatic inline void