summaryrefslogtreecommitdiff
path: root/static/unix-v10/man3/system.3
diff options
context:
space:
mode:
Diffstat (limited to 'static/unix-v10/man3/system.3')
-rw-r--r--static/unix-v10/man3/system.322
1 files changed, 22 insertions, 0 deletions
diff --git a/static/unix-v10/man3/system.3 b/static/unix-v10/man3/system.3
new file mode 100644
index 00000000..0287f22f
--- /dev/null
+++ b/static/unix-v10/man3/system.3
@@ -0,0 +1,22 @@
+.TH SYSTEM 3
+.CT 2 proc_man
+.SH NAME
+system \(mi issue a shell command
+.SH SYNOPSIS
+.nf
+.B system(string)
+.B char *string;
+.fi
+.SH DESCRIPTION
+.I System
+causes the command
+\fLsh -c \fIstring\fR
+to be executed.
+The current process waits until the shell has
+completed, then returns the exit status of the shell.
+.SH "SEE ALSO"
+.IR popen (3),
+.IR exec (2),
+.IR fork (2)
+.SH DIAGNOSTICS
+Exit status 127 indicates the shell couldn't be executed.