File:  [ELWIX - Embedded LightWeight unIX -] / embedtools / src / ub_env.c
Revision 1.1.2.3: download - view: text, annotated - select for diffs - revision graph
Tue Jan 28 22:03:01 2014 UTC (10 years, 5 months ago) by misho
Branches: tools2_0
add config support

#include "global.h"
#include "ub_env.h"


static int
ub_flash_io(env_t * __restrict e, int mode)
{
	int f, ret = 0;

	FTRACE(4);

	f = open(DRV_UB_ENV_MAP, mode);
	if (f == -1) {
		printf("Error:: Can't access u-boot-env device %s\n", DRV_UB_ENV_MAP);
		return -1;
	}

	if (mode & O_RDWR) {
	} else {
	}

	close(f);
	return ret;
}

const char*
ub_getenv(const char *csName)
{
	const char *str = NULL;

	FTRACE(3);

	return str;
}

int
ub_setenv(const char *csName, const char *csValue)
{
	FTRACE(3);

	return 0;
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>