ppos

Usermode educational operating system.
Log | Files | Refs

ppos.h (2247B)


      1 // PingPongOS - PingPong Operating System
      2 // © Prof. Carlos A. Maziero, DINF UFPR
      3 // Versão 2.1 -- 06/2026
      4 
      5 // ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO;
      6 // ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO.
      7 
      8 // Funções básicas/iniciais do PPOS
      9 
     10 #ifndef __PPOS__
     11 #define __PPOS__
     12 
     13 // este código deve ser compilado em sistemas UNIX-like
     14 #ifndef __linux__
     15 #error "Este codigo foi planejado para ambientes Linux."
     16 #endif
     17 
     18 // módulos do sistema operacional
     19 #include "macros.h"
     20 #include "tcb.h"
     21 #include "task.h"
     22 #include "dispatcher.h"
     23 #include "scheduler.h"
     24 #include "time.h"
     25 #include "memory.h"
     26 #include "semaphore.h"
     27 #include "mqueue.h"
     28 #include "block.h"
     29 
     30 // algumas funções que não devem ser usadas
     31 #define printf DONT_USE_THIS_FUNCTION
     32 #define fprintf DONT_USE_THIS_FUNCTION
     33 #define fputc DONT_USE_THIS_FUNCTION
     34 #define putc DONT_USE_THIS_FUNCTION
     35 #define putchar DONT_USE_THIS_FUNCTION
     36 #define fputs DONT_USE_THIS_FUNCTION
     37 #define puts DONT_USE_THIS_FUNCTION
     38 #define putwchar DONT_USE_THIS_FUNCTION
     39 #define fputwc DONT_USE_THIS_FUNCTION
     40 #define fputws DONT_USE_THIS_FUNCTION
     41 #define fwrite DONT_USE_THIS_FUNCTION
     42 #define pwrite DONT_USE_THIS_FUNCTION
     43 #define writev DONT_USE_THIS_FUNCTION
     44 #define write DONT_USE_THIS_FUNCTION
     45 #define scanf DONT_USE_THIS_FUNCTION
     46 #define fscanf DONT_USE_THIS_FUNCTION
     47 #define fgetc DONT_USE_THIS_FUNCTION
     48 #define getc DONT_USE_THIS_FUNCTION
     49 #define getchar DONT_USE_THIS_FUNCTION
     50 #define fgets DONT_USE_THIS_FUNCTION
     51 #define vscanf DONT_USE_THIS_FUNCTION
     52 #define vfscanf DONT_USE_THIS_FUNCTION
     53 #define fread DONT_USE_THIS_FUNCTION
     54 #define pread DONT_USE_THIS_FUNCTION
     55 #define readv DONT_USE_THIS_FUNCTION
     56 #define read DONT_USE_THIS_FUNCTION
     57 #define signal DONT_USE_THIS_FUNCTION
     58 #define sigaction DONT_USE_THIS_FUNCTION
     59 #define sigprocmask DONT_USE_THIS_FUNCTION
     60 #define sigsuspend DONT_USE_THIS_FUNCTION
     61 #define sigevent DONT_USE_THIS_FUNCTION
     62 #define raise DONT_USE_THIS_FUNCTION
     63 #define siginterrupt DONT_USE_THIS_FUNCTION
     64 #define timer_create DONT_USE_THIS_FUNCTION
     65 #define timer_settime DONT_USE_THIS_FUNCTION
     66 #define clock_gettime DONT_USE_THIS_FUNCTION
     67 #define setitimer DONT_USE_THIS_FUNCTION
     68 #define timer_delete DONT_USE_THIS_FUNCTION
     69 #define timerfd_create DONT_USE_THIS_FUNCTION
     70 
     71 #endif