system.3 (73088) | system.3 (79754) |
---|---|
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 --- 20 unchanged lines hidden (view full) --- 29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" @(#)system.3 8.1 (Berkeley) 6/4/93 | 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 --- 20 unchanged lines hidden (view full) --- 29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" @(#)system.3 8.1 (Berkeley) 6/4/93 |
37.\" $FreeBSD: head/lib/libc/stdlib/system.3 73088 2001-02-26 13:23:47Z ru $ | 37.\" $FreeBSD: head/lib/libc/stdlib/system.3 79754 2001-07-15 07:53:42Z dd $ |
38.\" 39.Dd June 4, 1993 40.Dt SYSTEM 3 41.Os 42.Sh NAME 43.Nm system 44.Nd pass a command to the shell 45.Sh LIBRARY --- 29 unchanged lines hidden (view full) --- 75.Xr sh 1 76is available, and zero if it is not. 77.Pp 78The 79.Fn system 80function 81returns the exit status of the shell as returned by 82.Xr waitpid 2 , | 38.\" 39.Dd June 4, 1993 40.Dt SYSTEM 3 41.Os 42.Sh NAME 43.Nm system 44.Nd pass a command to the shell 45.Sh LIBRARY --- 29 unchanged lines hidden (view full) --- 75.Xr sh 1 76is available, and zero if it is not. 77.Pp 78The 79.Fn system 80function 81returns the exit status of the shell as returned by 82.Xr waitpid 2 , |
83or \-1 if an error occurred when invoking | 83or \-1 if an error occurred when invoking |
84.Xr fork 2 | 84.Xr fork 2 |
85or | 85or |
86.Xr waitpid 2 . 87A return value of 127 means the execution of the shell 88failed. 89.Sh SEE ALSO 90.Xr sh 1 , 91.Xr execve 2 , 92.Xr fork 2 , 93.Xr waitpid 2 , 94.Xr popen 3 95.Sh STANDARDS 96The 97.Fn system 98function 99conforms to 100.St -isoC . 101and is expected to be 102.St -p1003.2 103compatible. | 86.Xr waitpid 2 . 87A return value of 127 means the execution of the shell 88failed. 89.Sh SEE ALSO 90.Xr sh 1 , 91.Xr execve 2 , 92.Xr fork 2 , 93.Xr waitpid 2 , 94.Xr popen 3 95.Sh STANDARDS 96The 97.Fn system 98function 99conforms to 100.St -isoC . 101and is expected to be 102.St -p1003.2 103compatible. |