fuzzing/supervisor: Add supervisor

Change-Id: Ie593e1a6496d47fa8bb1fa3b046a01f87a44377b
This commit is contained in:
Olivier Dion
2021-06-10 15:09:22 -04:00
parent 17d89dfd8b
commit f58ba79a4d
3 changed files with 70 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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