Deleted Added
full compact
system.3 (16117) system.3 (43265)
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the American National Standards Committee X3, on Information
6.\" Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 61 unchanged lines hidden (view full) ---

70.Fn system
71will return non-zero if the command interpreter
72.Xr sh 1
73is available, and zero if it is not.
74.Pp
75The
76.Fn system
77function
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the American National Standards Committee X3, on Information
6.\" Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 61 unchanged lines hidden (view full) ---

70.Fn system
71will return non-zero if the command interpreter
72.Xr sh 1
73is available, and zero if it is not.
74.Pp
75The
76.Fn system
77function
78returns the exit status of the shell, or \-1 if the
79.Xr wait 2
80for the shell failed.
78returns the exit status of the shell as returned by
79.Xr waitpid 2 ,
80or \-1 if an error occurred when invoking
81.Xr fork 2
82or
83.Xr waitpid 2 .
81A return value of 127 means the execution of the shell
82failed.
83.Sh SEE ALSO
84.Xr sh 1 ,
85.Xr execve 2 ,
84A return value of 127 means the execution of the shell
85failed.
86.Sh SEE ALSO
87.Xr sh 1 ,
88.Xr execve 2 ,
86.Xr wait 2 ,
89.Xr fork 2 ,
90.Xr waitpid 2 ,
87.Xr popen 3
88.Sh STANDARDS
89The
90.Fn system
91function
92conforms to
93.St -ansiC .
94and is expected to be
95.St -p1003.2
96compatible.
91.Xr popen 3
92.Sh STANDARDS
93The
94.Fn system
95function
96conforms to
97.St -ansiC .
98and is expected to be
99.St -p1003.2
100compatible.