1 /*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. 9 * 10 * %sccs.include.redist.c% 11 * 12 * @(#)times.h 8.4 (Berkeley) 01/21/94 13 */ 14 15 #ifndef _SYS_TIMES_H_ 16 #define _SYS_TIMES_H_ 17 18 #include <machine/ansi.h> 19 20 #ifdef _BSD_CLOCK_T_ 21 typedef _BSD_CLOCK_T_ clock_t; 22 #undef _BSD_CLOCK_T_ 23 #endif 24 25 struct tms { 26 clock_t tms_utime; /* User CPU time */ 27 clock_t tms_stime; /* System CPU time */ 28 clock_t tms_cutime; /* User CPU time of terminated child procs */ 29 clock_t tms_cstime; /* System CPU time of terminated child procs */ 30 }; 31 32 #ifndef KERNEL 33 #include <sys/cdefs.h> 34 35 __BEGIN_DECLS 36 clock_t times __P((struct tms *)); 37 __END_DECLS 38 #endif 39 #endif /* !_SYS_TIMES_H_ */ 40