[Spread-cvs] commit: r308 - trunk/libspread
jschultz at spread.org
jschultz at spread.org
Mon Feb 20 20:29:23 EST 2006
Author: jschultz
Date: 2006-02-20 20:29:23 -0500 (Mon, 20 Feb 2006)
New Revision: 308
Modified:
trunk/libspread/fl.c
Log:
Added the offset functions that correspond to the old Spread offset functions.
Modified: trunk/libspread/fl.c
===================================================================
--- trunk/libspread/fl.c 2006-02-21 01:28:56 UTC (rev 307)
+++ trunk/libspread/fl.c 2006-02-21 01:29:23 UTC (rev 308)
@@ -52,10 +52,9 @@
/* glob_conns is a look up table that maps mailboxes to fl_conn*s */
static stdhash glob_conns = STDHASH_STATIC_CONSTRUCT(sizeof(mailbox), sizeof(fl_conn*), NULL, NULL, 0);
-/********************************* public flush layer interface ********************************/
-
/* only does indention properly for single threaded programs right now */
-int std_stkfprintf(FILE *stream, int entering, const char *fmt, ...) {
+int std_stkfprintf(FILE *stream, int entering, const char *fmt, ...)
+{
#define MAX_TAB_IN 4096
#define INDENT 2
static int tab_in = 0;
@@ -84,6 +83,8 @@
return ret;
}
+/********************************* public flush layer interface ********************************/
+
int FL_lib_init(void)
{
static stdbool first_time = STDTRUE; /* *TRY* to mitigate bad call race conditions to FL_lib_init */
@@ -533,6 +534,21 @@
}
}
+int FL_get_gid_offset_memb_mess(void)
+{
+ return 0;
+}
+
+int FL_get_num_vs_offset_memb_mess(void)
+{
+ return sizeof(group_id);
+}
+
+int FL_get_vs_set_offset_memb_mess(void)
+{
+ return sizeof(group_id) + sizeof(int32);
+}
+
/************************************ private interface ****************************************/
/* structure routines */
More information about the Spread-cvs
mailing list