jehanne: add fcntl

This commit is contained in:
2017-09-27 00:39:07 +02:00
parent f446c6513c
commit 8a57809fe4
2 changed files with 8 additions and 0 deletions

View File

@ -603,6 +603,7 @@ case "${host}" in
CC="${CC} -I${jehanne_srcdir}/include"
newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED -DMALLOC_PROVIDED -DSIGNAL_PROVIDED"
newlib_cflags="${newlib_cflags} -D_NO_GETLOGIN -D_NO_GETCWD -D_NO_GETPASS -D_NO_GETUT -D_NO_PWRITE -D_NO_PREAD"
newlib_cflags="${newlib_cflags} -DHAVE_FCNTL"
newlib_cflags="${newlib_cflags} -fno-omit-frame-pointer"
;;
*-*-phoenix*)

View File

@ -213,6 +213,13 @@ _gettimeofday_r(struct _reent *r, struct timeval *p, void *z)
return POSIX_gettimeofday(errnop, p, z);
}
int
_fcntl_r(struct _reent *r, int fd, int cmd, int arg)
{
int *errnop = &r->_errno;
return POSIX_fcntl(errnop, fd, cmd, arg);
}
unsigned int
sleep(unsigned int seconds)
{