#include "global.h"
#include <sys/types.h>
#include <dirent.h>
#include <time.h>
Go to the source code of this file.
Classes | |
class | drawbuf |
struct | drawbufch |
class | genericdrawbuf |
struct | pfind_t |
struct | pstat_t |
Defines | |
#define | HT_NAME_MAX 260 |
#define | HT_S_IFREG 0x1000 |
#define | HT_S_IFBLK 0x2000 |
#define | HT_S_IFCHR 0x3000 |
#define | HT_S_IFDIR 0x4000 |
#define | HT_S_IFFIFO 0x5000 |
#define | HT_S_IFLNK 0x6000 |
#define | HT_S_IFSOCK 0x7000 |
#define | HT_S_IFMT 0xf000 |
#define | HT_S_ISREG(m) (((m) & HT_S_IFMT) == HT_S_IFREG) |
#define | HT_S_ISBLK(m) (((m) & HT_S_IFMT) == HT_S_IFBLK) |
#define | HT_S_ISCHR(m) (((m) & HT_S_IFMT) == HT_S_IFCHR) |
#define | HT_S_ISDIR(m) (((m) & HT_S_IFMT) == HT_S_IFDIR) |
#define | HT_S_ISFIFO(m) (((m) & HT_S_IFMT) == HT_S_IFFIFO) |
#define | HT_S_ISLNK(m) (((m) & HT_S_IFMT) == HT_S_IFLNK) |
#define | HT_S_ISSOCK(m) (((m) & HT_S_IFMT) == HT_S_IFSOCK) |
#define | HT_S_IRUSR 0x0100 |
#define | HT_S_IRGRP 0x0020 |
#define | HT_S_IROTH 0x0004 |
#define | HT_S_IWUSR 0x0080 |
#define | HT_S_IWGRP 0x0010 |
#define | HT_S_IWOTH 0x0002 |
#define | HT_S_IXUSR 0x0040 |
#define | HT_S_IXGRP 0x0008 |
#define | HT_S_IXOTH 0x0001 |
#define | HT_S_IRWXU (HT_S_IRUSR || HT_S_IWUSR || HT_S_IXUSR) |
#define | HT_S_IRWXG (HT_S_IRGRP || HT_S_IWGRP || HT_S_IXGRP) |
#define | HT_S_IRWXO (HT_S_IROTH || HT_S_IWOTH || HT_S_IXOTH) |
#define | pstat_ctime 0x00000001 |
#define | pstat_mtime 0x00000002 |
#define | pstat_atime 0x00000004 |
#define | pstat_uid 0x00000008 |
#define | pstat_gid 0x00000010 |
#define | pstat_mode_usr 0x00000020 |
#define | pstat_mode_grp 0x00000040 |
#define | pstat_mode_oth 0x00000080 |
#define | pstat_mode_r 0x00000100 |
#define | pstat_mode_w 0x00000200 |
#define | pstat_mode_x 0x00000400 |
#define | pstat_mode_type 0x00000800 |
#define | pstat_size 0x00001000 |
#define | pstat_inode 0x00002000 |
#define | pstat_cluster 0x00004000 |
#define | pstat_fsid 0x00008000 |
#define | pstat_desc 0x00010000 |
#define | pstat_mode_all (pstat_mode_usr|pstat_mode_grp|pstat_mode_oth|pstat_mode_r|pstat_mode_w|pstat_mode_x|pstat_mode_type) |
#define | HT_IPC_NONBLOCKING 1 |
#define | SYSCAP_NONBLOCKING_IPC 1 |
#define | VC_BLACK 0 |
#define | VC_BLUE 1 |
#define | VC_GREEN 2 |
#define | VC_CYAN 3 |
#define | VC_RED 4 |
#define | VC_MAGENTA 5 |
#define | VC_YELLOW 6 |
#define | VC_WHITE 7 |
#define | VC_TRANSPARENT 8 |
#define | VC_LIGHT(vc) ((vc) | 0x80) |
#define | VC_GET_LIGHT(vc) ((vc) & 0x80) |
#define | VC_GET_BASECOLOR(vc) ((vc) & 0x7f) |
#define | VCP(vc_fg, vc_bg) (vcp)((vc_bg) | ((vc_fg)<<8)) |
#define | VCP_BACKGROUND(v) ((v) & 0xff) |
#define | VCP_FOREGROUND(v) ((v>>8) & 0xff) |
#define | K_COUNT ((int)K_LAST) |
Typedefs | |
typedef bool(* | is_path_delim )(char c) |
typedef int | vc |
typedef int | vcp |
Enumerations | |
enum | ht_key { K_FIRST = 0, K_Backspace = 1, K_BackTab = 2, K_Tab = '\t', K_Return = '\n', K_Escape = '\e', K_Space = ' ', K_ExclamationPoint = '!', K_DoubleQuote = '"', K_Hash = '#', K_Dollar = '$', K_Percent = '%', K_Ampersand = '&', K_Quote = '\'', K_LParen = '(', K_RParen = ')', K_Star = '*', K_Plus = '+', K_Comma = ',', K_Dash = '-', K_Period = '.', K_Slash = '/', K_Colon = ':', K_SemiColon = ';', K_LAngle = '<', K_Equals = '=', K_RAngle = '>', K_QuestionMark = '?', K_At = '@', K_LBracket = '[', K_BackSlash = '\'', K_RBracket = ']', K_Caret = '^', K_UnderScore = '_', K_BackQuote = '`', K_LBrace = '{', K_Pipe = '|', K_RBrace = '}', K_Tilde = '~', K_BackTick = 'ï', K_0 = '0', K_1 = '1', K_2 = '2', K_3 = '3', K_4 = '4', K_5 = '5', K_6 = '6', K_7 = '7', K_8 = '8', K_9 = '9', K_A = 'a', K_B = 'b', K_C = 'c', K_D = 'd', K_E = 'e', K_F = 'f', K_G = 'g', K_H = 'h', K_I = 'i', K_J = 'j', K_K = 'k', K_L = 'l', K_M = 'm', K_N = 'n', K_O = 'o', K_P = 'p', K_Q = 'q', K_R = 'r', K_S = 's', K_T = 't', K_U = 'u', K_V = 'v', K_W = 'w', K_X = 'x', K_Y = 'y', K_Z = 'z', K_Shift_A = 'A', K_Shift_B = 'B', K_Shift_C = 'C', K_Shift_D = 'D', K_Shift_E = 'E', K_Shift_F = 'F', K_Shift_G = 'G', K_Shift_H = 'H', K_Shift_I = 'I', K_Shift_J = 'J', K_Shift_K = 'K', K_Shift_L = 'L', K_Shift_M = 'M', K_Shift_N = 'N', K_Shift_O = 'O', K_Shift_P = 'P', K_Shift_Q = 'Q', K_Shift_R = 'R', K_Shift_S = 'S', K_Shift_T = 'T', K_Shift_U = 'U', K_Shift_V = 'V', K_Shift_W = 'W', K_Shift_X = 'X', K_Shift_Y = 'Y', K_Shift_Z = 'Z', K_LASTASCII = 0xff, K_Alt_Escape, K_Alt_Backspace, K_Alt_Tab, K_Alt_Enter, K_Left, K_Right, K_Up, K_Down, K_PageUp, K_PageDown, K_Home, K_End, K_Insert, K_Delete, K_Control_Left, K_Control_Right, K_Control_Up, K_Control_Down, K_Control_PageUp, K_Control_PageDown, K_Control_Home, K_Control_End, K_Control_Insert, K_Control_Delete, K_Control_Shift_Left, K_Control_Shift_Right, K_Shift_Left, K_Shift_Right, K_Shift_Up, K_Shift_Down, K_Shift_PageUp, K_Shift_PageDown, K_Shift_Home, K_Shift_End, K_Shift_Insert, K_Shift_Delete, K_Control_A, K_Control_B, K_Control_C, K_Control_D, K_Control_E, K_Control_F, K_Control_G, K_Control_H, K_Control_I, K_Control_J, K_Control_K, K_Control_L, K_Control_M, K_Control_N, K_Control_O, K_Control_P, K_Control_Q, K_Control_R, K_Control_S, K_Control_T, K_Control_U, K_Control_V, K_Control_W, K_Control_X, K_Control_Y, K_Control_Z, K_Alt_A, K_Alt_B, K_Alt_C, K_Alt_D, K_Alt_E, K_Alt_F, K_Alt_G, K_Alt_H, K_Alt_I, K_Alt_J, K_Alt_K, K_Alt_L, K_Alt_M, K_Alt_N, K_Alt_O, K_Alt_P, K_Alt_Q, K_Alt_R, K_Alt_S, K_Alt_T, K_Alt_U, K_Alt_V, K_Alt_W, K_Alt_X, K_Alt_Y, K_Alt_Z, K_Alt_1, K_Alt_2, K_Alt_3, K_Alt_4, K_Alt_5, K_Alt_6, K_Alt_7, K_Alt_8, K_Alt_9, K_Alt_0, K_F1, K_F2, K_F3, K_F4, K_F5, K_F6, K_F7, K_F8, K_F9, K_F10, K_F11, K_F12, K_Shift_F1, K_Shift_F2, K_Shift_F3, K_Shift_F4, K_Shift_F5, K_Shift_F6, K_Shift_F7, K_Shift_F8, K_Shift_F9, K_Shift_F10, K_Shift_F11, K_Shift_F12, K_Control_F1, K_Control_F2, K_Control_F3, K_Control_F4, K_Control_F5, K_Control_F6, K_Control_F7, K_Control_F8, K_Control_F9, K_Control_F10, K_Control_F11, K_Control_F12, K_Alt_F1, K_Alt_F2, K_Alt_F3, K_Alt_F4, K_Alt_F5, K_Alt_F6, K_Alt_F7, K_Alt_F8, K_Alt_F9, K_Alt_F10, K_Alt_F11, K_Alt_F12, K_LAST, K_INVALID = -1 } |
Functions | |
int | sys_ht_mode (int mode) |
int | sys_basename (char *result, const char *filename) |
int | sys_dirname (char *result, const char *filename) |
int | sys_relname (char *result, const char *filename, const char *cwd) |
int | sys_common_canonicalize (char *result, const char *in_name, const char *cwd, is_path_delim delim) |
char * | sys_filename_suffix (const char *fn) |
int | sys_tmpfile () |
vcp | vcp_mix (vcp base, vcp layer) |
ht_key | ht_metakey (ht_key key) |
ht_key | ht_unmetakey (ht_key metakey) |
void | ht_set_key (ht_key key, int rawkey) |
ht_key | ht_rawkey2key (int rawkey) |
|
Definition at line 101 of file htio.h. Referenced by sys_ipc_exec(). |
|
|
Definition at line 50 of file htio.h. Referenced by sys_ht_mode(). |
|
Definition at line 51 of file htio.h. Referenced by sys_ht_mode(). |
|
Definition at line 52 of file htio.h. Referenced by RegistryFs::create_pstat_t(), ff2pstat(), RegistryFs::findFirst(), sys_findfill(), and sys_ht_mode(). |
|
Definition at line 53 of file htio.h. Referenced by sys_ht_mode(). |
|
Definition at line 54 of file htio.h. Referenced by RegistryFs::create_pstat_t(), and sys_ht_mode(). |
|
|
|
Definition at line 49 of file htio.h. Referenced by RegistryFs::create_pstat_t(), ff2pstat(), sys_findfill(), and sys_ht_mode(). |
|
Definition at line 55 of file htio.h. Referenced by sys_ht_mode(). |
|
Definition at line 68 of file htio.h. Referenced by ht_finfo_text::gettext(), VfsListbox::renderEntry(), and sys_ht_mode(). |
|
Definition at line 69 of file htio.h. Referenced by ht_finfo_text::gettext(), VfsListbox::renderEntry(), and sys_ht_mode(). |
|
Definition at line 67 of file htio.h. Referenced by ff2pstat(), ht_finfo_text::gettext(), VfsListbox::renderEntry(), and sys_ht_mode(). |
|
|
|
|
|
|
|
Definition at line 60 of file htio.h. Referenced by VfsListbox::renderEntry(), and ht_file::set_access_mode_internal(). |
|
Definition at line 61 of file htio.h. Referenced by VfsListbox::renderEntry(). |
|
Definition at line 62 of file htio.h. Referenced by VfsListbox::changeURL(), VfsListbox::renderEntry(), VfsListbox::selectEntry(), and ht_file::set_access_mode_internal(). |
|
Definition at line 63 of file htio.h. Referenced by VfsListbox::renderEntry(). |
|
Definition at line 64 of file htio.h. Referenced by VfsListbox::renderEntry(). |
|
Definition at line 59 of file htio.h. Referenced by ht_file::set_access_mode_internal(). |
|
Definition at line 65 of file htio.h. Referenced by VfsListbox::renderEntry(). |
|
Definition at line 71 of file htio.h. Referenced by ht_finfo_text::gettext(), VfsListbox::renderEntry(), and sys_ht_mode(). |
|
Definition at line 72 of file htio.h. Referenced by ht_finfo_text::gettext(), VfsListbox::renderEntry(), and sys_ht_mode(). |
|
Definition at line 70 of file htio.h. Referenced by ff2pstat(), ht_finfo_text::gettext(), VfsListbox::renderEntry(), and sys_ht_mode(). |
|
Definition at line 74 of file htio.h. Referenced by ht_finfo_text::gettext(), VfsListbox::renderEntry(), and sys_ht_mode(). |
|
Definition at line 75 of file htio.h. Referenced by ht_finfo_text::gettext(), VfsListbox::renderEntry(), and sys_ht_mode(). |
|
Definition at line 73 of file htio.h. Referenced by ht_finfo_text::gettext(), VfsListbox::renderEntry(), and sys_ht_mode(). |
|
Definition at line 514 of file htio.h. Referenced by ht_rawkey2key(), ht_set_key(), and init_keyb(). |
|
Definition at line 82 of file htio.h. Referenced by ff2pstat(), ht_finfo_text::gettext(), VfsListbox::renderEntry(), sys_findfill(), and sys_pstat(). |
|
Definition at line 94 of file htio.h. Referenced by ht_finfo_text::gettext(). |
|
Definition at line 80 of file htio.h. Referenced by ff2pstat(), ht_finfo_text::gettext(), VfsListbox::renderEntry(), sys_findfill(), and sys_pstat(). |
|
Definition at line 96 of file htio.h. Referenced by RegistryFs::create_pfind_t(), RegistryFs::create_pstat_t(), and VfsListbox::renderEntry(). |
|
Definition at line 95 of file htio.h. Referenced by ht_finfo_text::gettext(). |
|
Definition at line 84 of file htio.h. Referenced by ht_finfo_text::gettext(), VfsListbox::renderEntry(), and sys_pstat(). |
|
Definition at line 93 of file htio.h. Referenced by ht_finfo_text::gettext(), VfsListbox::renderEntry(), and sys_pstat(). |
|
Definition at line 98 of file htio.h. Referenced by ht_finfo_text::gettext(), VfsListbox::renderEntry(), and sys_pstat(). |
|
Definition at line 86 of file htio.h. Referenced by ht_finfo_text::gettext(), and VfsListbox::renderEntry(). |
|
Definition at line 87 of file htio.h. Referenced by ht_finfo_text::gettext(), and VfsListbox::renderEntry(). |
|
Definition at line 88 of file htio.h. Referenced by ht_finfo_text::gettext(). |
|
Definition at line 91 of file htio.h. Referenced by VfsListbox::changeURL(), RegistryFs::create_pfind_t(), RegistryFs::create_pstat_t(), ff2pstat(), RegistryFs::findFirst(), VfsListbox::renderEntry(), VfsListbox::selectEntry(), ht_file::set_access_mode_internal(), sys_findfill(), and sys_pstat(). |
|
Definition at line 85 of file htio.h. Referenced by ff2pstat(), ht_finfo_text::gettext(), VfsListbox::renderEntry(), and sys_pstat(). |
|
Definition at line 89 of file htio.h. Referenced by ht_finfo_text::gettext(), and sys_pstat(). |
|
Definition at line 90 of file htio.h. Referenced by ht_finfo_text::gettext(). |
|
Definition at line 81 of file htio.h. Referenced by ff2pstat(), file_window_load_fcfg_func(), file_window_store_fcfg_func(), ht_finfo_text::gettext(), VfsListbox::renderEntry(), sys_findfill(), and sys_pstat(). |
|
Definition at line 92 of file htio.h. Referenced by RegistryFs::create_pstat_t(), ff2pstat(), ht_finfo_text::gettext(), ht_mem_file::pstat(), ht_null_file::pstat(), ht_temp_file::pstat(), VfsListbox::renderEntry(), sys_findfill(), and sys_pstat(). |
|
Definition at line 83 of file htio.h. Referenced by ht_finfo_text::gettext(), VfsListbox::renderEntry(), and sys_pstat(). |
|
Definition at line 104 of file htio.h. Referenced by ht_app::handlemsg(), and sys_get_caps(). |
|
Definition at line 149 of file htio.h. Referenced by screendrawbuf::b_setbounds(), ht_color_block::draw(), ht_info_lexer::getcolor_syntax(), ht_html_syntax_lexer::gettoken_color(), ht_c_syntax_lexer::gettoken_color(), ht_help_lexer::gettoken_color(), palette_entry::strvalue(), and screendrawbuf::~screendrawbuf(). |
|
Definition at line 150 of file htio.h. Referenced by ht_html_syntax_lexer::getcolor_syntax(), and ht_help_lexer::getcolor_syntax(). |
|
|
|
Definition at line 162 of file htio.h. Referenced by screendrawbuf::put_vc(), and put_vc(). |
|
Definition at line 161 of file htio.h. Referenced by screendrawbuf::put_vc(), and put_vc(). |
|
Definition at line 151 of file htio.h. Referenced by ht_uformat_viewer::draw(), ht_html_syntax_lexer::gettoken_color(), and ht_uformat_viewer::print_tagstring(). |
|
Definition at line 159 of file htio.h. Referenced by ht_color_block::draw(), ht_html_syntax_lexer::getcolor_syntax(), ht_html_syntax_lexer::gettoken_color(), ht_help_lexer::gettoken_color(), and ht_log::insertline(). |
|
Definition at line 154 of file htio.h. Referenced by ht_html_syntax_lexer::gettoken_color(). |
|
Definition at line 153 of file htio.h. Referenced by getcolorv(), ht_html_syntax_lexer::gettoken_color(), ht_c_syntax_lexer::gettoken_color(), ht_info_lexer::gettoken_color(), ht_help_lexer::gettoken_color(), ht_log::insertline(), and load_pal(). |
|
|
|
Definition at line 155 of file htio.h. Referenced by ht_html_syntax_lexer::gettoken_color(), and ht_log::insertline(). |
|
|
Definition at line 169 of file htio.h. Referenced by ht_text_viewer::draw(), palette_entry::editdialog(), screendrawbuf::put_vc(), put_vc(), palette_entry::strvalue(), and vcp_mix(). |
|
Definition at line 170 of file htio.h. Referenced by palette_entry::editdialog(), screendrawbuf::put_vc(), put_vc(), palette_entry::strvalue(), and vcp_mix(). |
|
Definition at line 130 of file htio.h. Referenced by RegistryFs::isPathDelim(), LocalFs::isPathDelim(), sys_common_canonicalize(), and sys_path_is_absolute(). |
|
Definition at line 147 of file htio.h. Referenced by ht_app::popup_window_list(), screendrawbuf::put_vc(), and put_vc(). |
|
|
Definition at line 234 of file htio.h. Referenced by ht_menu::handlemsg(), ht_getkey(), ht_lmetakey(), ht_metakey(), ht_rawkey2key(), ht_unmetakey(), ht_label::init(), ht_button::init(), ht_cluster::init(), init_keyb(), and ht_dialog::run(). |
|
Definition at line 561 of file htio.cc. References ht_key, ht_lmetakey(), K_A, K_INVALID, and K_Z. Referenced by ht_label::init(), ht_button::init(), and ht_cluster::init(). |
|
Definition at line 575 of file htio.cc. References ht_key, K_COUNT, and K_INVALID. Referenced by ht_getkey(). |
|
Definition at line 585 of file htio.cc. References K_COUNT. Referenced by init_keyb(). |
|
Definition at line 495 of file htio.cc. References ht_key, K_A, K_Alt_A, K_Alt_B, K_Alt_C, K_Alt_D, K_Alt_E, K_Alt_F, K_Alt_G, K_Alt_H, K_Alt_I, K_Alt_J, K_Alt_K, K_Alt_L, K_Alt_M, K_Alt_N, K_Alt_O, K_Alt_P, K_Alt_Q, K_Alt_R, K_Alt_S, K_Alt_T, K_Alt_U, K_Alt_V, K_Alt_W, K_Alt_X, K_Alt_Y, K_Alt_Z, K_B, K_C, K_D, K_E, K_F, K_G, K_H, K_I, K_INVALID, K_J, K_K, K_L, K_M, K_N, K_O, K_P, K_Q, K_R, K_S, K_T, K_U, K_V, K_W, K_X, K_Y, and K_Z. Referenced by ht_menu::handlemsg(). |
|
Definition at line 129 of file htio.cc. Referenced by ht_project_listbox::handlemsg(), and ht_info_viewer::igotonode(). |
|
Definition at line 253 of file htio.cc. References is_path_delim, and sys_path_is_absolute(). Referenced by RegistryFs::canonicalize(), LocalFs::canonicalize(), VfsListbox::changeURL(), ht_app::create_window_help(), ht_project_listbox::handlemsg(), ht_info_viewer::igotonode(), ht_app::project_opencreate(), and ht_project_listbox::selectEntry(). |
|
Definition at line 145 of file htio.cc. Referenced by ht_project_listbox::handlemsg(), ht_info_viewer::igotonode(), and init_cfg(). |
|
Definition at line 269 of file htio.cc. References NULL, and sys_is_path_delim(). Referenced by ht_app::create_window_file_text(), ht_aviewer::exportFileDialog(), ht_aviewer::generateOutputDialog(), and ht_app::project_opencreate(). |
|
Definition at line 188 of file htio.cc. References HT_S_IFBLK, HT_S_IFCHR, HT_S_IFDIR, HT_S_IFFIFO, HT_S_IFLNK, HT_S_IFREG, HT_S_IFSOCK, HT_S_IRGRP, HT_S_IROTH, HT_S_IRUSR, HT_S_IWGRP, HT_S_IWOTH, HT_S_IWUSR, HT_S_IXGRP, HT_S_IXOTH, HT_S_IXUSR, S_IRGRP, S_IROTH, S_IRUSR, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISREG, S_ISSOCK, S_IWGRP, S_IWOTH, S_IWUSR, S_IXGRP, S_IXOTH, and S_IXUSR. Referenced by sys_pstat(). |
|
|
|
Definition at line 280 of file htio.cc. Referenced by sys_ipc_exec(). |
|
Definition at line 294 of file htio.cc. References IS_BGTRANS, IS_FGTRANS, VC_TRANSPARENT, VCP, vcp, VCP_BACKGROUND, and VCP_FOREGROUND. Referenced by drawbuf::b_fill(), drawbuf::b_lprint(), drawbuf::b_lprintw(), drawbuf::b_printchar(), ht_uformat_viewer::get_tag_color_edit(), ht_text_viewer::render_str_color(), and ht_uformat_viewer::render_tagstring(). |