10 int main(int argc, char ** argv)
16 printf("Usage %s filenamebase count\n", argv[0]);
20 if (strlen(argv[1]) > 4080) {
21 printf("name too long\n");
25 count = strtoul(argv[2], NULL, 0);
28 for (i=0 ; i < count ; i++) {
29 sprintf(filename, "%s-%d", argv[1], i);
30 rc = mknod(filename, S_IFREG| 0444, 0);
32 printf("mknod(%s) error: %s\n",
33 filename, strerror(errno));