8 char buf[STORE_MAXBLSZ];
10 int main(int argc, char **argv)
17 fprintf(stderr, "usage: storeget DIR\n");
20 for(o = 0; (ret = read(0, buf + o, STORE_MAXBLSZ - o)) > 0; o += ret);
21 if((st = newfstore(argv[1])) == NULL)
23 if((ret = storeput(st, buf, STORE_MAXBLSZ, &a)) < 0) {
27 printf("%s\n", formataddr(&a));