woody-woodpacker/includes/woody.h

31 lines
615 B
C

#ifndef WOODY_H
# define WOODY_H
#include "../ft_printf/includes/ft_printf.h"
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <elf.h>
typedef struct efl_content
{
long unsigned int file_size;
char *file_path;
char *file;
char *extra_data;
} t_efl_content;
// utils.c
void *secure_access(char *file, unsigned long file_size, unsigned long offset_to_data, unsigned long supposed_data_size);
int ft_put_error(char *str);
// woody.c
int woody(t_efl_content *file_content);
#endif