diff --git a/test/fuzzing/Makefile.am b/test/fuzzing/Makefile.am index a1771e0c527de8a04435970879bbddafd497698d..829d02d31dfc1186c554343fa5ad51c5378bf3bf 100644 --- a/test/fuzzing/Makefile.am +++ b/test/fuzzing/Makefile.am @@ -6,4 +6,4 @@ check_PROGRAMS = lib_LTLIBRARIES = libfuzz.la -libfuzz_la_SOURCES = lib/utils.cpp +libfuzz_la_SOURCES = lib/utils.cpp lib/supervisor.cpp diff --git a/test/fuzzing/lib/supervisor.cpp b/test/fuzzing/lib/supervisor.cpp new file mode 100644 index 0000000000000000000000000000000000000000..fe22f1222f92742a723d79df16bb02612994f842 --- /dev/null +++ b/test/fuzzing/lib/supervisor.cpp @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2021 Savoir-faire Linux Inc. + * + * Author: Olivier Dion <olivier.dion>@savoirfairelinux.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#include "lib/supervisor.h" + +namespace supervisor { + +namespace env { + +const char* log = "SUPERVISOR_LOG"; +const char* tls_out = "SUPERVISOR_TLS_OUT"; + +}; // namespace env +}; // namespace supervisor diff --git a/test/fuzzing/lib/supervisor.h b/test/fuzzing/lib/supervisor.h new file mode 100644 index 0000000000000000000000000000000000000000..4bbc2f4e88fa724e6bb5d92fdbcd0ccc0fc882d1 --- /dev/null +++ b/test/fuzzing/lib/supervisor.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2021 Savoir-faire Linux Inc. + * + * Author: Olivier Dion <olivier.dion>@savoirfairelinux.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#pragma once + +namespace supervisor { + +namespace signal { + +enum exit { + log = 1, +}; +}; + +namespace env { + +extern const char* log; +extern const char* tls_out; + +}; // namespace env +}; // namespace supervisor