1 *** ./lock/lock.c.save 2004-01-30 10:48:33.000000000 -0800
2 --- ./lock/lock.c 2004-01-30 10:55:58.000000000 -0800
5 dp = (u_int8_t *)dp + \
8 ! #define COPY_OBJ(dp, obj) do { \
9 ! memcpy(dp, obj->data, obj->size); \
10 ! dp = (u_int8_t *)dp + \
12 ! sizeof(u_int32_t)); \
15 #define GET_COUNT(dp, count) do { \
17 dp = (u_int8_t *)dp + \
20 ! #define COPY_OBJ(dp, obj) do { \
22 ! (obj)->data, (obj)->size); \
23 ! dp = (u_int8_t *)dp + \
24 ! ALIGN((obj)->size, \
25 ! sizeof(u_int32_t)); \
28 #define GET_COUNT(dp, count) do { \
31 for (i = 0; i < nlocks; i = j) {
32 PUT_PCOUNT(dp, obj[i].ulen);
33 PUT_SIZE(dp, obj[i].size);
35 lock = (DB_LOCK_ILOCK *)obj[i].data;
36 for (j = i + 1; j <= i + obj[i].ulen; j++) {
37 lock = (DB_LOCK_ILOCK *)obj[j].data;
39 for (i = 0; i < nlocks; i = j) {
40 PUT_PCOUNT(dp, obj[i].ulen);
41 PUT_SIZE(dp, obj[i].size);
42 ! COPY_OBJ(dp, &obj[i]);
43 lock = (DB_LOCK_ILOCK *)obj[i].data;
44 for (j = i + 1; j <= i + obj[i].ulen; j++) {
45 lock = (DB_LOCK_ILOCK *)obj[j].data;