LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

resource.h

Go to the documentation of this file.
00001 /*===-- Config/sys/resource.h -----------------------------------*- C++ -*-===//
00002  * 
00003  *                     The LLVM Compiler Infrastructure
00004  *
00005  * This file was developed by the LLVM research group and is distributed under
00006  * the University of Illinois Open Source License. See LICENSE.TXT for details.
00007  * 
00008  *===----------------------------------------------------------------------===//
00009  *
00010  *  This header file is the autoconf replacement for sys/resource.h (if it
00011  *  lives on the system).
00012  *
00013  *===----------------------------------------------------------------------===//
00014  */
00015 
00016 #ifndef _CONFIG_SYS_RESOURCE_H
00017 #define _CONFIG_SYS_RESOURCE_H
00018 
00019 #include "llvm/Config/config.h"
00020 
00021 #if defined(HAVE_SYS_RESOURCE_H) && !defined(_MSC_VER)
00022 
00023 /*
00024  * In LLVM, we use sys/resource.h to use getrusage() and maybe some other
00025  * stuff.  Some man pages say that you also need sys/time.h and unistd.h.
00026  * So, to be paranoid, we will try to include all three if possible.
00027  */
00028 #include "llvm/Config/sys/time.h"
00029 #include <sys/resource.h>
00030 #include "llvm/Config/unistd.h"
00031 
00032 #endif
00033 
00034 #endif