Lines Matching defs:file
60 int cleanup_files(char *file, struct stat *statBuff, int flag);
61 int cleanup_dirs(char *file, struct stat *statBuff, int flag);
134 printf("ERROR: Create/open file failed\n");
200 int cleanup_files(char *file, struct stat *statBuff, int flag)
205 if (unlink(file)) {
206 printf("ERROR:%d removing file %s\n", errno, file);
213 int cleanup_dirs(char *file, struct stat *statBuff, int flag)
217 //printf("%s:Cleaning up directory %s \n", __FUNCTION__, file);
219 if (strcmp(rootPath, file) == 0) {
224 if (unlink(file)) {
225 printf("ERROR:%d removing file %s\n", errno, file);
228 changedir(file);
229 ftw(file, (void *)cleanup_dirs, MAXNUM);
230 rmdir(file);
372 printf("ERROR line %d: Getting file stats %s \n", __LINE__,
381 printf("ERROR line %d: Removing file %s \n", __LINE__,
544 printf("ERROR:opening file %s failed %d \n", fname, errno);
550 printf("ERROR:2nd opening file %s failed %d \n", fname, errno);
599 printf("Error: %d creating random file \n", errno);