Blame src/internal/ntux_nolibc_impl.h

26e14f
#ifndef NTUX_NOLIBC_IMPL_H
26e14f
#define NTUX_NOLIBC_IMPL_H
26e14f
26e14f
#define isatty   ntux_isatty
26e14f
#define fileno   ntux_fileno
26e14f
26e14f
#define fputs    ntux_fputs
da20d8
#define fflush   ntux_fflush
26e14f
#define fprintf  ntux_fprintf
26e14f
#define sprintf  ntux_sprintf
26e14f
#define snprintf ntux_snprintf
26e14f
26e14f
#define memcpy   ntux_memcpy
26e14f
#define memset   ntux_memset
26e14f
26e14f
#define strcpy   ntux_strcpy
26e14f
#define strlen   ntux_strlen
26e14f
#define strcmp   ntux_strcmp
26e14f
#define strncmp  ntux_strncmp
26e14f
#define strchr   ntux_strchr
26e14f
#define strrchr  ntux_strrchr
26e14f
26e14f
#define calloc	 ntux_calloc
26e14f
#define free	 ntux_free
26e14f
26e14f
#define stdin	 (void *)0
26e14f
#define stdout	 (void *)1
26e14f
#define stderr	 (void *)2
26e14f
26e14f
typedef struct ntux_file FILE;
26e14f
26e14f
int	ntux_isatty(int fildes);
26e14f
int	ntux_fileno(void * any);
26e14f
26e14f
int	ntux_sprintf(char * str, const char * fmt, ...);
26e14f
int	ntux_snprintf(char * str, size_t n, const char * fmt, ...);
26e14f
int	ntux_fprintf(FILE *__restrict, const char *__restrict, ...);
26e14f
int	ntux_fputs(const char * str, FILE * file);
da20d8
int	ntux_fflush(FILE *);
26e14f
26e14f
void *  ntux_memcpy(void * dst, const void * src, size_t n);
26e14f
void *	memset(void * ch, int c, size_t n);
26e14f
26e14f
char *	ntux_strcpy(char * dst, const char * src);
26e14f
size_t	ntux_strlen(const char * ch);
26e14f
int	ntux_strcmp(const char * a, const char * b);
26e14f
int	ntux_strncmp(const char * a, const char * b, size_t n);
26e14f
char *	ntux_strchr(const char * ch, int c);
26e14f
char *	ntux_strrchr(const char * ch, int c);
26e14f
26e14f
void *	ntux_calloc(size_t n, size_t size);
26e14f
void	ntux_free(void *);
26e14f
26e14f
#endif