From: Bogdan Lascu Date: Wed, 14 Aug 2019 18:57:01 +0000 (+0300) Subject: syslog.h: Adapt to Unikraft X-Git-Tag: RELEASE-0.4~72 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4d642bb3c85a8e962be10c86b751a76feaf77ba6;p=unikraft%2Flibs%2Fnewlib.git syslog.h: Adapt to Unikraft * Fix include * Add licenses Signed-off-by: Bogdan Lascu Signed-off-by: Costin Lupu Reviewed-by: Felipe Huici --- diff --git a/musl-imported/include/sys/syslog.h b/musl-imported/include/sys/syslog.h index 7761ece..852b347 100644 --- a/musl-imported/include/sys/syslog.h +++ b/musl-imported/include/sys/syslog.h @@ -1 +1,25 @@ +/* SPDX-License-Identifier: MIT */ +/* ---------------------------------------------------------------------- + * Copyright © 2005-2014 Rich Felker, et al. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * ---------------------------------------------------------------------- + */ #include diff --git a/musl-imported/include/syslog.h b/musl-imported/include/syslog.h index 5b4d296..a5d312d 100644 --- a/musl-imported/include/syslog.h +++ b/musl-imported/include/syslog.h @@ -1,3 +1,27 @@ +/* SPDX-License-Identifier: MIT */ +/* ---------------------------------------------------------------------- + * Copyright © 2005-2014 Rich Felker, et al. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * ---------------------------------------------------------------------- + */ #ifndef _SYSLOG_H #define _SYSLOG_H @@ -5,7 +29,7 @@ extern "C" { #endif -#include +/* TODO #include */ #define LOG_EMERG 0 #define LOG_ALERT 1