Renamed Linux to GNU/Linux and other tidying

This commit is contained in:
Nav
2022-06-01 21:48:27 +01:00
parent ec9068ba42
commit dd204742d3
10 changed files with 28 additions and 26 deletions

View File

@@ -23,7 +23,7 @@ namespace Bloom
}
void EpollInstance::addEntry(int fileDescriptor, std::uint16_t eventMask) {
struct epoll_event event = {
struct ::epoll_event event = {
.events = eventMask,
.data = {
.fd = fileDescriptor

View File

@@ -12,7 +12,7 @@ namespace Bloom
using Exceptions::Exception;
EventFdNotifier::EventFdNotifier() {
this->fileDescriptor = ::eventfd(0, EFD_NONBLOCK);
this->fileDescriptor = ::eventfd(0, ::EFD_NONBLOCK);
if (this->fileDescriptor < 0) {
throw Exception(
@@ -40,7 +40,7 @@ namespace Bloom
}
void EventFdNotifier::clear() {
eventfd_t counter = {};
::eventfd_t counter = {};
if (::eventfd_read(this->fileDescriptor.value(), &counter) < 0 && errno != EAGAIN) {
throw Exceptions::Exception("Failed to clear EventFdNotifier object - eventfd_read failed - "
"error number: " + std::to_string(errno));