mirror of
https://github.com/radareorg/r0.git
synced 2026-11-07 06:25:57 -10:00
27 lines
555 B
C
27 lines
555 B
C
#define VERSION "0.9"
|
|
|
|
#include <unistd.h>
|
|
#include <sys/types.h>
|
|
#include "io.c"
|
|
#include <stdio.h>
|
|
#include <ctype.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
|
|
#define SKIPSPACES(x) for(;*(x)==' '||*(x)=='\t';x++) {};
|
|
|
|
#if(R0_NOENV)
|
|
#define LLF "ll"
|
|
#define setenv(x,y,z) //
|
|
// static int setenv(char *var, char *val, int force) { return 0; }
|
|
#elif(plan9)
|
|
static int setenv(char *var, char *val, int force) {
|
|
char str[256];
|
|
snprintf(str, sizeof(str), "echo %s > /env/%s", var, val);
|
|
return system(str);
|
|
}
|
|
#define LLF "L"
|
|
#else
|
|
#define LLF "ll"
|
|
#endif
|