Annotation of embedtools/src/ub_env.c, revision 1.1.2.3
1.1.2.1 misho 1: #include "global.h"
2: #include "ub_env.h"
3:
4:
1.1.2.3 ! misho 5: static int
! 6: ub_flash_io(env_t * __restrict e, int mode)
! 7: {
! 8: int f, ret = 0;
! 9:
! 10: FTRACE(4);
! 11:
! 12: f = open(DRV_UB_ENV_MAP, mode);
! 13: if (f == -1) {
! 14: printf("Error:: Can't access u-boot-env device %s\n", DRV_UB_ENV_MAP);
! 15: return -1;
! 16: }
! 17:
! 18: if (mode & O_RDWR) {
! 19: } else {
! 20: }
! 21:
! 22: close(f);
! 23: return ret;
! 24: }
! 25:
1.1.2.2 misho 26: const char*
27: ub_getenv(const char *csName)
28: {
29: const char *str = NULL;
30:
1.1.2.3 ! misho 31: FTRACE(3);
! 32:
1.1.2.2 misho 33: return str;
34: }
35:
36: int
37: ub_setenv(const char *csName, const char *csValue)
38: {
1.1.2.3 ! misho 39: FTRACE(3);
! 40:
1.1.2.2 misho 41: return 0;
42: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>