1/* 2 * Copyright (c) 2004 Apple Computer, Inc. 3 * Copyright (c) 2005 SPARTA, Inc. 4 * Copyright (c) 2006 Robert N. M. Watson 5 * Copyright (c) 2006 Martin Voros 6 * All rights reserved. 7 * 8 * This code was developed in part by Robert N. M. Watson, Senior Principal --- 18 unchanged lines hidden (view full) --- 27 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 31 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 32 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 * POSSIBILITY OF SUCH DAMAGE. 34 * |
35 * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#49 $ |
36 */ 37 38#include <sys/types.h> 39 40#include <config/config.h> 41#ifdef HAVE_SYS_ENDIAN_H 42#include <sys/endian.h> 43#else /* !HAVE_SYS_ENDIAN_H */ --- 1257 unchanged lines hidden (view full) --- 1301 close_attr(fp); 1302 close_tag(fp, tok->id); 1303 } else { 1304 print_delim(fp, del); 1305 print_1_byte(fp, tok->tt.arg32.no, "%u"); 1306 print_delim(fp, del); 1307 print_4_bytes(fp, tok->tt.arg32.val, "0x%x"); 1308 print_delim(fp, del); |
1309 print_string(fp, tok->tt.arg32.text, tok->tt.arg32.len); |
1310 } 1311} 1312 1313static int 1314fetch_arg64_tok(tokenstr_t *tok, u_char *buf, int len) 1315{ 1316 int err = 0; 1317 --- 3196 unchanged lines hidden --- |