1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/other-licenses/android/linker_format.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,41 @@ 1.4 +/* 1.5 + * Copyright (C) 2010 The Android Open Source Project 1.6 + * All rights reserved. 1.7 + * 1.8 + * Redistribution and use in source and binary forms, with or without 1.9 + * modification, are permitted provided that the following conditions 1.10 + * are met: 1.11 + * * Redistributions of source code must retain the above copyright 1.12 + * notice, this list of conditions and the following disclaimer. 1.13 + * * Redistributions in binary form must reproduce the above copyright 1.14 + * notice, this list of conditions and the following disclaimer in 1.15 + * the documentation and/or other materials provided with the 1.16 + * distribution. 1.17 + * 1.18 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1.19 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1.20 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 1.21 + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 1.22 + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 1.23 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 1.24 + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 1.25 + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 1.26 + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 1.27 + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 1.28 + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1.29 + * SUCH DAMAGE. 1.30 + */ 1.31 +#ifndef _LINKER_FORMAT_H 1.32 +#define _LINKER_FORMAT_H 1.33 + 1.34 +#include <stdarg.h> 1.35 +#include <stddef.h> 1.36 + 1.37 +/* Formatting routines for the dynamic linker's debug traces */ 1.38 +/* We want to avoid dragging the whole C library fprintf() */ 1.39 +/* implementation into the dynamic linker since this creates */ 1.40 +/* issues (it uses malloc()/free()) and increases code size */ 1.41 + 1.42 +int format_buffer(char *buffer, size_t bufsize, const char *format, ...); 1.43 + 1.44 +#endif /* _LINKER_FORMAT_H */