jehanne: fix broken code
This commit is contained in:
parent
699179a669
commit
98675f1ea0
|
@ -20,6 +20,7 @@
|
|||
#include <posix.h>
|
||||
#include <reent.h>
|
||||
|
||||
extern int _fcntl_r(struct _reent *r, int fd, int cmd, int arg);
|
||||
extern int __fail_with_einval(void);
|
||||
|
||||
int
|
||||
|
@ -31,13 +32,11 @@ fcntl(int fd, int cmd, int arg)
|
|||
long
|
||||
fpathconf(int fildes, int name)
|
||||
{
|
||||
extern int _fcntl_r(struct _reent *r, int fd, int cmd, int arg);
|
||||
return __fail_with_einval();
|
||||
}
|
||||
|
||||
long
|
||||
pathconf(const char *path, int name)
|
||||
{
|
||||
extern int _fcntl_r(struct _reent *r, int fd, int cmd, int arg);
|
||||
return __fail_with_einval();
|
||||
}
|
||||
|
|
|
@ -100,13 +100,13 @@ cfgetospeed(const struct termios *t)
|
|||
int
|
||||
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();
|
||||
}
|
||||
|
||||
int
|
||||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue