diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-07-24 20:36:24 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-07-24 20:36:24 +0200 |
| commit | 49991a3341b36442b083618283862c79dae42f11 (patch) | |
| tree | 94a5cedc7f6f6d35a7998452c083605c70ff092b /src | |
| parent | 88af5ea07cc3e271910c67e8ea7f49c73d7e9b39 (diff) | |
| download | box64-49991a3341b36442b083618283862c79dae42f11.tar.gz box64-49991a3341b36442b083618283862c79dae42f11.zip | |
Added a mostly empty wrapped libatomic
Diffstat (limited to 'src')
| -rwxr-xr-x | src/library_list.h | 1 | ||||
| -rw-r--r-- | src/wrapped/generated/functions_list.txt | 1 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedatomicdefs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedatomictypes.h | 17 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedatomicundefs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/wrappedatomic.c | 18 | ||||
| -rw-r--r-- | src/wrapped/wrappedatomic_private.h | 101 |
7 files changed, 154 insertions, 0 deletions
diff --git a/src/library_list.h b/src/library_list.h index cfcd3c18..4195e71b 100755 --- a/src/library_list.h +++ b/src/library_list.h @@ -190,6 +190,7 @@ GO("libgstreamer-1.0.so.0", gstreamer) GO("libgsttag-1.0.so.0", gsttag) GO("libgstvideo-1.0.so.0", gstvideo) GO("libxshmfence.so.1", xshmfence) +GO("libatomic.so.1", atomic) GO("ld-linux-x86-64.so.2", ldlinux) diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index 0f554d60..88f182b9 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -2164,6 +2164,7 @@ wrappedatk: - uFpp: - atk_add_key_event_listener wrappedatkbridge: +wrappedatomic: wrappedatspi: wrappedbz2: - iFp: diff --git a/src/wrapped/generated/wrappedatomicdefs.h b/src/wrapped/generated/wrappedatomicdefs.h new file mode 100644 index 00000000..bbbef325 --- /dev/null +++ b/src/wrapped/generated/wrappedatomicdefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappedatomicDEFS_H_ +#define __wrappedatomicDEFS_H_ + + +#endif // __wrappedatomicDEFS_H_ diff --git a/src/wrapped/generated/wrappedatomictypes.h b/src/wrapped/generated/wrappedatomictypes.h new file mode 100644 index 00000000..2924d520 --- /dev/null +++ b/src/wrapped/generated/wrappedatomictypes.h @@ -0,0 +1,17 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappedatomicTYPES_H_ +#define __wrappedatomicTYPES_H_ + +#ifndef LIBNAME +#error You should only #include this file inside a wrapped*.c file +#endif +#ifndef ADDED_FUNCTIONS +#define ADDED_FUNCTIONS() +#endif + + +#define SUPER() ADDED_FUNCTIONS() + +#endif // __wrappedatomicTYPES_H_ diff --git a/src/wrapped/generated/wrappedatomicundefs.h b/src/wrapped/generated/wrappedatomicundefs.h new file mode 100644 index 00000000..e78603ff --- /dev/null +++ b/src/wrapped/generated/wrappedatomicundefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappedatomicUNDEFS_H_ +#define __wrappedatomicUNDEFS_H_ + + +#endif // __wrappedatomicUNDEFS_H_ diff --git a/src/wrapped/wrappedatomic.c b/src/wrapped/wrappedatomic.c new file mode 100644 index 00000000..606b6484 --- /dev/null +++ b/src/wrapped/wrappedatomic.c @@ -0,0 +1,18 @@ +#define _GNU_SOURCE /* See feature_test_macros(7) */ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <dlfcn.h> + +#include "wrappedlibs.h" + +#include "wrapper.h" +#include "bridge.h" +#include "librarian/library_private.h" +#include "x64emu.h" + +const char* atomicName = "libatomic.so.1"; +#define LIBNAME atomic + +#include "wrappedlib_init.h" + diff --git a/src/wrapped/wrappedatomic_private.h b/src/wrapped/wrappedatomic_private.h new file mode 100644 index 00000000..3c7a2587 --- /dev/null +++ b/src/wrapped/wrappedatomic_private.h @@ -0,0 +1,101 @@ +#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA)) +#error Meh.... +#endif + +//GO(__atomic_add_fetch_1, +//GO(__atomic_add_fetch_16, +//GO(__atomic_add_fetch_2, +//GO(__atomic_add_fetch_4, +//GO(__atomic_add_fetch_8, +//GO(__atomic_and_fetch_1, +//GO(__atomic_and_fetch_16, +//GO(__atomic_and_fetch_2, +//GO(__atomic_and_fetch_4, +//GO(__atomic_and_fetch_8, +GO(__atomic_compare_exchange, iFpii) +//GO(__atomic_compare_exchange_1, +//GO(__atomic_compare_exchange_16, +//GO(__atomic_compare_exchange_2, +//GO(__atomic_compare_exchange_4, +//GO(__atomic_compare_exchange_8, +//GO(__atomic_exchange, +//GO(__atomic_exchange_1, +//GO(__atomic_exchange_16, +//GO(__atomic_exchange_2, +//GO(__atomic_exchange_4, +//GO(__atomic_exchange_8, +//GO(__atomic_feraiseexcept, +//GO(__atomic_fetch_add_1, +//GO(__atomic_fetch_add_16, +//GO(__atomic_fetch_add_2, +//GO(__atomic_fetch_add_4, +//GO(__atomic_fetch_add_8, +//GO(__atomic_fetch_and_1, +//GO(__atomic_fetch_and_16, +//GO(__atomic_fetch_and_2, +//GO(__atomic_fetch_and_4, +//GO(__atomic_fetch_and_8, +//GO(__atomic_fetch_nand_1, +//GO(__atomic_fetch_nand_16, +//GO(__atomic_fetch_nand_2, +//GO(__atomic_fetch_nand_4, +//GO(__atomic_fetch_nand_8, +//GO(__atomic_fetch_or_1, +//GO(__atomic_fetch_or_16, +//GO(__atomic_fetch_or_2, +//GO(__atomic_fetch_or_4, +//GO(__atomic_fetch_or_8, +//GO(__atomic_fetch_sub_1, +//GO(__atomic_fetch_sub_16, +//GO(__atomic_fetch_sub_2, +//GO(__atomic_fetch_sub_4, +//GO(__atomic_fetch_sub_8, +//GO(__atomic_fetch_xor_1, +//GO(__atomic_fetch_xor_16, +//GO(__atomic_fetch_xor_2, +//GO(__atomic_fetch_xor_4, +//GO(__atomic_fetch_xor_8, +//GO(atomic_flag_clear, +//GO(atomic_flag_clear_explicit, +//GO(atomic_flag_test_and_set, +//GO(atomic_flag_test_and_set_explicit, +//GO(__atomic_is_lock_free, +//GO(__atomic_load, +//GO(__atomic_load_1, +//GO(__atomic_load_16, +//GO(__atomic_load_2, +//GO(__atomic_load_4, +//GO(__atomic_load_8, +//GO(__atomic_nand_fetch_1, +//GO(__atomic_nand_fetch_16, +//GO(__atomic_nand_fetch_2, +//GO(__atomic_nand_fetch_4, +//GO(__atomic_nand_fetch_8, +//GO(__atomic_or_fetch_1, +//GO(__atomic_or_fetch_16, +//GO(__atomic_or_fetch_2, +//GO(__atomic_or_fetch_4, +//GO(__atomic_or_fetch_8, +//GO(atomic_signal_fence, +//GO(__atomic_store, +//GO(__atomic_store_1, +//GO(__atomic_store_16, +//GO(__atomic_store_2, +//GO(__atomic_store_4, +//GO(__atomic_store_8, +//GO(__atomic_sub_fetch_1, +//GO(__atomic_sub_fetch_16, +//GO(__atomic_sub_fetch_2, +//GO(__atomic_sub_fetch_4, +//GO(__atomic_sub_fetch_8, +//GO(__atomic_test_and_set_1, +//GO(__atomic_test_and_set_16, +//GO(__atomic_test_and_set_2, +//GO(__atomic_test_and_set_4, +//GO(__atomic_test_and_set_8, +//GO(atomic_thread_fence, +//GO(__atomic_xor_fetch_1, +//GO(__atomic_xor_fetch_16, +//GO(__atomic_xor_fetch_2, +//GO(__atomic_xor_fetch_4, +//GO(__atomic_xor_fetch_8, |