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

void ThrowErrno (const std::string &prefix, int errnum=-1)


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

void ThrowErrno ( const std::string &  prefix,
int  errnum = -1 
) [inline]

Definition at line 69 of file Unix.h.