/* Machine generated file, do not modify */
#include "HsFFI.h"
static HugsAPI4 *hugs = 0;
#include "string.h"

static void hugsprim_strerror_1(HugsStackPtr);
static void hugsprim_strerror_1(HugsStackPtr hugs_root)
{
    HsWord32 arg1;
    HsPtr res1;
    arg1 = hugs->getInt32();
    res1 = strerror(arg1);
    hugs->putPtr(res1);
    hugs->returnIO(hugs_root,1);
}
#include "HsBase.h"

static void hugsprim_ghcErrno_0(HugsStackPtr);
static void hugsprim_ghcErrno_0(HugsStackPtr hugs_root)
{
    HsPtr res1;
    res1 = ghcErrno();
    hugs->putPtr(res1);
}

static struct hugs_primitive hugs_primTable[] = {
    {"strerror", 3, hugsprim_strerror_1},
    {"_errno", 0, hugsprim_ghcErrno_0},
};

static void hugs_primControl(int);
static void hugs_primControl(what)
int what; {
}
static struct hugs_primInfo hugs_prims = { hugs_primControl, hugs_primTable, 0 };

#ifdef __cplusplus
extern "C" {
#endif
DLLEXPORT(void) initModule(HugsAPI4 *);
DLLEXPORT(void) initModule(HugsAPI4 *hugsAPI) {
    hugs = hugsAPI;
    hugs->registerPrims(&hugs_prims);
}
#ifdef __cplusplus
}
#endif

