2 * Carla Interposer for unsafe backend functions
3 * Copyright (C) 2014-2022 Filipe Coelho <falktx@falktx.com>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * For a full copy of the GNU General Public License see the doc/GPL.txt file.
18 #include "CarlaUtils.hpp"
25 #define PREVENTED_FUNC_MSG carla_stderr2("Carla prevented a plugin from calling '%s', bad plugin!", __FUNCTION__)
27 // -----------------------------------------------------------------------
30 CARLA_PLUGIN_EXPORT
void gtk_init(int*, char***);
31 CARLA_PLUGIN_EXPORT
int gtk_init_check(int*, char***);
32 CARLA_PLUGIN_EXPORT
int gtk_init_with_args(int*, char***, const char*, void*, const char*, void**);
34 // -----------------------------------------------------------------------
35 // Our custom functions
46 int clone(int (*)(void*), void*, int, void*, ...)
54 int posix_spawn(pid_t
*, const char*, const posix_spawn_file_actions_t
*, const posix_spawnattr_t
*, char* const[], char* const[])
61 int posix_spawnp(pid_t
*, const char*, const posix_spawn_file_actions_t
*, const posix_spawnattr_t
*, char* const[], char* const[])
67 // -----------------------------------------------------------------------
72 carla_stderr2("Carla prevented a plugin from calling 'exit', redirecting to '_exit' instead, bad plugin!");
76 // -----------------------------------------------------------------------
79 void gtk_init(int*, char***)
85 int gtk_init_check(int*, char***)
92 int gtk_init_with_args(int*, char***, const char*, void*, const char*, void**)
98 // -----------------------------------------------------------------------