From: Tulio A M Mendes Date: Mon, 9 Feb 2026 22:40:42 +0000 (-0300) Subject: tools: avoid host macro collisions in user init (cppcheck) X-Git-Url: https://projects.tadryanom.me/sitemap.xml?a=commitdiff_plain;h=fc22442162ebfd7bc801f2ccfbb5e28303ea1720;p=AdrOS.git tools: avoid host macro collisions in user init (cppcheck) --- diff --git a/user/init.c b/user/init.c index 6c9aa8c..86ccfdb 100644 --- a/user/init.c +++ b/user/init.c @@ -1,5 +1,34 @@ #include +#ifdef SIGKILL +#undef SIGKILL +#endif +#ifdef SIGUSR1 +#undef SIGUSR1 +#endif +#ifdef SIGSEGV +#undef SIGSEGV +#endif +#ifdef SIGTTIN +#undef SIGTTIN +#endif +#ifdef SIGTTOU +#undef SIGTTOU +#endif + +#ifdef WNOHANG +#undef WNOHANG +#endif +#ifdef SEEK_SET +#undef SEEK_SET +#endif +#ifdef SEEK_CUR +#undef SEEK_CUR +#endif +#ifdef SEEK_END +#undef SEEK_END +#endif + enum { SYSCALL_WRITE = 1, SYSCALL_EXIT = 2,