fix: l0 shell adapt new master
Change-Id: Ia4e0c848b76e8fda7c5a2f9e1b2246b2a09947a4 Signed-off-by: silen <wuyunjie@huawei.com>
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
#include "shell.h"
|
||||
#include "stdlib.h"
|
||||
#include "sys/time.h"
|
||||
#include "los_typedef.h"
|
||||
#include "sys/stat.h"
|
||||
#include "securec.h"
|
||||
|
||||
|
||||
@@ -85,7 +85,6 @@ static char *StrNormalizePath(char *fullpath)
|
||||
char *src = fullpath;
|
||||
|
||||
/* 2: The position of the path character: / and the end character /0 */
|
||||
|
||||
while (*src != '\0') {
|
||||
if (*src == '.') {
|
||||
if (*(src + 1) == '/') {
|
||||
@@ -267,6 +266,6 @@ int VfsNormalizePath(const char *directory, const char *filename, char **pathnam
|
||||
}
|
||||
|
||||
*pathname = fullpath;
|
||||
return ENOERR;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,13 +31,13 @@
|
||||
|
||||
#include "stdlib.h"
|
||||
#include "los_config.h"
|
||||
#include "los_exc.h"
|
||||
#include "los_task.h"
|
||||
#include "los_sem.h"
|
||||
#include "shcmd.h"
|
||||
#include "shell.h"
|
||||
|
||||
#define OS_INVALID_SEM_ID 0xFFFFFFFF
|
||||
#define OS_ALL_TASK_MASK 0xFFFFFFFF
|
||||
|
||||
LITE_OS_SEC_TEXT_MINOR UINT8 *OsShellCmdConvertTskStatus(UINT16 taskStatus)
|
||||
{
|
||||
@@ -48,8 +48,8 @@ LITE_OS_SEC_TEXT_MINOR UINT8 *OsShellCmdConvertTskStatus(UINT16 taskStatus)
|
||||
} else {
|
||||
if (taskStatus & OS_TASK_STATUS_DELAY) {
|
||||
return (UINT8 *)"Delay";
|
||||
} else if (taskStatus & OS_TASK_STATUS_PEND_QUEUE) {
|
||||
return (UINT8 *)"Pend";
|
||||
} else if (taskStatus & OS_TASK_STATUS_PEND_TIME) {
|
||||
return (UINT8 *)"PendTime";
|
||||
} else if (taskStatus & OS_TASK_STATUS_PEND) {
|
||||
return (UINT8 *)"Pend";
|
||||
} else if (taskStatus & OS_TASK_STATUS_SUSPEND) {
|
||||
|
||||
@@ -30,16 +30,13 @@
|
||||
*/
|
||||
|
||||
#include "los_config.h"
|
||||
#include "sys/mount.h"
|
||||
|
||||
#include "los_task.h"
|
||||
#include "los_typedef.h"
|
||||
#include "shell.h"
|
||||
#include "sys/stat.h"
|
||||
#include "stdlib.h"
|
||||
#include "unistd.h"
|
||||
#include "fcntl.h"
|
||||
#include "sys/statfs.h"
|
||||
#include "stdio.h"
|
||||
#include "pthread.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user