1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:57:35 +00:00

LibCore: Merge the CSyscallUtils namespace into Core

This commit is contained in:
Andreas Kling 2020-02-06 15:04:57 +01:00
parent d17e23bd27
commit 258d798b34
4 changed files with 5 additions and 5 deletions

View file

@ -32,7 +32,7 @@
#include <sys/types.h>
#include <unistd.h>
namespace CSyscallUtils {
namespace Core {
template<typename Syscall, class... Args>
inline int safe_syscall(Syscall syscall, Args&&... args)
@ -41,7 +41,7 @@ inline int safe_syscall(Syscall syscall, Args&&... args)
int sysret = syscall(forward<Args>(args)...);
if (sysret == -1) {
int saved_errno = errno;
dbg() << "CSafeSyscall: " << sysret << " (" << saved_errno << ": " << strerror(saved_errno) << ")";
dbg() << "Core::safe_syscall: " << sysret << " (" << saved_errno << ": " << strerror(saved_errno) << ")";
if (errno == EINTR)
continue;
ASSERT_NOT_REACHED();