skeletton untested project
This commit is contained in:
commit
6fc620e8f4
187 changed files with 6584 additions and 0 deletions
31
includes/ft_strace.h
Normal file
31
includes/ft_strace.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_strace.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: thrieg <thrieg@student.42mulhouse.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/12/11 04:06:00 by thrieg #+# #+# */
|
||||
/* Updated: 2025/12/11 05:54:47 by thrieg ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef FT_STRACE_H
|
||||
#define FT_STRACE_H
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <errno.h>
|
||||
#include <sys/ptrace.h>
|
||||
#include "../libft/libft.h"
|
||||
|
||||
//returns 64 for x84_64, or 32 for 32 bits, -1 for open/read error, -2 for unrecognised file type
|
||||
ssize_t binary_type(char *path_to_binary);
|
||||
|
||||
typedef struct s_syscall_desc {
|
||||
const char *name;
|
||||
unsigned char argc;
|
||||
} t_syscall_desc;
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue