未验证 提交 38e422e7 编写于 作者: O openharmony_ci 提交者: Gitee

!2386 Done! 2219:一致性问题修复

Merge pull request !2386 from wusongqing/TR2219
...@@ -10,12 +10,11 @@ ...@@ -10,12 +10,11 @@
import process from '@ohos.process'; import process from '@ohos.process';
``` ```
## System Capabilities
SystemCapability.Utils.Lang
## Attributes ## Attributes
**System capability**: SystemCapability.Utils.Lang
| Name| Type| Readable| Writable| Description| | Name| Type| Readable| Writable| Description|
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| egid | number | Yes| No| Effective group identifier (EGID) of a process.| | egid | number | Yes| No| Effective group identifier (EGID) of a process.|
...@@ -35,6 +34,8 @@ Allows a process to obtain the standard input and output of its child processes, ...@@ -35,6 +34,8 @@ Allows a process to obtain the standard input and output of its child processes,
### Attributes ### Attributes
**System capability**: SystemCapability.Utils.Lang
| Name| Type| Readable| Writable| Description| | Name| Type| Readable| Writable| Description|
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| pid | number | Yes| No| PID of the child process.| | pid | number | Yes| No| PID of the child process.|
...@@ -49,6 +50,8 @@ wait(): Promise<number> ...@@ -49,6 +50,8 @@ wait(): Promise<number>
Waits until the child process ends. This method uses a promise to return the exit code of the child process. Waits until the child process ends. This method uses a promise to return the exit code of the child process.
**System capability**: SystemCapability.Utils.Lang
**Return value** **Return value**
| Type| Description| | Type| Description|
...@@ -72,6 +75,8 @@ getOutput(): Promise<Uint8Array> ...@@ -72,6 +75,8 @@ getOutput(): Promise<Uint8Array>
Obtains the standard output of the child process. Obtains the standard output of the child process.
**System capability**: SystemCapability.Utils.Lang
**Return value** **Return value**
| Type| Description| | Type| Description|
...@@ -95,6 +100,8 @@ getErrorOutput(): Promise<Uint8Array> ...@@ -95,6 +100,8 @@ getErrorOutput(): Promise<Uint8Array>
Obtains the standard error output of the child process. Obtains the standard error output of the child process.
**System capability**: SystemCapability.Utils.Lang
**Return value** **Return value**
| Type| Description| | Type| Description|
...@@ -118,6 +125,8 @@ close(): void ...@@ -118,6 +125,8 @@ close(): void
Closes the child process in running. Closes the child process in running.
**System capability**: SystemCapability.Utils.Lang
**Example** **Example**
``` ```
...@@ -132,6 +141,8 @@ kill(signal: number | string): void ...@@ -132,6 +141,8 @@ kill(signal: number | string): void
Sends a signal to the specified child process to terminate it. Sends a signal to the specified child process to terminate it.
**System capability**: SystemCapability.Utils.Lang
**Parameters** **Parameters**
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
...@@ -152,6 +163,8 @@ isIsolatedProcess(): boolean ...@@ -152,6 +163,8 @@ isIsolatedProcess(): boolean
Checks whether this process is isolated. Checks whether this process is isolated.
**System capability**: SystemCapability.Utils.Lang
**Return value** **Return value**
| Type| Description| | Type| Description|
...@@ -171,6 +184,8 @@ isAppUid(v: number): boolean ...@@ -171,6 +184,8 @@ isAppUid(v: number): boolean
Checks whether a UID belongs to this app. Checks whether a UID belongs to this app.
**System capability**: SystemCapability.Utils.Lang
**Parameters** **Parameters**
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
...@@ -196,6 +211,8 @@ is64Bit(): boolean ...@@ -196,6 +211,8 @@ is64Bit(): boolean
Checks whether this process is running in a 64-bit environment. Checks whether this process is running in a 64-bit environment.
**System capability**: SystemCapability.Utils.Lang
**Return value** **Return value**
| Type| Description| | Type| Description|
...@@ -215,6 +232,8 @@ getUidForName(v: string): number ...@@ -215,6 +232,8 @@ getUidForName(v: string): number
Obtains the process UID based on the process name. Obtains the process UID based on the process name.
**System capability**: SystemCapability.Utils.Lang
**Parameters** **Parameters**
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
...@@ -240,6 +259,8 @@ getThreadPriority(v: number): number ...@@ -240,6 +259,8 @@ getThreadPriority(v: number): number
Obtains the thread priority based on the specified TID. Obtains the thread priority based on the specified TID.
**System capability**: SystemCapability.Utils.Lang
**Parameters** **Parameters**
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
...@@ -266,6 +287,8 @@ getStartRealtime(): number ...@@ -266,6 +287,8 @@ getStartRealtime(): number
Obtains the duration, in milliseconds, from the time the system starts to the time the process starts. Obtains the duration, in milliseconds, from the time the system starts to the time the process starts.
**System capability**: SystemCapability.Utils.Lang
**Return value** **Return value**
| Type| Description| | Type| Description|
...@@ -284,6 +307,8 @@ getPastCpuTime(): number ...@@ -284,6 +307,8 @@ getPastCpuTime(): number
Obtains the CPU time (in milliseconds) from the time the process starts to the current time. Obtains the CPU time (in milliseconds) from the time the process starts to the current time.
**System capability**: SystemCapability.Utils.Lang
**Return value** **Return value**
| Type| Description| | Type| Description|
...@@ -303,6 +328,8 @@ getSystemConfig(name: number): number ...@@ -303,6 +328,8 @@ getSystemConfig(name: number): number
Obtains the system configuration. Obtains the system configuration.
**System capability**: SystemCapability.Utils.Lang
**Parameters** **Parameters**
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
...@@ -329,6 +356,8 @@ getEnvironmentVar(name: string): string ...@@ -329,6 +356,8 @@ getEnvironmentVar(name: string): string
Obtains the value of an environment variable. Obtains the value of an environment variable.
**System capability**: SystemCapability.Utils.Lang
**Parameters** **Parameters**
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
...@@ -354,6 +383,8 @@ runCmd(command: string, options?: { timeout : number, killSignal : number | stri ...@@ -354,6 +383,8 @@ runCmd(command: string, options?: { timeout : number, killSignal : number | stri
Forks a new process to run a shell command and returns the **ChildProcess** object. Forks a new process to run a shell command and returns the **ChildProcess** object.
**System capability**: SystemCapability.Utils.Lang
**Parameters** **Parameters**
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
...@@ -392,6 +423,8 @@ abort(): void ...@@ -392,6 +423,8 @@ abort(): void
Aborts a process and generates a core file. This method will cause a process to exit immediately. Exercise caution when using this method. Aborts a process and generates a core file. This method will cause a process to exit immediately. Exercise caution when using this method.
**System capability**: SystemCapability.Utils.Lang
**Example** **Example**
``` ```
...@@ -405,6 +438,8 @@ on(type: string, listener: EventListener): void ...@@ -405,6 +438,8 @@ on(type: string, listener: EventListener): void
Stores the events triggered by the user. Stores the events triggered by the user.
**System capability**: SystemCapability.Utils.Lang
**Parameters** **Parameters**
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
...@@ -433,6 +468,8 @@ off(type: string): boolean ...@@ -433,6 +468,8 @@ off(type: string): boolean
Deletes the event stored by the user. Deletes the event stored by the user.
**System capability**: SystemCapability.Utils.Lang
**Parameters** **Parameters**
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
...@@ -461,6 +498,10 @@ exit(code: number): void ...@@ -461,6 +498,10 @@ exit(code: number): void
Terminates this process. Terminates this process.
Exercise caution when using this API.
**System capability**: SystemCapability.Utils.Lang
**Parameters** **Parameters**
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
...@@ -480,6 +521,8 @@ cwd(): string ...@@ -480,6 +521,8 @@ cwd(): string
Obtains the working directory of this process. Obtains the working directory of this process.
**System capability**: SystemCapability.Utils.Lang
**Example** **Example**
``` ```
...@@ -493,6 +536,8 @@ chdir(dir: string): void ...@@ -493,6 +536,8 @@ chdir(dir: string): void
Changes the working directory of this process. Changes the working directory of this process.
**System capability**: SystemCapability.Utils.Lang
**Parameters** **Parameters**
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
...@@ -512,6 +557,8 @@ uptime(): number ...@@ -512,6 +557,8 @@ uptime(): number
Obtains the running time of this process. Obtains the running time of this process.
**System capability**: SystemCapability.Utils.Lang
**Return value** **Return value**
| Type| Description| | Type| Description|
...@@ -531,6 +578,8 @@ kill(signal: number, pid: number): boolean ...@@ -531,6 +578,8 @@ kill(signal: number, pid: number): boolean
Sends a signal to the specified process to terminate it. Sends a signal to the specified process to terminate it.
**System capability**: SystemCapability.Utils.Lang
**Parameters** **Parameters**
| Name| Type| Mandatory| Description| | Name| Type| Mandatory| Description|
......
...@@ -340,7 +340,7 @@ Defines the XML parsing options. ...@@ -340,7 +340,7 @@ Defines the XML parsing options.
## ParseInfo ## ParseInfo
Provides methods to manage the parsed XML information. Provides APIs to manage the parsed XML information.
### getColumnNumber ### getColumnNumber
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册