stdin

QNX SDP8.0PLMS User's GuideAPIConfigurationDeveloper

Format

stdin = "filename:mode"

Description

The stdin keyword specifies the filename and the access mode. The access modes are read only (r). Specifying stdin="NULL" closes STDIN_FILENO (fd:0) for the process.

Example

stdin = "/tmp/stdin:r"

Default

The system default is that the child process inherits its parent's stdin. The child process inherits PLMS's stdin.

Multiplicity

No instance or one instance in a task block.

Constraints

  • The value of stdin is evaluated during component runtime.

  • If stdin is specified, then tty is not allowed in the task.

  • If stdin is specified in a task, then the task must have one of the exec*() function so that stdin is used at run time.

  • The file must be readable by the task’s primary user or group. It cannot rely on permissions granted through supplementary groups, because those groups are applied only after the process starts. As a result, if the file is accessible only through a supplementary group, the process won’t be able to read from stdin at startup.

Page updated: