Blame src/internal/ptycon_nolibc_impl.h

0efa8c
#ifndef PTYCON_NOLIBC_IMPL_H
0efa8c
#define PTYCON_NOLIBC_IMPL_H
0efa8c
0efa8c
#define isatty   ptyc_isatty
0efa8c
#define fileno   ptyc_fileno
0efa8c
0efa8c
#define fputs    ptyc_fputs
0efa8c
#define fprintf  ptyc_fprintf
0efa8c
#define sprintf  ptyc_sprintf
0efa8c
#define snprintf ptyc_snprintf
0efa8c
0efa8c
#define memcpy   ptyc_memcpy
0efa8c
#define memset   ptyc_memset
0efa8c
0efa8c
#define strcpy   ptyc_strcpy
0efa8c
#define strlen   ptyc_strlen
0efa8c
#define strcmp   ptyc_strcmp
0efa8c
#define strncmp  ptyc_strncmp
0efa8c
#define strchr   ptyc_strchr
0efa8c
#define strrchr  ptyc_strrchr
0efa8c
0efa8c
#define calloc	 ptyc_calloc
0efa8c
#define free	 ptyc_free
0efa8c
0efa8c
#define stdin	 (void *)0
0efa8c
#define stdout	 (void *)1
0efa8c
#define stderr	 (void *)2
0efa8c
0efa8c
typedef struct ptyc_file FILE;
0efa8c
0efa8c
int	ptyc_isatty(int fildes);
af27df
int	ptyc_write(int, const void *, size_t);
0efa8c
int	ptyc_fileno(void * any);
0efa8c
0efa8c
int	ptyc_sprintf(char * str, const char * fmt, ...);
0efa8c
int	ptyc_snprintf(char * str, size_t n, const char * fmt, ...);
0efa8c
int	ptyc_fprintf(FILE *__restrict, const char *__restrict, ...);
0efa8c
int	ptyc_fputs(const char * str, FILE * file);
0efa8c
0efa8c
void *  ptyc_memcpy(void * dst, const void * src, size_t n);
0efa8c
void *	memset(void * ch, int c, size_t n);
0efa8c
0efa8c
char *	ptyc_strcpy(char * dst, const char * src);
0efa8c
size_t	ptyc_strlen(const char * ch);
0efa8c
int	ptyc_strcmp(const char * a, const char * b);
0efa8c
int	ptyc_strncmp(const char * a, const char * b, size_t n);
0efa8c
char *	ptyc_strchr(const char * ch, int c);
0efa8c
char *	ptyc_strrchr(const char * ch, int c);
0efa8c
0efa8c
void *	ptyc_calloc(size_t n, size_t size);
0efa8c
void	ptyc_free(void *);
0efa8c
0efa8c
#endif