Ejemplo n.º 1
0
void	print_file_info(const udf_dirent_t *p_udf_dirent, const char *dirname)
{
	time_t mod_time = udf_get_modification_time(p_udf_dirent);
	char	mode[11] = "invalid";
	const char *fname = dirname ? dirname : udf_get_filename(p_udf_dirent);

	printf("%s ", udf_mode_string(udf_get_posix_filemode(p_udf_dirent), mode));
	printf("%4d ", udf_get_link_count(p_udf_dirent));
	printf("%lu ", (long unsigned int) udf_get_file_length(p_udf_dirent));
	printf("%s %s",  *fname ? fname : "/", ctime(&mod_time));
}
Ejemplo n.º 2
0
static void 
print_file_info(const udf_dirent_t *p_udf_dirent, const char* psz_dirname)
{
  time_t mod_time = udf_get_modification_time(p_udf_dirent);
  char psz_mode[11]="invalid";
  const char *psz_fname= psz_dirname 
    ? psz_dirname : udf_get_filename(p_udf_dirent);

  /* Print directory attributes*/
  printf("%s ", udf_mode_string(udf_get_posix_filemode(p_udf_dirent),
				psz_mode));
  printf("%4d ", udf_get_link_count(p_udf_dirent));
  printf("%lu ", (long unsigned int) udf_get_file_length(p_udf_dirent));
  printf("%s %s",  *psz_fname ? psz_fname : "/", ctime(&mod_time));
}