getrusage.2 (108028) | getrusage.2 (108087) |
---|---|
1.\" Copyright (c) 1985, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)getrusage.2 8.1 (Berkeley) 6/4/93 | 1.\" Copyright (c) 1985, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)getrusage.2 8.1 (Berkeley) 6/4/93 |
33.\" $FreeBSD: head/lib/libc/sys/getrusage.2 108028 2002-12-18 09:22:32Z ru $ | 33.\" $FreeBSD: head/lib/libc/sys/getrusage.2 108087 2002-12-19 09:40:28Z ru $ |
34.\" 35.Dd June 4, 1993 36.Dt GETRUSAGE 2 37.Os 38.Sh NAME 39.Nm getrusage 40.Nd get information about resource utilization 41.Sh LIBRARY --- 9 unchanged lines hidden (view full) --- 51.Sh DESCRIPTION 52The 53.Fn getrusage 54system call 55returns information describing the resources utilized by the current 56process, or all its terminated child processes. 57The 58.Fa who | 34.\" 35.Dd June 4, 1993 36.Dt GETRUSAGE 2 37.Os 38.Sh NAME 39.Nm getrusage 40.Nd get information about resource utilization 41.Sh LIBRARY --- 9 unchanged lines hidden (view full) --- 51.Sh DESCRIPTION 52The 53.Fn getrusage 54system call 55returns information describing the resources utilized by the current 56process, or all its terminated child processes. 57The 58.Fa who |
59parameter is either | 59argument is either |
60.Dv RUSAGE_SELF 61or 62.Dv RUSAGE_CHILDREN . 63The buffer to which 64.Fa rusage 65points will be filled in with 66the following structure: 67.Bd -literal --- 90 unchanged lines hidden (view full) --- 158.Sh ERRORS 159The 160.Fn getrusage 161system call will fail if: 162.Bl -tag -width Er 163.It Bq Er EINVAL 164The 165.Fa who | 60.Dv RUSAGE_SELF 61or 62.Dv RUSAGE_CHILDREN . 63The buffer to which 64.Fa rusage 65points will be filled in with 66the following structure: 67.Bd -literal --- 90 unchanged lines hidden (view full) --- 158.Sh ERRORS 159The 160.Fn getrusage 161system call will fail if: 162.Bl -tag -width Er 163.It Bq Er EINVAL 164The 165.Fa who |
166parameter is not a valid value. | 166argument is not a valid value. |
167.It Bq Er EFAULT 168The address specified by the 169.Fa rusage | 167.It Bq Er EFAULT 168The address specified by the 169.Fa rusage |
170parameter is not in a valid part of the process address space. | 170argument is not in a valid part of the process address space. |
171.El 172.Sh SEE ALSO 173.Xr gettimeofday 2 , 174.Xr wait 2 , 175.Xr clocks 7 176.Sh BUGS 177There is no way to obtain information about a child process 178that has not yet terminated. 179.Sh HISTORY 180The 181.Fn getrusage 182system call appeared in 183.Bx 4.2 . | 171.El 172.Sh SEE ALSO 173.Xr gettimeofday 2 , 174.Xr wait 2 , 175.Xr clocks 7 176.Sh BUGS 177There is no way to obtain information about a child process 178that has not yet terminated. 179.Sh HISTORY 180The 181.Fn getrusage 182system call appeared in 183.Bx 4.2 . |