bottleros/Kernel/utils/include/pipe.h

21 lines
410 B
C

#ifndef PIPE_H
#define PIPE_H
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include "../../include/lib.h"
#include "scheduler.h"
#include "memManager.h"
#include "pipeLib.h"
#define MAX_PIPES 100
#define SEM_NAME "Pipes"
#define PIPE_DATA_MAX_SIZE 100
#define MAX_PIDS_SIZE 50
#define FULL_SEM_NAME "FullSem"
int exists(pipe_t * pipe);
node_t * searchPipe(node_t ** previous, int fd);
#endif