Octave-Forge - Extra packages for GNU Octave | |
Home · Packages · Developers · Documentation · FAQ · Bugs · Mailing Lists · Links · Code |
00001 /* -*- buffer-read-only: t -*- vi: set ro: */ 00002 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 00003 /* Provide a sys/times.h header file. 00004 Copyright (C) 2008-2011 Free Software Foundation, Inc. 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 3, or (at your option) 00009 any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software Foundation, 00018 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 00019 00020 /* Written by Simon Josefsson <simon@josefsson.org>, 2008. */ 00021 00022 /* This file is supposed to be used on platforms where <sys/times.h> 00023 is missing. */ 00024 00025 #ifndef _GL_SYS_TIMES_H 00026 00027 # if __GNUC__ >= 3 00028 @PRAGMA_SYSTEM_HEADER@ 00029 # endif 00030 @PRAGMA_COLUMNS@ 00031 00032 # if @HAVE_SYS_TIMES_H@ 00033 # @INCLUDE_NEXT@ @NEXT_SYS_TIMES_H@ 00034 # endif 00035 00036 # define _GL_SYS_TIMES_H 00037 00038 /* Get clock_t. 00039 But avoid namespace pollution on glibc systems. */ 00040 # ifndef __GLIBC__ 00041 # include <time.h> 00042 # endif 00043 00044 /* The definition of _GL_ARG_NONNULL is copied here. */ 00045 00046 /* The definition of _GL_WARN_ON_USE is copied here. */ 00047 00048 # ifdef __cplusplus 00049 extern "C" { 00050 # endif 00051 00052 # if !@HAVE_STRUCT_TMS@ 00053 # if !GNULIB_defined_struct_tms 00054 /* Structure describing CPU time used by a process and its children. */ 00055 struct tms 00056 { 00057 clock_t tms_utime; /* User CPU time. */ 00058 clock_t tms_stime; /* System CPU time. */ 00059 00060 clock_t tms_cutime; /* User CPU time of dead children. */ 00061 clock_t tms_cstime; /* System CPU time of dead children. */ 00062 }; 00063 # define GNULIB_defined_struct_tms 1 00064 # endif 00065 # endif 00066 00067 # if @GNULIB_TIMES@ 00068 # if !@HAVE_TIMES@ 00069 extern clock_t times (struct tms *buffer) _GL_ARG_NONNULL ((1)); 00070 # endif 00071 # elif defined GNULIB_POSIXCHECK 00072 # undef times 00073 # if HAVE_RAW_DECL_TIMES 00074 _GL_WARN_ON_USE (times, "times is unportable - " 00075 "use gnulib module times for portability"); 00076 # endif 00077 # endif 00078 00079 # ifdef __cplusplus 00080 } 00081 # endif 00082 00083 #endif /* _GL_SYS_TIMES_H */