jehanne: fix broken code
This commit is contained in:
parent
699179a669
commit
98675f1ea0
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue