(
m_Stat.st_mode & 07777);
96 returnmajor(
m_Stat.st_rdev);
99 if(
sizeof(
int) >= 4 &&
sizeof(
m_Stat.st_rdev) >= 4) {
100 return(*((
unsigned int*) &
m_Stat.st_rdev) >> 16) & 0xFFFF;
103 return(
unsigned int)(-1);
112 returnminor(
m_Stat.st_rdev);
115 if(
sizeof(
int) >= 4 &&
sizeof(
m_Stat.st_rdev) >= 4) {
116 return*((
unsigned int*) &
m_Stat.st_rdev) & 0xFFFF;
119 return(
unsigned int)(-1);
159 stringuser(
info.GetUserName());
163 stringgroup(
info.GetGroupName());
167 returnuser +
'/'+ group;
181 unsigned intmajor =
info.GetMajor();
182 unsigned intminor =
info.GetMinor();
201 if(
info.GetModificationTime()) {
203mtime =
t.ToLocalTime().AsString(
"Y-M-D h:m:s");
210<< setw(19) << mtime <<
" " 214os <<
" -> "<<
info.GetLinkName();
static string s_UserGroupAsString(const CArchiveEntryInfo &info)
static string s_SizeOrMajorMinor(const CArchiveEntryInfo &info)
static string s_MajorMinor(unsigned int n)
static char s_TypeAsChar(CArchiveEntryInfo::EType type)
string m_GroupName
Group name.
bool operator==(const CArchiveEntryInfo &info) const
size_t m_Index
Entry index in the archive.
mode_t GetMode(void) const
CDirEntry::EType m_Type
Type.
string m_LinkName
Link name if type is eLink.
TNcbiSys_stat m_Stat
Direntry-compatible info (as applicable)
string m_Name
Entry name.
ostream & operator<<(ostream &os, const CArchiveEntryInfo &info)
Nice TOC (table of contents) printout.
unsigned int GetMinor(void) const
string m_UserName
User name.
unsigned int GetMajor(void) const
EType
Directory entry type.
unsigned int TSpecialModeBits
Bitwise OR of ESpecialModeBits.
unsigned int TMode
Bitwise OR of "EMode".
static string ModeToString(TMode user_mode, TMode group_mode, TMode other_mode, TSpecialModeBits special, EModeStringFormat format=eModeFormat_Default)
Convert permission modes to string representation using one of predefined formats.
static void ModeFromModeT(mode_t mode, TMode *user_mode, TMode *group_mode=0, TMode *other_mode=0, TSpecialModeBits *special=0)
Convert mode_t to permission mode(s).
@ eBlockSpecial
Block special (UNIX only)
@ eLink
Symbolic link (UNIX only)
@ eCharSpecial
Character special.
@ eModeFormat_List
Shell list 'ls -l' like format ("rwxrwxrwx")
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string UIntToString(unsigned int value, TNumToStringFlags flags=0, int base=10)
Convert UInt to string.
static string UInt8ToString(Uint8 value, TNumToStringFlags flags=0, int base=10)
Convert UInt8 to string.
unsigned int
A callback function used to compare two keys in a database.
Definition of all error codes used in util (xutil.lib).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4