mirror of
https://github.com/Ladebeze66/minitalk.git
synced 2025-12-13 20:57:04 +01:00
29 lines
1.2 KiB
C
Executable File
29 lines
1.2 KiB
C
Executable File
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* minitalk_bonus.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: fgras-ca <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/07/21 23:01:57 by fgras-ca #+# #+# */
|
|
/* Updated: 2023/07/21 23:06:08 by fgras-ca ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef MINITALK_BONUS_H
|
|
# define MINITALK_BONUS_H
|
|
|
|
# include <signal.h>
|
|
# include <stdlib.h>
|
|
# include <unistd.h>
|
|
# include "libft/libft.h"
|
|
# include "printf/ft_printf.h"
|
|
|
|
int g_acknowledged;
|
|
|
|
void sigusr1_handler(int sig);
|
|
void send_ack(int pid);
|
|
void receive_bit(int sig, siginfo_t *info, void *context);
|
|
|
|
#endif
|