newlib: bugfixes

git-svn-id: svn://kolibrios.org@2827 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2012-06-27 12:31:46 +00:00
parent 21140b30f2
commit b3ffd0487f
6 changed files with 48 additions and 6 deletions

View File

@@ -42,6 +42,15 @@ extern "C" {
/* O_NDELAY _FNBIO set in include/fcntl.h */
#define O_NONBLOCK _FNONBLOCK
#define O_NOCTTY _FNOCTTY
#define _FBINARY 0x10000
#define _FTEXT 0x20000
#define _FNOINHERIT 0x40000
#define O_BINARY _FBINARY
#define O_TEXT _FTEXT
#define O_NOINHERIT _FNOINHERIT
/* For machines which care - */
#if defined (_WIN32) || defined (__CYGWIN__)
#define _FBINARY 0x10000

View File

@@ -73,7 +73,7 @@ static inline int user_free(void *mem)
int val;
__asm__ __volatile__(
"int $0x40"
:"=eax"(val)
:"=a"(val)
:"a"(68),"b"(12),"c"(mem));
return val;
}