LLVM API Documentation

Unix.h File Reference

#include "llvm/Config/config.h"
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cerrno>
#include <string>
#include <algorithm>
#include <unistd.h>
#include <sys/types.h>
#include <sys/param.h>
#include <assert.h>
#include <sys/time.h>
#include <time.h>
#include <sys/wait.h>

Include dependency graph for Unix.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define WEXITSTATUS(stat_val)   ((unsigned)(stat_val) >> 8)
#define WIFEXITED(stat_val)   (((stat_val) & 255) == 0)

Functions

static bool MakeErrMsg (std::string *ErrMsg, const std::string &prefix, int errnum=-1)
 Make an error message.


Define Documentation

#define WEXITSTATUS ( stat_val   )     ((unsigned)(stat_val) >> 8)

Definition at line 62 of file Unix.h.

#define WIFEXITED ( stat_val   )     (((stat_val) & 255) == 0)

Definition at line 66 of file Unix.h.


Function Documentation

static bool MakeErrMsg ( std::string *  ErrMsg,
const std::string &  prefix,
int  errnum = -1 
) [inline, static]

Make an error message.

This function builds an error message into ErrMsg using the prefix string and the Unix error number given by errnum. If errnum is -1, the default then the value of errno is used.

Definition at line 73 of file Unix.h.




This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.