/contrib/sdk/sources/newlib/libc/include/ctype.h |
40,9 → 40,10 |
#define _B 0200 |
|
#ifndef _MB_CAPABLE |
_CONST |
extern _CONST __IMPORT char *__ctype_ptr__; |
#else |
extern __IMPORT char *__ctype_ptr__; |
#endif |
extern __IMPORT char *__ctype_ptr__; |
|
#ifndef __cplusplus |
/* These macros are intentionally written in a manner that will trigger |
/contrib/sdk/sources/newlib/libc/sys/iowrite.c |
1,4 → 1,5 |
#include <sys/types.h> |
#include <errno.h> |
#include <sys/kos_io.h> |
|
int write_file(const char *path,const void *buff, |
24,5 → 25,9 |
"addl $28, %%esp \n\t" |
:"=a" (retval) |
:"a"(path),"b"(buff),"c"(offset),"d"(count),"S"(writes)); |
return retval; |
if(retval == 0) |
return 0; |
else if (retval == 8) |
return ENOSPC; |
return -1; |
}; |