summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/system.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/stdlib/system.3')
-rw-r--r--src/lib/libc/stdlib/system.316
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libc/stdlib/system.3 b/src/lib/libc/stdlib/system.3
index 985adb07de..f2d2693677 100644
--- a/src/lib/libc/stdlib/system.3
+++ b/src/lib/libc/stdlib/system.3
@@ -33,7 +33,7 @@
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE. 34.\" SUCH DAMAGE.
35.\" 35.\"
36.\" $OpenBSD: system.3,v 1.5 1996/12/11 23:09:53 tholo Exp $ 36.\" $OpenBSD: system.3,v 1.6 1999/06/29 18:36:24 aaron Exp $
37.\" 37.\"
38.Dd June 29, 1991 38.Dd June 29, 1991
39.Dt SYSTEM 3 39.Dt SYSTEM 3
@@ -70,18 +70,18 @@ pointer,
70will return non-zero. 70will return non-zero.
71Otherwise, 71Otherwise,
72.Fn system 72.Fn system
73returns the termination status of the shell in the format specified by 73returns the termination status of the shell in the format specified by
74.Xr waitpid 2 . 74.Xr waitpid 2 .
75.Sh RETURN VALUES 75.Sh RETURN VALUES
76If a child process cannot be created, or the termination status of 76If a child process cannot be created, or the termination status of
77the shell cannot be obtained, 77the shell cannot be obtained,
78.Fn system 78.Fn system
79returns -1 and sets 79returns \-1 and sets
80.Va errno 80.Va errno
81to indicate the error. 81to indicate the error.
82If execution of the shell fails, 82If execution of the shell fails,
83.Fn system 83.Fn system
84returns the termination status for a program that terminates with a call of 84returns the termination status for a program that terminates with a call of
85.Fn exit 127 . 85.Fn exit 127 .
86.Sh SEE ALSO 86.Sh SEE ALSO
87.Xr sh 1 , 87.Xr sh 1 ,
@@ -93,6 +93,6 @@ The
93.Fn system 93.Fn system
94function 94function
95conforms to 95conforms to
96.St -ansiC 96.St -ansiC
97and 97and
98.St -p1003.2-92 . 98.St -p1003.2-92 .