yggdrasil/test.cpp

22 lines
466 B
C++
Raw Normal View History

2024-11-15 20:37:59 +02:00
#include <iostream>
2024-11-17 23:32:07 +02:00
#include <cerrno>
#include <fcntl.h>
2024-11-15 20:37:59 +02:00
int main() {
std::vector<int> items;
items.push_back(1);
items.push_back(2);
items.push_back(3);
for (const auto &item: items) {
std::cout << "Item: " << item << std::endl;
}
2024-11-17 23:32:07 +02:00
std::cout << "&errno = " << &errno << std::endl;
std::cout << "errno = " << errno << std::endl;
open("/xxxsaa", 0, 0);
std::cout << "errno = " << errno << std::endl;
2024-11-15 20:37:59 +02:00
return 0;
}