Lines Matching refs:file

33 "       %s -l <file> ...\n"
44 " <input file>\n"
45 " - Add the resources read from file <input file> to the current\n"
46 " output file. The file can either be a resource file or an\n"
47 " executable file.\n"
48 " -a <type>:<id>[:<name>] ( <file> | -s <data> )\n"
49 " - Add a resource to the current output file. The added resource is\n"
53 " line or the data read from file <file> (the whole contents).\n"
56 " being written to the output file. This applies to all resources\n"
59 " -o <output file>\n"
60 " - Changes the output file to <output file>. All resources specified\n"
61 " by subsequent <input file> or \"-a\" commands will be written\n"
62 " to this file until the next output file is specified via the\n"
64 " with the same type and ID. If <output file> doesn't exist yet, \n"
65 " a resource file with the name will be created. If it exists and\n"
66 " is an executable file, the resources will be added to it (if the\n"
67 " file already has resources, they will be removed before). If it\n"
68 " is a resource file or a file of unknown type, it will be\n"
69 " overwritten with a resource file containing the specified\n"
70 " resources. The initial output file is \"xres.output.rsrc\".\n"
71 " Note that an output file will only be created or modified, if at\n"
72 " least one <input file> or \"-a\" command is given for it.\n"
75 " written to the output file. This applies to all resources\n"
79 " are treated as input file names.\n"
221 // open the file for reading
222 BFile file;
223 status_t error = file.SetTo(fPath.c_str(), B_READ_ONLY);
225 fprintf(stderr, "Error: Failed to open file \"%s\": %s\n",
233 error = file.GetSize(&size);
235 fprintf(stderr, "Error: Failed to get size of file \"%s\": "
243 fprintf(stderr, "Error: Resource data file \"%s\" is too big\n",
252 ssize_t bytesRead = file.ReadAt(0, fData, fSize);
254 fprintf(stderr, "Error: Failed to read data size from file "
332 // open the file for reading
333 BFile file;
334 status_t error = file.SetTo(path, B_READ_ONLY);
336 fprintf(stderr, "Error: Failed to open file \"%s\": %s\n", path,
343 error = resources.SetTo(&file, false);
346 fprintf(stderr, "Error: File \"%s\" is not a resource file.\n",
349 fprintf(stderr, "Error: Failed to read resources from file "
400 // open the file for reading
401 BFile file;
402 status_t error = file.SetTo(path, B_READ_ONLY);
404 fprintf(stderr, "Error: Failed to open input file \"%s\": %s\n",
411 error = resources.SetTo(&file, false);
414 fprintf(stderr, "Error: Input file \"%s\" is not a resource "
415 "file.\n", path);
418 "file \"%s\": %s\n", path, strerror(error));
437 "file \"%s\".\n", path);
484 B_PRId32 " to output file \"%s\": %s\n", resource_type(id.type),
497 "file \"%s\": %s\n", fOutputFilePath.c_str(),
513 // open the file for writing
514 BFile file;
515 status_t error = file.SetTo(fOutputFilePath.c_str(),
518 fprintf(stderr, "Error: Failed to open output file \"%s\": %s\n",
525 error = fResources->SetTo(&file, true);
528 "file \"%s\": %s\n", fOutputFilePath.c_str(), strerror(error));
800 const char *file = next_arg(argi);
802 if (strcmp(file, "-s") == 0) {
807 dataSource = new FileResourceDataSource(file);
845 // get file name
882 // input file
890 // input file