Lines Matching refs:fname
238 static const char *fname;
240 fname = use_mmap ? "newdata.elf32.mmap" : "newdata.elf32";
242 fname = use_mmap ? "newdata.elf64.mmap" : "newdata.elf64";
244 printf ("\ncheck_elf: %s\n", fname);
246 int fd = open (fname, O_RDWR|O_CREAT|O_TRUNC, 00666);
249 printf ("cannot create `%s': %s\n", fname, strerror (errno));
271 fd = open (fname, O_RDONLY);
274 printf ("cannot open `%s' read-only: %s\n", fname, strerror (errno));
301 fd = open (fname, O_RDONLY);
304 printf ("cannot open `%s' read-only: %s\n", fname, strerror (errno));
353 fd = open (fname, O_RDONLY);
356 printf ("cannot open `%s' read-only: %s\n", fname, strerror (errno));
385 unlink (fname);