Login
7 branches 0 tags
Ben (X13/Arch) Image bootstrap improvements 0320fe5 2 years ago 1172 Commits
nujel / bin / private.h
#ifndef NUJEL_BIN_PRIVATE
#define NUJEL_BIN_PRIVATE

#ifndef NUJEL_AMALGAMATION
#include "../lib/nujel.h"
#endif

#if (!defined(_WIN32)) && (!defined(__wasi__))
#include <termios.h>
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#if defined(_MSC_VER)
	#include  <io.h>
	#define access(path,mode) _access(path,mode)
#else
	#include <unistd.h>
#endif

extern lSymbol *lSymError;
extern lSymbol *lSymReplace;
extern lSymbol *lSymAppend;

void initEnvironmentMap(lClosure *c);
void setIOSymbols();
void lOperationsIO   (lClosure *c);
void lOperationsPort (lClosure *c);
void lOperationsInit (lClosure *c);
void lOperationsNet  (lClosure *c);
void *loadFile(const char *filename, size_t *len);

int  makeDir   (const char *name);

#endif