Readonly ARG_Readonly PID_the maximum value a pid may have on the system
Gets the arguments of a process as an array of strings
An array of strings representing the arguments of pid.
TypeError if called with: missing pid, missing encoding argument, too many arguments, invalid number as pid, or if options.fatal is true and it encounters malformed data while decoding.
RangeError if called with: invalid encoding argument, pid outside valid range: 0..PID_MAX inclusive.
SystemError if the underlying sysctl or parsing fails.
The pid of the process whose arguments you want, must be between 0..PID_MAX inclusive.
The encoding to attempt to apply to the arguments. Must be an enumerated value of TextEncoding.
Optional options: { The options to use when decoding the process' arguments' bytes into strings.
Optional fatal?: booleanOptional ignoreBOM?: booleanGets the arguments of a process as a string
A string representing the arguments of pid, formatted as requested.
TypeError if called with: missing pid, missing encoding argument, invalid number as pid, invalid number as skip, or if options.fatal is true and it encounters malformed data while decoding.
RangeError if called with invalid encoding argument or pid outside valid range: 0..PID_MAX inclusive.
SystemError if the underlying sysctl or parsing fails.
The pid of the process whose arguments you want, must be between 0..PID_MAX inclusive.
The encoding to attempt to apply to the arguments. Must be an enumerated value of TextEncoding.
Optional nuls: booleanWhether to replace nul bytes with spaces for human consumption.
Optional skip: numberThe number of leading args to skip past.
Optional options: { The options to use when decoding the process' arguments' bytes into a string.
Optional fatal?: booleanOptional ignoreBOM?: booleanGets the arguments of a process as an array of ArrayBuffers
An array of ArrayBuffers representing the arguments of pid.
TypeError if called with: missing pid, too many arguments, invalid number as pid.
RangeError if called with pid outside valid range: 0..PID_MAX inclusive.
SystemError if the underlying sysctl or parsing fails.
The pid of the process whose arguments you want, must be between 0..PID_MAX inclusive.
Gets the arguments of a process as an ArrayBuffer
An ArrayBuffer representing the arguments of pid, formatted as requested.
TypeError if called with: missing pid argument, invalid number as pid, invalid number as skip.
RangeError if called with pid outside valid range: 0..PID_MAX inclusive.
SystemError if the underlying sysctl or parsing fails.
The pid of the process whose arguments you want, must be between 0..PID_MAX inclusive.
Whether to replace nul bytes with spaces for human consumption.
The number of leading args to skip past.
Generated using TypeDoc
Constant
Description
the maximum number of bytes that can be passed as args to a process (including env vars, etc)