fix ash echo (#8150)

This commit is contained in:
xiao-mang 2023-10-21 08:41:55 +08:00 committed by GitHub
parent 53801fc4ab
commit 90c7089d47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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;
rt_hw_interrupt_umask(uart->irqno);
break;
default:
return -1;
}
return RT_EOK;

View File

@ -1066,6 +1066,11 @@ int dfs_file_fcntl(int fd, int cmd, unsigned long arg)
case F_SETLK:
case F_SETLKW:
break;
#ifdef RT_USING_MUSLLIBC
case F_DUPFD_CLOEXEC:
ret = -EINVAL;
break;
#endif
default:
ret = -EPERM;
break;