Searched refs:ofname (Results 1 - 16 of 16) sorted by relevance

/netgear-R7800-V1.0.2.28/tools/firmware-utils/src/
H A Dmkdniimg.c28 static char *ofname; variable
103 ofname = optarg;
135 if (ofname == NULL) {
177 outfile = fopen(ofname, "w");
179 ERRS("could not open \"%s\" for writing", ofname);
186 ERRS("unable to write to file %s", ofname);
198 unlink(ofname);
H A Dbuffalo-tftp.c28 static char *ofname; variable
101 err = write_buf_to_file(ofname, buf, src_len);
103 ERR("unable to write to file '%s'", ofname);
123 if (ofname == NULL) {
156 ofname = optarg;
H A Dmkwrgimg.c50 static char *ofname; variable
137 ofname = optarg;
165 if (ofname == NULL) {
213 outfile = fopen(ofname, "w");
215 ERRS("could not open \"%s\" for writing", ofname);
222 ERRS("unable to write to file %s", ofname);
233 unlink(ofname);
H A Dbuffalo-enc.c28 static char *ofname; variable
102 err = write_buf_to_file(ofname, buf, ep.datalen);
104 ERR("unable to write to file '%s'", ofname);
142 ERR("unable to read from file '%s'", ofname);
162 err = write_buf_to_file(ofname, buf, totlen);
164 ERR("unable to write to file '%s'", ofname);
185 if (ofname == NULL) {
259 ofname = optarg;
H A Dfix-u-media-header.c62 static char *ofname; variable
188 if (ofname == NULL) {
210 f = fopen(ofname, "w");
212 ERRS("could not open \"%s\" for writing", ofname);
229 unlink(ofname);
290 DBG("U-Media header fixed in \"%s\"", ofname);
335 ofname = optarg;
H A Dmkcameofw.c53 static char *ofname; variable
197 CHKSTR(ofname, "output file");
240 f = fopen(ofname, "w");
242 ERRS("could not open \"%s\" for writing", ofname);
253 DBG("firmware file \"%s\" completed", ofname);
261 unlink(ofname);
385 ofname = optarg;
H A Dmkplanexfw.c51 static char *ofname; variable
154 ofname = optarg;
184 if (ofname == NULL) {
236 outfile = fopen(ofname, "w");
238 ERRS("could not open \"%s\" for writing", ofname);
245 ERRS("unable to write to file %s", ofname);
257 unlink(ofname);
H A Dosbridge-crc.c40 static char *ofname; variable
101 ofname = optarg;
117 if (ofname == NULL) {
152 outfile = fopen(ofname, "w");
154 ERRS("could not open \"%s\" for writing", ofname);
161 ERRS("unable to write to file %s", ofname);
173 unlink(ofname);
H A Dmkzcfw.c66 static char *ofname; variable
233 if (ofname == NULL) {
246 f = fopen(ofname, "w");
248 ERRS("could not open \"%s\" for writing", ofname);
259 DBG("firmware file \"%s\" completed", ofname);
267 unlink(ofname);
388 ofname = optarg;
H A Dpc1crypt.c196 static char *ofname; variable
263 ofname = optarg;
279 if (ofname == NULL) {
303 outfile = fopen(ofname, "w");
305 ERRS("could not open \"%s\" for writing", ofname);
333 ERRS("unable to write to file %s", ofname);
349 unlink(ofname);
H A Dbuffalo-tag.c36 static char *ofname; variable
99 CHECKSTR(ofname, "output file", 0);
278 err = write_buf_to_file(ofname, buf, buflen);
280 ERR("unable to write to file '%s'", ofname);
334 ofname = optarg;
H A Dmkcasfw.c175 char *ofname; variable
972 ofname = argv[optind++];
988 WARN("generation of invalid images disabled", ofname);
992 WARN("generating invalid image", ofname);
995 outfile = fopen(ofname, "w");
997 ERRS("could not open \"%s\" for writing", ofname);
1017 DBG(1,"Image file %s completed.", ofname);
1023 unlink(ofname);
H A Dmkcsysimg.c140 char *ofname = NULL; variable
1108 ofname = argv[optind++];
1124 WARN("generation of invalid images disabled", ofname);
1128 WARN("generating invalid image", ofname);
1131 outfile = fopen(ofname, "w");
1133 ERRS("could not open \"%s\" for writing", ofname);
1143 DBG(1,"Image file %s completed.", ofname);
1149 unlink(ofname);
H A Dmkzynfw.c105 char *ofname = NULL; variable
905 if (ofname != NULL) {
913 ofname = arg;
1095 if (ofname == NULL) {
1109 outfile = fopen(ofname, "w");
1111 ERRS("could not open \"%s\" for writing", ofname);
1118 DBG(1,"Image file %s completed.", ofname);
1126 unlink(ofname);
H A Dmktplinkfw.c107 static char *ofname; variable
557 if (ofname == NULL) {
644 f = fopen(ofname, "w");
646 ERRS("could not open \"%s\" for writing", ofname);
657 DBG("firmware file \"%s\" completed", ofname);
665 unlink(ofname);
1001 ofname = optarg;
H A Dmkmylofw.c104 char *ofname = NULL; variable
1241 ofname = argv[optind++];
1266 outfile = fopen(ofname, "w");
1268 errmsg(1, "could not open \"%s\" for writing", ofname);
1285 dbgmsg(1,"Firmware file %s completed.", ofname);
1293 unlink(ofname);

Completed in 108 milliseconds