/netgear-R7800-V1.0.2.28/package/disktype/src/ |
H A D | main.c | 34 static void analyze_file(const char *filename); 58 static void analyze_file(const char *filename) argument 67 if (stat(filename, &sb) < 0) { 68 errore("Can't stat %.300s", filename); 85 fd = open(filename, O_RDONLY); 87 errore("Can't open %.300s", filename);
|
/netgear-R7800-V1.0.2.28/scripts/ |
H A D | dl_cleanup.py | 108 def __init__(self, directory, filename): 110 self.filename = filename 115 if filename.endswith(ext): 116 filename = filename[0:0-len(ext)] 120 print self.filename, "has an unknown file-extension" 123 match = regex.match(filename) 126 match, directory + "/" + filename + self.fileext) 129 print self.filename, "ha [all...] |
H A D | combined-ext-image.sh | 28 echo "Usage: $ME <type> <ext filename> <file1> <filename1> [<file2> <filename2> <fileN> <filenameN>]" 46 filename=$2 51 printf "%-32s%08x%32s" "$filename" $(stat -c "%s" "$file") "${md5%% *}" >> $IMG_OUT
|
H A D | download.pl | 14 @ARGV > 2 or die "Syntax: $0 <target dir> <filename> <md5sum> [<mirror> ...]\n"; 17 my $filename = shift @ARGV; 76 if (! open TMPDLS, "find $mirror -follow -name $filename 2>/dev/null |") { 77 print("Failed to search for $filename in $mirror\n"); 86 print("$. or more instances of $filename in $mirror found . Only one instance allowed.\n"); 94 print("No instances of $filename found in $mirror.\n"); 98 print("Copying $filename from $link\n"); 99 copy($link, "$target/$filename.dl"); 101 if (system("$md5cmd '$target/$filename.dl' > '$target/$filename [all...] |
H A D | om-fwupgradecfg-gen.sh | 56 filename=kernel 64 filename=rootfs
|
H A D | ipkg | 679 local filename= 682 filename="`ipkg_extract_paragraph $pkg < $IPKG_LISTS_DIR/$src | ipkg_extract_field Filename | ipkg_extract_value`" 683 [ -n "$filename" ] && break 687 if [ -z "$filename" ]; then 694 local tmp_pkg_file="$IPKG_TMP/"`ipkg_file_part $filename` 695 if ! ipkg_download `ipkg_src_byname $src`/$filename $tmp_pkg_file; then 729 local filename="$2" 733 if [ ! -f "$filename" ]; then 734 echo "ipkg_install_file: ERROR: File $filename not found" 738 local pkg="`ipkg_file_part $filename | se [all...] |
H A D | slugimage.pl | 207 # Write out $data to $filename, 209 my($data, $filename) = @_; 211 open FILE,">$filename" or die "Can't open file \"$filename\": $!\n"; 215 close FILE or die "Can't close file \"$filename\": $!\n"; 340 # Only override the filename if the partition name is not set or doesn't match 391 my($filename, $partitions_ref) = @_; 395 open FILE,$filename or die "Can't find firmware image \"$filename\": $!\n"; 396 read FILE,$firmware_buf,$flash_len or die "Can't read $flash_len bytes from \"$filename\" [all...] |
/netgear-R7800-V1.0.2.28/package/hotplug2/src/ |
H A D | udevtrigger.c | 73 char filename[PATH_SIZE]; local 76 strlcpy(filename, "/sys", sizeof(filename)); 77 strlcat(filename, devpath, sizeof(filename)); 78 strlcat(filename, "/uevent", sizeof(filename)); 86 fd = open(filename, O_WRONLY); 88 dbg("error on opening %s: %s\n", filename, strerror(errno)); 93 info("error on triggering %s: %s\n", filename, strerro 133 char filename[PATH_SIZE]; local [all...] |
/netgear-R7800-V1.0.2.28/package/mtd/src/ |
H A D | mtd.h | 20 extern int mtd_write_jffs2(const char *mtd, const char *filename, const char *dir); 21 extern int mtd_replace_jffs2(const char *mtd, int fd, int ofs, const char *filename);
|
H A D | jffs2.c | 230 int mtd_replace_jffs2(const char *mtd, int fd, int ofs, const char *filename) argument 239 add_file(filename, target_ino); 277 int mtd_write_jffs2(const char *mtd, const char *filename, const char *dir) argument 286 fprintf(stderr, "Appending %s to jffs2 partition %s\n", filename, mtd); 338 add_file(filename, target_ino);
|
/netgear-R7800-V1.0.2.28/tools/firmware-utils/src/ |
H A D | encode_crc.c | 52 // Reads the file "filename" into memory and returns pointer to the buffer. 53 static char *readfile(char *filename, int *size) argument 59 if (stat(filename,&info)!=0) 62 if ((fp=fopen(filename,"r"))==NULL)
|
H A D | sha1.h | 35 int sha1_file( char *filename, uchar digest[20] );
|
H A D | mkfwimage2.c | 54 char filename[PATH_MAX]; member in struct:part_data 101 fd = open(d->filename, O_RDONLY); 103 ERROR("Failed opening file '%s'\n", d->filename); 108 ERROR("Failed mmaping memory for file '%s'\n", d->filename); 221 d->filename); 245 flen = filelength(d->filename); 248 d->filename); 285 if (stat(d->filename, &d->stats) < 0) { 287 d->filename, d->partition_name); 293 d->filename, [all...] |
H A D | ptgen.c | 61 char *filename = NULL; variable 157 if ((fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0644)) < 0) { 158 fprintf(stderr, "Can't open output file '%s'\n",filename); 194 filename = optarg; 230 if (argc || (heads <= 0) || (sectors <= 0) || !filename)
|
H A D | mkfwimage.c | 97 char filename[PATH_MAX]; member in struct:part_data 148 fd = open(d->filename, O_RDONLY); 151 ERROR("Failed opening file '%s'\n", d->filename); 157 ERROR("Failed mmaping memory for file '%s'\n", d->filename); 253 strncpy(kernel->filename, kernelfile, sizeof(kernel->filename)); 264 strncpy(rootfs->filename, rootfsfile, sizeof(rootfs->filename)); 297 if (stat(d->filename, &d->stats) < 0) 300 d->filename, [all...] |
/netgear-R7800-V1.0.2.28/package/net-dump/src/ |
H A D | tftp.c | 56 opcode = tparam->filename != 0 ? TFTP_WRQ : TFTP_DATA; 89 int nlen = strlen(tparam->filename) + 1; 90 strncpy(cp, tparam->filename, nlen); 144 tparam->filename = 0;
|
H A D | main.c | 154 char *ifname, *filename, *serverip; local 162 filename = 0; 170 filename = *++argp; 177 if (filename == 0 && serverip == 0) 190 tparam.filename = filename ? : DFT_FILENAME; 196 dumpfp = fopen(filename, "w");
|
H A D | ethnet.h | 46 char *filename; /* if it is null, it means 'TFTP_WRQ' was xmited */ member in struct:tftp_param
|
/netgear-R7800-V1.0.2.28/package/igmpproxy/src/ |
H A D | confread.c | 61 * Opens config file specified by filename. 63 int openConfigFile(char *filename) { argument 69 confFilePtr = fopen(filename, "r");
|
/netgear-R7800-V1.0.2.28/tools/wrt350nv2-builder/src/ |
H A D | wrt350nv2-builder.c | 113 char *filename; member in struct:__anon1179 296 } else if (mtd->filename) { 301 mtd->filename = strdup(string2); 304 f_in = fopen(mtd->filename, "rb"); 307 printf("input file %s: %s\n", mtd->filename, strerror(f_exitcode)); 313 printf("input file %s: %s\n", mtd->filename, strerror(f_exitcode)); 316 printf("input file %s: smaller than two bytes, no magic code\n", mtd->filename); 323 printf("input file %s: %s\n", mtd->filename, strerror(f_exitcode)); 328 printf("input file %s: %s\n", mtd->filename, strerror(f_exitcode)); 335 lprintf(DEBUG, "mtd %s in line %i: size=0x%08X, filesize=0x%08lX, magic=0x%02X%02X, file=%s\n", mtd->name, lineno, mtd->size, mtd->filesize, mtd->magic[0], mtd->magic[1], mtd->filename); [all...] |
H A D | ioapi.c | 34 const char* filename, 68 voidpf ZCALLBACK fopen_file_func (opaque, filename, mode) 70 const char* filename; 84 if ((filename!=NULL) && (mode_fopen != NULL)) 85 file = fopen(filename, mode_fopen);
|
/netgear-R7800-V1.0.2.28/tools/flock/src/ |
H A D | flock.c | 137 const char *filename = NULL; local 207 filename = argv[optind]; 208 fd = open(filename, O_RDONLY|O_NOCTTY|O_CREAT, 0666); 212 fd = open(filename, O_RDONLY|O_NOCTTY); 269 if ( filename ) 270 fprintf(stderr, "%s: %s: %s\n", program, filename, strerror(err));
|
/netgear-R7800-V1.0.2.28/scripts/config/ |
H A D | zconf.l | 300 char *filename; 317 filename = files.gl_pathv[i]; 319 file = file_lookup(filename); 323 zconfin = zconf_fopen(filename); 326 zconf_curname(), zconf_lineno(), filename); 334 printf("recursive scan (%s)?\n", filename); 338 printf("file %s already scanned?\n", filename);
|
/netgear-R7800-V1.0.2.28/target/linux/ubicom32/files/arch/ubicom32/kernel/ |
H A D | process.c | 562 char *filename; local 565 filename = getname(name); 566 error = PTR_ERR(filename); 567 if (IS_ERR(filename)) 569 error = do_execve(filename, argv, envp, regs); 570 putname(filename);
|
/netgear-R7800-V1.0.2.28/tools/sstrip/src/ |
H A D | sstrip.c | 74 static char const *filename; variable 82 fprintf(stderr, "%s: %s: %s\n", progname, filename, errmsg); 107 progname, filename, sizeof(X)); \ 128 progname, filename, sizeof(Y)); \ 429 filename = *arg;
|