newlib: update includes

git-svn-id: svn://kolibrios.org@1903 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2011-03-10 05:38:16 +00:00
parent 89a9a5e25c
commit bbfd2b2cf8
2 changed files with 97 additions and 1 deletions

View File

@@ -150,7 +150,15 @@ extern int _execve_r _PARAMS ((struct _reent *, const char *, char *const *, cha
extern int _fcntl_r _PARAMS ((struct _reent *, int, int, int));
extern int _fork_r _PARAMS ((struct _reent *));
extern int _fstat_r _PARAMS ((struct _reent *, int, struct stat *));
extern int _getpid_r _PARAMS ((struct _reent *));
static inline int _getpid_r (struct _reent *r)
{
int pid;
(void)r;
__asm__ __volatile__(
"movl %%fs:0, %0 \n\t"
:"=r"(pid));
return pid;
}
extern int _isatty_r _PARAMS ((struct _reent *, int));
extern int _kill_r _PARAMS ((struct _reent *, int, int));
extern int _link_r _PARAMS ((struct _reent *, const char *, const char *));