From 16fe5710be77beb1a903bf74b36863d4a18f0591 Mon Sep 17 00:00:00 2001 From: Annie_wang Date: Fri, 12 Aug 2022 10:03:59 +0800 Subject: [PATCH] update docs Signed-off-by: Annie_wang --- .../kernel/kernel-mini-basic-ipc-queue.md | 16 ++++++++-------- .../kernel-small-basic-trans-user-signal.md | 2 +- .../kernel/kernel-small-bundles-system.md | 8 ++++---- .../kernel/kernel-small-debug-shell-cmd-sem.md | 8 ++++---- .../subsystems/subsys-build-mini-lite.md | 4 ++-- .../subsystems/subsys-testguide-test.md | 4 ++-- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/en/device-dev/kernel/kernel-mini-basic-ipc-queue.md b/en/device-dev/kernel/kernel-mini-basic-ipc-queue.md index 348807896b..1994a10015 100644 --- a/en/device-dev/kernel/kernel-mini-basic-ipc-queue.md +++ b/en/device-dev/kernel/kernel-mini-basic-ipc-queue.md @@ -175,7 +175,7 @@ VOID SendEntry(VOID) ret = LOS_QueueWriteCopy(g_queue, abuf, len, 0); if(ret != LOS_OK) { - printf("send message failure, error: %x\n", ret); + printf("Failed to send the message, error: %x\n", ret); } } @@ -189,17 +189,17 @@ VOID RecvEntry(VOID) usleep(1000000); ret = LOS_QueueReadCopy(g_queue, readBuf, &readLen, 0); if(ret != LOS_OK) { - printf("recv message failure, error: %x\n", ret); + printf("Failed to receive the message, error: %x\n", ret); } printf("recv message: %s\n", readBuf); ret = LOS_QueueDelete(g_queue); if(ret != LOS_OK) { - printf("delete the queue failure, error: %x\n", ret); + printf("Failed to delete the queue, error: %x\n", ret); } - printf("delete the queue success.\n"); + printf("Deleted the queue successfully.\n"); } UINT32 ExampleQueue(VOID) @@ -217,7 +217,7 @@ UINT32 ExampleQueue(VOID) LOS_TaskLock(); ret = LOS_TaskCreate(&task1, &initParam); if(ret != LOS_OK) { - printf("create task1 failed, error: %x\n", ret); + printf("Failed to create task1, error: %x\n", ret); return ret; } @@ -226,16 +226,16 @@ UINT32 ExampleQueue(VOID) initParam.usTaskPrio = 10; ret = LOS_TaskCreate(&task2, &initParam); if(ret != LOS_OK) { - printf("create task2 failed, error: %x\n", ret); + printf("Failed to create task2, error: %x\n", ret); return ret; } ret = LOS_QueueCreate("queue", 5, &g_queue, 0, 50); if(ret != LOS_OK) { - printf("create queue failure, error: %x\n", ret); + printf("Failed to create the queue, error: %x\n", ret); } - printf("create the queue succes.\n"); + printf("Created the queue successfully.\n"); LOS_TaskUnlock(); return ret; } diff --git a/en/device-dev/kernel/kernel-small-basic-trans-user-signal.md b/en/device-dev/kernel/kernel-small-basic-trans-user-signal.md index 39fc0bc115..ee8d9eae74 100644 --- a/en/device-dev/kernel/kernel-small-basic-trans-user-signal.md +++ b/en/device-dev/kernel/kernel-small-basic-trans-user-signal.md @@ -75,7 +75,7 @@ The following table describes the APIs available for signal operations. >``` >You can obtain and modify the configuration of signal registration. Currently, only the **SIGINFO** options are supported. For details, see the description of the **sigtimedwait** API. >Transmit a signal. ->a. Among the default signal-receiving behaviors, the process does not support **STOP**, **COTINUE**, and **COREDUMP** defined in the POSIX standard. +>a. Among the default signal-receiving behaviors, the process does not support **STOP**, **CONTINUE**, and **COREDUMP** defined in the POSIX standard. >b. The **SIGSTOP**, **SIGKILL**, and **SIGCONT** signals cannot be shielded. >c. If a process killed is not reclaimed by its parent process, the process becomes a zombie process. >d. A process will not call back the signal received until the process is scheduled. diff --git a/en/device-dev/kernel/kernel-small-bundles-system.md b/en/device-dev/kernel/kernel-small-bundles-system.md index 9b3bf1c07d..b97213b50d 100644 --- a/en/device-dev/kernel/kernel-small-bundles-system.md +++ b/en/device-dev/kernel/kernel-small-bundles-system.md @@ -45,8 +45,8 @@ The typical development process of adding a system call API is as follows: #define __NR_pthread_set_detach (__NR_OHOS_BEGIN + 0) #define __NR_pthread_join (__NR_OHOS_BEGIN + 1) #define __NR_pthread_deatch (__NR_OHOS_BEGIN + 2) - #define __NR_creat_user_thread (__NR_OHOS_BEGIN + 3) - #define __NR_processcreat (__NR_OHOS_BEGIN + 4) + #define __NR_create_user_thread (__NR_OHOS_BEGIN + 3) + #define __NR_processcreate (__NR_OHOS_BEGIN + 4) #define __NR_processtart (__NR_OHOS_BEGIN + 5) #define __NR_printf (__NR_OHOS_BEGIN + 6) #define __NR_dumpmemory (__NR_OHOS_BEGIN + 13) @@ -91,8 +91,8 @@ The typical development process of adding a system call API is as follows: #define __NR_pthread_set_detach (__NR_OHOS_BEGIN + 0) #define __NR_pthread_join (__NR_OHOS_BEGIN + 1) #define __NR_pthread_deatch (__NR_OHOS_BEGIN + 2) - #define __NR_creat_user_thread (__NR_OHOS_BEGIN + 3) - #define __NR_processcreat (__NR_OHOS_BEGIN + 4) + #define __NR_create_user_thread (__NR_OHOS_BEGIN + 3) + #define __NR_processcreate (__NR_OHOS_BEGIN + 4) #define __NR_processtart (__NR_OHOS_BEGIN + 5) #define __NR_printf (__NR_OHOS_BEGIN + 6) #define __NR_dumpmemory (__NR_OHOS_BEGIN + 13) diff --git a/en/device-dev/kernel/kernel-small-debug-shell-cmd-sem.md b/en/device-dev/kernel/kernel-small-debug-shell-cmd-sem.md index 97d64d2826..61e9c5cce3 100644 --- a/en/device-dev/kernel/kernel-small-debug-shell-cmd-sem.md +++ b/en/device-dev/kernel/kernel-small-debug-shell-cmd-sem.md @@ -30,7 +30,7 @@ sem \[_ID__ / fulldata_\]

fulldata

-

Queries information about all the semaphores in use. The information includes SemID, Count, OriginalCount, Creater(TaskEntry), and LastAccessTime.

+

Queries information about all the semaphores in use. The information includes SemID, Count, OriginalCount, Creator(TaskEntry), and LastAccessTime.

N/A

@@ -103,7 +103,7 @@ OHOS # sem ->![](../public_sys-resources/icon-note.gif) **NOTE:** +>![](../public_sys-resources/icon-note.gif) **NOTE** >The **ID** value can be in decimal or hexadecimal format. >When **ID** is a value within \[0, 1023\], semaphore information of the specified ID is displayed. If the specified semaphore is not used, a message is displayed to inform you of this case. For other values, a message is displayed indicating that the parameter is incorrect. @@ -112,7 +112,7 @@ Example 2: detailed semaphore information ``` OHOS # sem fulldata Used Semaphore List: - SemID Count OriginalCount Creater(TaskEntry) LastAccessTime + SemID Count OriginalCount Creator(TaskEntry) LastAccessTime ------ ------ ------------- ------------------ -------------- 0xb 0x0 0x0 0x404978fc 0xa1 0xc 0x0 0x0 0x404978fc 0xa1 @@ -165,7 +165,7 @@ Used Semaphore List:

Original count of the semaphore

-

Creater

+

Creator

Address of the entry function of the thread used to create the semaphore

diff --git a/en/device-dev/subsystems/subsys-build-mini-lite.md b/en/device-dev/subsystems/subsys-build-mini-lite.md index fa47c3a94b..8dc143cdd7 100644 --- a/en/device-dev/subsystems/subsys-build-mini-lite.md +++ b/en/device-dev/subsystems/subsys-build-mini-lite.md @@ -631,12 +631,12 @@ The following uses the RTL8720 development board provided by Realtek as an examp # Board arch, e.g. "armv7-a", "rv32imac". board_arch = "" - # Toolchain name used for system compiling. + # Toolchain name used for system build. # E.g. gcc-arm-none-eabi, arm-linux-harmonyeabi-gcc, ohos-clang, riscv32-unknown-elf. # Note: The default toolchain is "ohos-clang". It's not mandatory if you use the default toochain. board_toolchain = "gcc-arm-none-eabi" - # The toolchain path installed, it's not mandatory if you have added toolchain path to your ~/.bashrc. + # Toolchain installation path, which can be left blank if the installation path is added to ~/.bashrc. board_toolchain_path = rebase_path("//prebuilts/gcc/linux-x86/arm/gcc-arm-none-eabi/bin", root_build_dir) diff --git a/en/device-dev/subsystems/subsys-testguide-test.md b/en/device-dev/subsystems/subsys-testguide-test.md index 80f33f20ed..bc145cf411 100644 --- a/en/device-dev/subsystems/subsys-testguide-test.md +++ b/en/device-dev/subsystems/subsys-testguide-test.md @@ -777,7 +777,7 @@ After the build is complete, the test cases are automatically saved in **out/his Run the following command to execute test cases: ``` - run -t UT -ts CalculatorSubTest -tc interger_sub_00l + run -t UT -ts CalculatorSubTest -tc integer_sub_00l ``` In the command: ``` @@ -819,7 +819,7 @@ To enable test cases to be executed on a remote Linux server or a Linux VM, map The test framework locates the test cases based on the command, and automatically builds and executes the test cases. ``` - run -t UT -ts CalculatorSubTest -tc interger_sub_00l + run -t UT -ts CalculatorSubTest -tc integer_sub_00l ``` In the command: ``` -- GitLab