proc/WIP: better handling for TLS

This commit is contained in:
2024-11-17 23:32:07 +02:00
parent 17eca4c0c0
commit e0e39d2f23
52 changed files with 1766 additions and 753 deletions
+8
View File
@@ -1,4 +1,6 @@
#include <iostream>
#include <cerrno>
#include <fcntl.h>
int main() {
std::vector<int> items;
@@ -9,5 +11,11 @@ int main() {
for (const auto &item: items) {
std::cout << "Item: " << item << std::endl;
}
std::cout << "&errno = " << &errno << std::endl;
std::cout << "errno = " << errno << std::endl;
open("/xxxsaa", 0, 0);
std::cout << "errno = " << errno << std::endl;
return 0;
}