mirror of
https://github.com/ptitSeb/box64.git
synced 2025-02-18 13:29:44 +00:00
Added a mostly empty wrapped libatomic
This commit is contained in:
parent
88af5ea07c
commit
49991a3341
@ -274,6 +274,7 @@ set(WRAPPEDS
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedalut.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedatk.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedatkbridge.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedatomic.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedatspi.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedbz2.c"
|
||||
"${BOX64_ROOT}/src/wrapped/wrappedcairo.c"
|
||||
|
@ -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)
|
||||
|
||||
|
@ -2164,6 +2164,7 @@ wrappedatk:
|
||||
- uFpp:
|
||||
- atk_add_key_event_listener
|
||||
wrappedatkbridge:
|
||||
wrappedatomic:
|
||||
wrappedatspi:
|
||||
wrappedbz2:
|
||||
- iFp:
|
||||
|
8
src/wrapped/generated/wrappedatomicdefs.h
Normal file
8
src/wrapped/generated/wrappedatomicdefs.h
Normal file
@ -0,0 +1,8 @@
|
||||
/*******************************************************************
|
||||
* File automatically generated by rebuild_wrappers.py (v2.1.0.16) *
|
||||
*******************************************************************/
|
||||
#ifndef __wrappedatomicDEFS_H_
|
||||
#define __wrappedatomicDEFS_H_
|
||||
|
||||
|
||||
#endif // __wrappedatomicDEFS_H_
|
17
src/wrapped/generated/wrappedatomictypes.h
Normal file
17
src/wrapped/generated/wrappedatomictypes.h
Normal file
@ -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_
|
8
src/wrapped/generated/wrappedatomicundefs.h
Normal file
8
src/wrapped/generated/wrappedatomicundefs.h
Normal file
@ -0,0 +1,8 @@
|
||||
/*******************************************************************
|
||||
* File automatically generated by rebuild_wrappers.py (v2.1.0.16) *
|
||||
*******************************************************************/
|
||||
#ifndef __wrappedatomicUNDEFS_H_
|
||||
#define __wrappedatomicUNDEFS_H_
|
||||
|
||||
|
||||
#endif // __wrappedatomicUNDEFS_H_
|
18
src/wrapped/wrappedatomic.c
Normal file
18
src/wrapped/wrappedatomic.c
Normal file
@ -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"
|
||||
|
101
src/wrapped/wrappedatomic_private.h
Normal file
101
src/wrapped/wrappedatomic_private.h
Normal file
@ -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,
|
Loading…
x
Reference in New Issue
Block a user