未验证 提交 22636e3f 编写于 作者: O openharmony_ci 提交者: Gitee

!18827 [翻译完成】#I70RAB

Merge pull request !18827 from Annie_wang/PR17892
...@@ -189,7 +189,9 @@ int clone(int (*fn)(void *), void *stack, int flags, void *arg, ... ...@@ -189,7 +189,9 @@ int clone(int (*fn)(void *), void *stack, int flags, void *arg, ...
int unshare(int flags); int unshare(int flags);
``` ```
**NOTE**<br>For the PID or Time container, **unshare()** moves the child process (not the process itself) to a new container created. > **NOTE**
>
> For the PID or Time container, **unshare()** moves the child process (not the process itself) to a new container created.
- **setns** - **setns**
...@@ -199,7 +201,9 @@ int clone(int (*fn)(void *), void *stack, int flags, void *arg, ... ...@@ -199,7 +201,9 @@ int clone(int (*fn)(void *), void *stack, int flags, void *arg, ...
int setns(int fd, int nstype); int setns(int fd, int nstype);
``` ```
**NOTE**<br>For the PID or Time container, **setns()** moves the child process (not the process itself) to another container. > **NOTE**
>
> For the PID or Time container, **setns()** moves the child process (not the process itself) to another container.
### Destroying a Container ### Destroying a Container
...@@ -307,8 +311,6 @@ inum = CONTAINER_IDEX_BASE + (unsigned int)i; ...@@ -307,8 +311,6 @@ inum = CONTAINER_IDEX_BASE + (unsigned int)i;
- The container features are controlled by compiler macros. - The container features are controlled by compiler macros.
- Container compiler macro definition:
``` ```
// Macro of the container feature // Macro of the container feature
LOSCFG_CONTAINER LOSCFG_CONTAINER
...@@ -321,7 +323,7 @@ inum = CONTAINER_IDEX_BASE + (unsigned int)i; ...@@ -321,7 +323,7 @@ inum = CONTAINER_IDEX_BASE + (unsigned int)i;
LOSCFG_TIME_CONTAINER LOSCFG_TIME_CONTAINER
LOSCFG_IPC_CONTAINER LOSCFG_IPC_CONTAINER
``` ```
### Development Examples ### Development Examples
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册