mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
fuzzing/supervisor: Add supervisor
Change-Id: Ie593e1a6496d47fa8bb1fa3b046a01f87a44377b
This commit is contained in:
@ -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
|
||||
|
31
test/fuzzing/lib/supervisor.cpp
Normal file
31
test/fuzzing/lib/supervisor.cpp
Normal 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
|
38
test/fuzzing/lib/supervisor.h
Normal file
38
test/fuzzing/lib/supervisor.h
Normal 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
|
Reference in New Issue
Block a user