X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fxed%2Fv3-xed-compat.h;fp=palacios%2Finclude%2Fxed%2Fv3-xed-compat.h;h=9a882daa2c4b49394cb7b1f792bc7b0824b5f757;hp=0000000000000000000000000000000000000000;hb=ddc16b0737cf58f7aa90a69c6652cdf4090aec51;hpb=626595465a2c6987606a6bc697df65130ad8c2d3 diff --git a/palacios/include/xed/v3-xed-compat.h b/palacios/include/xed/v3-xed-compat.h new file mode 100644 index 0000000..9a882da --- /dev/null +++ b/palacios/include/xed/v3-xed-compat.h @@ -0,0 +1,29 @@ +#ifndef __V3_XED_COMPAT_H__ +#define __V3_XED_COMPAT_H__ + +#include + + +/* Definition of the control structure for streams +*/ +typedef struct file_struct { + short level; /* fill/empty level of buffer */ + unsigned flags; /* File status flags */ + char fd; /* File descriptor */ + unsigned char hold; /* Ungetc char if no buffer */ + short bsize; /* Buffer size */ + unsigned char *buffer; /* Data transfer buffer */ + unsigned char *curp; /* Current active pointer */ + unsigned istemp; /* Temporary file indicator */ + short token; /* Used for validity checking */ +} FILE; + + + +int fprintf(FILE *file, char *fmt, ...); +int printf(char *fmt, ...); +int fflush(FILE *stream); +void abort(void); + + +#endif