bup
bup-split
bup-join
-datagen
+randomgen
*.o
*.so
*~
default: all
-all: bup-split bup-join bup datagen hashsplit.so
+all: bup-split bup-join bup randomgen hashsplit.so
-datagen: datagen.o
+randomgen: randomgen.o
hashsplit.so: hashsplitmodule.o
$(CC) -shared -o $@ $<
clean:
rm -f *.o *.so *~ .*~ *.pyc \
- bup bup-split bup-join datagen \
+ bup bup-split bup-join randomgen \
out[12] tags[12]
+++ /dev/null
-#include <unistd.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdint.h>
-
-int main(int argc, char **argv)
-{
- if (argc != 2)
- {
- fprintf(stderr, "usage: %s <kbytes>\n", argv[0]);
- return 1;
- }
-
- int kbytes = atoi(argv[1]);
- uint32_t buf[1024/4];
- int i;
-
- for (; kbytes > 0; kbytes--)
- {
- for (i = 0; i < sizeof(buf)/sizeof(buf[0]); i++)
- buf[i] = random();
- write(1, buf, sizeof(buf));
- if (!(kbytes%1024))
- fprintf(stderr, ".");
- }
-
- return 0;
-}
--- /dev/null
+#include <unistd.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+
+int main(int argc, char **argv)
+{
+ if (argc != 2)
+ {
+ fprintf(stderr, "usage: %s <kbytes>\n", argv[0]);
+ return 1;
+ }
+
+ int kbytes = atoi(argv[1]);
+ uint32_t buf[1024/4];
+ int i;
+
+ for (; kbytes > 0; kbytes--)
+ {
+ for (i = 0; i < sizeof(buf)/sizeof(buf[0]); i++)
+ buf[i] = random();
+ write(1, buf, sizeof(buf));
+ if (!(kbytes%1024))
+ fprintf(stderr, ".");
+ }
+
+ return 0;
+}