mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-16 00:15:08 +01:00
0f17471b27
*Added sources of the custom libs to the branches *Fixed crash when switching from list layout to grid/carousel layout *Removed 1:1 copy option because its meaningless and almost the same as installing all partitions *Fixed install partition selection. This option needs a reset. Go to settings and reselect your option for this. *Fixed schinese and tchinese language modes (filename bugs. has to be schinese.lang and tchinese.lang like on SVN) *Fixed bug in sound buffer circle *Fixed incorrect behaviour of x-flip when selecting system like (thx Cyan for the patch) *Accept ios revision 65535 for Waninkokos IOSes (thx to PPSainity for pointing it out) *Merged the new theming style branch into trunk. Just as a reminder: ALL old themes will not work until the themers did port it to the new style! *Removed old theme style completely Theme example: The example file of the theme is the Default.them file. It can be found in the SVN trunk. Change in loading of themes: When selecting a theme now a list of all .them files in a folder is displayed. The image folder of that theme has to be in the same folder as the .them file. The image path is defined in the head of the .them file in the line with "Image-Folder: Example\n".
79 lines
2.0 KiB
C
79 lines
2.0 KiB
C
/*
|
|
* pf.c - Print file attributes on an ext2 file system
|
|
*
|
|
* Copyright (C) 1993, 1994 Remy Card <card@masi.ibp.fr>
|
|
* Laboratoire MASI, Institut Blaise Pascal
|
|
* Universite Pierre et Marie Curie (Paris VI)
|
|
*
|
|
* %Begin-Header%
|
|
* This file may be redistributed under the terms of the GNU Library
|
|
* General Public License, version 2.
|
|
* %End-Header%
|
|
*/
|
|
|
|
/*
|
|
* History:
|
|
* 93/10/30 - Creation
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "e2p.h"
|
|
|
|
struct flags_name {
|
|
unsigned long flag;
|
|
const char *short_name;
|
|
const char *long_name;
|
|
};
|
|
|
|
static struct flags_name flags_array[] = {
|
|
{ EXT2_SECRM_FL, "s", "Secure_Deletion" },
|
|
{ EXT2_UNRM_FL, "u" , "Undelete" },
|
|
{ EXT2_SYNC_FL, "S", "Synchronous_Updates" },
|
|
{ EXT2_DIRSYNC_FL, "D", "Synchronous_Directory_Updates" },
|
|
{ EXT2_IMMUTABLE_FL, "i", "Immutable" },
|
|
{ EXT2_APPEND_FL, "a", "Append_Only" },
|
|
{ EXT2_NODUMP_FL, "d", "No_Dump" },
|
|
{ EXT2_NOATIME_FL, "A", "No_Atime" },
|
|
{ EXT2_COMPR_FL, "c", "Compression_Requested" },
|
|
#ifdef ENABLE_COMPRESSION
|
|
{ EXT2_COMPRBLK_FL, "B", "Compressed_File" },
|
|
{ EXT2_DIRTY_FL, "Z", "Compressed_Dirty_File" },
|
|
{ EXT2_NOCOMPR_FL, "X", "Compression_Raw_Access" },
|
|
{ EXT2_ECOMPR_FL, "E", "Compression_Error" },
|
|
#endif
|
|
{ EXT3_JOURNAL_DATA_FL, "j", "Journaled_Data" },
|
|
{ EXT2_INDEX_FL, "I", "Indexed_directory" },
|
|
{ EXT2_NOTAIL_FL, "t", "No_Tailmerging" },
|
|
{ EXT2_TOPDIR_FL, "T", "Top_of_Directory_Hierarchies" },
|
|
{ EXT4_EXTENTS_FL, "e", "Extents" },
|
|
{ EXT4_HUGE_FILE_FL, "h", "Huge_file" },
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
void print_flags (FILE * f, unsigned long flags, unsigned options)
|
|
{
|
|
int long_opt = (options & PFOPT_LONG);
|
|
struct flags_name *fp;
|
|
int first = 1;
|
|
|
|
for (fp = flags_array; fp->flag != 0; fp++) {
|
|
if (flags & fp->flag) {
|
|
if (long_opt) {
|
|
if (first)
|
|
first = 0;
|
|
else
|
|
fputs(", ", f);
|
|
fputs(fp->long_name, f);
|
|
} else
|
|
fputs(fp->short_name, f);
|
|
} else {
|
|
if (!long_opt)
|
|
fputs("-", f);
|
|
}
|
|
}
|
|
if (long_opt && first)
|
|
fputs("---", f);
|
|
}
|
|
|