Dr Andrew Scott G7VAV

My photo
 
May 2024
Mo Tu We Th Fr Sa Su
29 30 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2
3 4 5 6 7 8 9


vtimes.h
01: /* Copyright (C) 1991, 1992, 1996, 1999 Free Software Foundation, Inc.
02:    This file is part of the GNU C Library.
03: 
04:    The GNU C Library is free software; you can redistribute it and/or
05:    modify it under the terms of the GNU Lesser General Public
06:    License as published by the Free Software Foundation; either
07:    version 2.1 of the License, or (at your option) any later version.
08: 
09:    The GNU C Library is distributed in the hope that it will be useful,
10:    but WITHOUT ANY WARRANTY; without even the implied warranty of
11:    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12:    Lesser General Public License for more details.
13: 
14:    You should have received a copy of the GNU Lesser General Public
15:    License along with the GNU C Library; if not, write to the Free
16:    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17:    02111-1307 USA.  */
18: 
19: #ifndef _SYS_VTIMES_H
20: #define _SYS_VTIMES_H   1
21: 
22: #include <features.h>
23: 
24: __BEGIN_DECLS
25: 
26: /* This interface is obsolete; use `getrusage' instead.  */
27: 
28: /* Granularity of the `vm_utime' and `vm_stime' fields of a `struct vtimes'.
29:    (This is the frequency of the machine's power supply, in Hz.)  */
30: #define VTIMES_UNITS_PER_SECOND 60
31: 
32: struct vtimes
33: {
34:   /* User time used in units of 1/VTIMES_UNITS_PER_SECOND seconds.  */
35:   int vm_utime;
36:   /* System time used in units of 1/VTIMES_UNITS_PER_SECOND seconds.  */
37:   int vm_stime;
38: 
39:   /* Amount of data and stack memory used (kilobyte-seconds).  */
40:   unsigned int vm_idsrss;
41:   /* Amount of text memory used (kilobyte-seconds).  */
42:   unsigned int vm_ixrss;
43:   /* Maximum resident set size (text, data, and stack) (kilobytes).  */
44:   int vm_maxrss;
45: 
46:   /* Number of hard page faults (i.e. those that required I/O).  */
47:   int vm_majflt;
48:   /* Number of soft page faults (i.e. those serviced by reclaiming
49:      a page from the list of pages awaiting reallocation.  */
50:   int vm_minflt;
51: 
52:   /* Number of times a process was swapped out of physical memory.  */
53:   int vm_nswap;
54: 
55:   /* Number of input operations via the file system.  Note: This
56:      and `ru_oublock' do not include operations with the cache.  */
57:   int vm_inblk;
58:   /* Number of output operations via the file system.  */
59:   int vm_oublk;
60: };
61: 
62: /* If CURRENT is not NULL, write statistics for the current process into
63:    *CURRENT.  If CHILD is not NULL, write statistics for all terminated child
64:    processes into *CHILD.  Returns 0 for success, -1 for failure.  */
65: extern int vtimes (struct vtimes * __current, struct vtimes * __child) __THROW;
66: 
67: __END_DECLS
68: 
69: #endif /* sys/vtimes.h  */
70: 


for client 3.128.79.88
© Andrew Scott 2006 - 2024,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/