Annotation of embedtools/inc/defs.h, revision 1.2
1.1 misho 1: /*************************************************************************
2: * (C) 2009 AITNET - Sofia/Bulgaria - <office@aitbg.com>
3: * by Michael Pounov <misho@aitbg.com>
4: *
5: * $Author: misho $
1.2 ! misho 6: * $Id: defs.h,v 1.1.1.1.2.10 2011/06/08 08:00:23 misho Exp $
1.1 misho 7: *
8: *************************************************************************/
9: #ifndef __DEFS_H
10: #define __DEFS_H
11:
12:
13: #define MAX_STR 256
1.2 ! misho 14: #define TFTP_BUF 516
! 15: #define TFTP_RETRY 7
! 16: #define TFTP_TIMEOUT 3
1.1 misho 17:
18: #define DEFAULT_TIMEOUT "300"
19: #define DEFAULT_CONFIG "/etc/cfexec.conf"
20: #define DEFAULT_USER "root"
1.2 ! misho 21: #define DEFAULT_MOUNT "/elwix"
! 22: #define DEFAULT_DEVICE "/dev/ufs/elwix"
1.1 misho 23: #define DEFAULT_CHROOT "/"
24: #define DEFAULT_TMP "/tmp"
1.2 ! misho 25: #define DEFAULT_TFTP 69
! 26: #define DEFAULT_TFTPDIR "/elwix/tftpboot"
! 27: #define DEFAULT_PKGDIR "/system"
! 28:
! 29: #define FIRMWARE_IMG "elwix-firmware.sys"
! 30: #define FIRMWARE_BAK "elwix-firmware.sys.old"
! 31:
! 32: #if defined(__FreeBSD__)
! 33: #elif defined(__OpenBSD__)
! 34: #endif
1.1 misho 35:
36: #define VERB(x) if ((x) <= Verbose)
1.2 ! misho 37: #define FTRACE(x) if ((x) <= Verbose) syslog(LOG_DEBUG, "Debug:: I`m %s(%d) ...\n", __func__, __LINE__)
1.1 misho 38:
39:
1.2 ! misho 40: extern int Verbose;
1.1 misho 41:
42:
43: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>