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.
41 lines
597 B
C
41 lines
597 B
C
#include "protected-data-1.h"
|
|
|
|
int protected_data_1a __attribute__ ((visibility("protected"))) = 1;
|
|
int protected_data_1b __attribute__ ((visibility("protected"))) = 2;
|
|
|
|
int *
|
|
protected_data_1a_p (void)
|
|
{
|
|
return &protected_data_1a;
|
|
}
|
|
|
|
int *
|
|
protected_data_1b_p (void)
|
|
{
|
|
return &protected_data_1b;
|
|
}
|
|
|
|
void
|
|
set_protected_data_1a (int i)
|
|
{
|
|
protected_data_1a = i;
|
|
}
|
|
|
|
void
|
|
set_protected_data_1b (int i)
|
|
{
|
|
protected_data_1b = i;
|
|
}
|
|
|
|
int
|
|
check_protected_data_1a (int i)
|
|
{
|
|
return protected_data_1a == i ? 0 : 1;
|
|
}
|
|
|
|
int
|
|
check_protected_data_1b (int i)
|
|
{
|
|
return protected_data_1b == i ? 0 : 1;
|
|
}
|