Digital UNIX Diffs - system(5) Digital UNIX Diffs - system(5)NAMEsystem - Executes a shell command
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <stdio.h> #include <stdlib.h>
int system (
const char ∗string );
PARAMETERS
Specifies a valid shell command.
DIFFERENCESvms-system(5): OpenVMS Command Line Differences
On OpenVMS the argument string must be a DCL command. On UNIX, this
argument is sh(1) shell command.
The return value of the function differs on the 2 system. If the argu‐
ment string is null on OpenVMS, a 1 is returned. On UNIX, this situa‐
tion returns a 0 if the shell is inaccessible; otherwise a positive
value.
A successful execution of the function returns an OpenVMS status code
on OpenVMS. UNIX returns a status in the form that wait(2) returns.
vms-process(5): OpenVMS Process Model Differences
On OpenVMS calling system(3) after a vfork(2) but before the corre‐
sponding exec(2), will not work properly. This works properly on UNIX.
RELATED INFORMATION
Functions: system(3), vfork(5)CATEGORY INDEXvms-process(5), vms-system(5)
delim off
Digital UNIX Diffs - system(5)