summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2010-07-27 15:35:39 -0700
committerNoriko Hosoi <nhosoi@redhat.com>2010-07-27 15:35:39 -0700
commitbaea677acb49c94b6204b26e7d7aeb20a9474f53 (patch)
treedb5a4aa0bd4b02d30329609a1fe17a1f6ef98c50 /ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
parent5ae0c1b445f17f402ecf25cb7d4aa31ae6612570 (diff)
downloadds-baea677acb49c94b6204b26e7d7aeb20a9474f53.tar.gz
ds-baea677acb49c94b6204b26e7d7aeb20a9474f53.tar.xz
ds-baea677acb49c94b6204b26e7d7aeb20a9474f53.zip
616608 - SIGBUS in RDN index reads on platforms with strict alignments
https://bugzilla.redhat.com/show_bug.cgi?id=616608 Fix description: Use the marshall/unmarshall technique for the entryrdn index data. Introduced sizeushort_internal_to_stored/sizeushort_stored_to_internal for the size data to store in 2 bytes. Entryrdn related functions in the dbscan utility are also modified to support marshalled data. Reviewed by ulf.weltman@hp.com and fixed bugs found by him.
Diffstat (limited to 'ldap/servers/slapd/back-ldbm/proto-back-ldbm.h')
-rw-r--r--ldap/servers/slapd/back-ldbm/proto-back-ldbm.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h b/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
index 5b776847..90ac5700 100644
--- a/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
+++ b/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
@@ -374,9 +374,8 @@ void next_id_return( backend *be, ID id );
ID next_id_get( backend *be );
void id_internal_to_stored(ID,char*);
ID id_stored_to_internal(char*);
-#if 0
-int write_dbversion( ldbm_instance *inst );
-#endif
+void sizeushort_internal_to_stored(size_t i,char *b);
+size_t sizeushort_stored_to_internal(char* b);
void get_ids_from_disk(backend *be);
void get_both_ids( struct ldbminfo *li, ID *nextid, ID *nextid2index );