fix ash echo (#8150)
This commit is contained in:
parent
53801fc4ab
commit
90c7089d47
|
@ -65,6 +65,9 @@ static rt_err_t uart_control(struct rt_serial_device *serial, int cmd, void *arg
|
||||||
UART_IMSC(uart->hw_base) |= UARTIMSC_RXIM;
|
UART_IMSC(uart->hw_base) |= UARTIMSC_RXIM;
|
||||||
rt_hw_interrupt_umask(uart->irqno);
|
rt_hw_interrupt_umask(uart->irqno);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
return RT_EOK;
|
||||||
|
|
|
@ -1066,6 +1066,11 @@ int dfs_file_fcntl(int fd, int cmd, unsigned long arg)
|
||||||
case F_SETLK:
|
case F_SETLK:
|
||||||
case F_SETLKW:
|
case F_SETLKW:
|
||||||
break;
|
break;
|
||||||
|
#ifdef RT_USING_MUSLLIBC
|
||||||
|
case F_DUPFD_CLOEXEC:
|
||||||
|
ret = -EINVAL;
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
ret = -EPERM;
|
ret = -EPERM;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue