mirror of https://github.com/zrafa/xinu-avr.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.0 KiB
36 lines
1.0 KiB
/* stdio.h - definintions and constants for standard I/O functions */ |
|
|
|
/* avr specific values. Original saved under orig/ folder */ |
|
|
|
|
|
/* Prototypes for formatted input functions */ |
|
|
|
extern int32 _doscan(char *,int32 *, int32 (*)(void), |
|
int32 (*)(char), int32, int32); |
|
extern int32 sscanf(char *, char *, int32); |
|
extern int32 fscanf(int32, char *, int32); |
|
#define scanf(fmt, args) fscanf(CONSOLE, fmt, args) |
|
|
|
|
|
/* Definintion of standard input/ouput/error used with shell commands */ |
|
|
|
#define stdin ((proctab[currpid]).prdesc[0]) |
|
#define stdout ((proctab[currpid]).prdesc[1]) |
|
#define stderr ((proctab[currpid]).prdesc[2]) |
|
|
|
|
|
/* Prototypes for formatted output functions */ |
|
|
|
extern int fprintf(int, char *, ...); |
|
extern int printf(const char *, ...); |
|
extern int32 sprintf(char *, char *, ...); |
|
|
|
|
|
/* Prototypes for character input and output functions */ |
|
|
|
extern int32 fgetc(int); |
|
extern char *fgets(char *, int32, int32); |
|
extern int32 fputc(int32, int32); |
|
extern int32 fputs(char *, int32); |
|
extern int putchar(int c); |
|
extern int getchar(void);
|
|
|