Lines Matching defs:input
46 fprintf(stderr, "Usage: append2simg <output> <input>\n");
56 int input;
91 input = open(input_path, O_RDONLY | O_BINARY);
92 if (input < 0) {
93 fprintf(stderr, "Couldn't open input file (%s)\n", strerror(errno));
97 input_len = lseek64(input, 0, SEEK_END);
99 fprintf(stderr, "Couldn't get input file length (%s)\n", strerror(errno));
105 lseek64(input, 0, SEEK_SET);
108 if (sparse_file_add_fd(sparse_output, input, 0, input_len, output_block) < 0) {
109 fprintf(stderr, "Couldn't add input file\n");
129 close(input);