jehanne: fix broken code

This commit is contained in:
Giacomo Tesio 2018-11-21 22:45:26 +01:00
parent 699179a669
commit 98675f1ea0
2 changed files with 3 additions and 4 deletions

View File

@ -20,6 +20,7 @@
#include <posix.h> #include <posix.h>
#include <reent.h> #include <reent.h>
extern int _fcntl_r(struct _reent *r, int fd, int cmd, int arg);
extern int __fail_with_einval(void); extern int __fail_with_einval(void);
int int
@ -31,13 +32,11 @@ fcntl(int fd, int cmd, int arg)
long long
fpathconf(int fildes, int name) fpathconf(int fildes, int name)
{ {
extern int _fcntl_r(struct _reent *r, int fd, int cmd, int arg);
return __fail_with_einval(); return __fail_with_einval();
} }
long long
pathconf(const char *path, int name) pathconf(const char *path, int name)
{ {
extern int _fcntl_r(struct _reent *r, int fd, int cmd, int arg);
return __fail_with_einval(); return __fail_with_einval();
} }

View File

@ -100,13 +100,13 @@ cfgetospeed(const struct termios *t)
int int
cfsetispeed(struct termios *tp, speed_t speed) cfsetispeed(struct termios *tp, speed_t speed)
{ {
extern int _fcntl_r(struct _reent *r, int fd, int cmd, int arg); extern int __fail_with_einval(void);
return __fail_with_einval(); return __fail_with_einval();
} }
int int
cfsetospeed(struct termios *tp, speed_t speed) cfsetospeed(struct termios *tp, speed_t speed)
{ {
extern int _fcntl_r(struct _reent *r, int fd, int cmd, int arg); extern int __fail_with_einval(void);
return __fail_with_einval(); return __fail_with_einval();
} }