diff options
author | H. Peter Anvin <hpa@zytor.com> | 2001-10-19 06:09:29 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2001-10-19 06:09:29 +0000 |
commit | 7699ea1cbb2cbdc7a81279b23fd4eafe188d99dc (patch) | |
tree | 173e73ac01d7678be9f82bc5bfe74ce0dd5c938b /teststore.c | |
parent | 6f9d2dab5ff8d60ed805a821e9c7d2272c753e81 (diff) | |
download | lpsm-7699ea1cbb2cbdc7a81279b23fd4eafe188d99dc.tar.gz lpsm-7699ea1cbb2cbdc7a81279b23fd4eafe188d99dc.tar.xz lpsm-7699ea1cbb2cbdc7a81279b23fd4eafe188d99dc.zip |
Change names around to be more consistent; set the name of the system to
LPSM (Linux Persistent Memory); set the load address to 0x58000000 on i386
(in case we're on x86-64 in 32-bit mode, or using Andrea's 3.5G patches);
change symbol names throughout. Add README file.
Diffstat (limited to 'teststore.c')
-rw-r--r-- | teststore.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/teststore.c b/teststore.c index 532e7aa..2aa6a4a 100644 --- a/teststore.c +++ b/teststore.c @@ -15,14 +15,14 @@ #include <stdio.h> #include <string.h> #include <unistd.h> -#include "objstore.h" +#include "lpsm.h" int main(int argc, char *argv[]) { void *buf; int arena_len = 16384; - buf = objstore_init("test.dat", "test.log", &arena_len); + buf = lpsm_arena_init("test.dat", "test.log", &arena_len); printf("Read from first page: %s\n", (char *)buf); @@ -30,16 +30,16 @@ int main(int argc, char *argv[]) strcpy((char *)buf + 8192, "This is the third page!"); printf("Read from third page: %s\n", (char *)buf + 8192); - objstore_checkpoint(0.5, OBJSYNC_WAIT); + lpsm_checkpoint(0.5, PSMSYNC_WAIT); strcpy((char *)buf + 8192, "This is also the third page!"); printf("Read from third page: %s\n", (char *)buf + 8192); - objstore_checkpoint(0.0, OBJSYNC_WAIT); + lpsm_checkpoint(0.0, PSMSYNC_WAIT); - objstore_extend(65536); + lpsm_extend(65536); strcpy((char *)buf + 32768, "This is the ninth page!"); - objstore_checkpoint(0.0, OBJSYNC_SYNC); + lpsm_checkpoint(0.0, PSMSYNC_SYNC); return 0; } |