Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=f6b73429cc1f55ddfde6b507994a4c67b8005556

commit f6b73429cc1f55ddfde6b507994a4c67b8005556
Author: James Buren <[email protected]>
Date:   Wed Aug 15 11:50:33 2012 -0500

import macro constants for size units of KiB, etc.

diff --git a/fwsetup.h b/fwsetup.h
index b731d42..b6bb469 100644
--- a/fwsetup.h
+++ b/fwsetup.h
@@ -21,11 +21,16 @@
#define _(S) S
#define memzero(P,N) memset(P,0,N)
#define assert_not_reached() assert(0)
+#define LOG_ERRNO() eprintf("%s: %s\n",__func__,strerror(errno))
+#define ASSERT_ARGS(B,R) if(B) { errno = EINVAL; LOG_ERRNO(); return R; }
#define VIRTBLK_MAJOR 253
#define DM_MAJOR 254
+#define KIBIBYTE (2LLU <<  9LLU)
+#define MEBIBYTE (2LLU << 19LLU)
+#define GIBIBYTE (2LLU << 29LLU)
+#define TEBIBYTE (2LLU << 39LLU)
+#define PEBIBYTE (2LLU << 49LLU)
#define LOGFILE "fwsetup.log"
-#define LOG_ERRNO() eprintf("%s: %s\n",__func__,strerror(errno))
-#define ASSERT_ARGS(B,R) if(B) { errno = EINVAL; LOG_ERRNO(); return R; }
#define EXECUTE_START_TEXT _("About to execute command '%s'.\n")
#define EXECUTE_STOP_TEXT _("Successfully executed command '%s'.\n")
#define PROCESS_EXIT_ERROR_TEXT _("A process (%d) has exitted with a non-zero 
exit code (%d).\n")
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to