ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
32 lines
679 B
C
32 lines
679 B
C
int global_a = 2;
|
|
|
|
void
|
|
exewrite (void)
|
|
{
|
|
global_a = 1;
|
|
}
|
|
|
|
extern void dllwrite (void);
|
|
|
|
int _stdcall
|
|
testexe_main (void* p1, void *p2, char* p3, int p4)
|
|
{
|
|
dllwrite ();
|
|
/* We can't print or assert in a minimal app like this,
|
|
so use the return status to indicate if global_a
|
|
ended up with the correct expected value. */
|
|
return 1 - global_a;
|
|
}
|
|
|
|
/* We have to import something, anything at all, from
|
|
kernel32, in order to have the thread and process
|
|
base thunk routines loaded when we start running!. */
|
|
extern __attribute((dllimport)) void _stdcall Sleep (unsigned int duration);
|
|
|
|
int _stdcall
|
|
testexe_dummy (unsigned int foobar)
|
|
{
|
|
Sleep (foobar);
|
|
}
|
|
|