Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htsys.cc File Reference

#include "htsys.h"
#include "qword.h"
#include "snprintf.h"
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <windows.h>

Go to the source code of this file.

Classes

class  ht_win32_file
struct  winfindstate

Functions

int sys_canonicalize (char *result, const char *filename)
dword filetime_to_ctime (FILETIME f)
void sys_findfill (pfind_t *pfind)
int sys_findfirst (const char *dirname, pfind_t *pfind)
int sys_findnext (pfind_t *pfind)
int sys_findclose (pfind_t *pfind)
int sys_pstat (pstat_t *s, const char *filename)
void sys_suspend ()
int sys_get_free_mem ()
int sys_truncate (const char *filename, FILEOFS ofs)
int sys_deletefile (const char *filename)
bool sys_is_path_delim (char c)
int sys_filename_cmp (const char *a, const char *b)
BOOL CreateChildProcess (DWORD *pid, const char *cmd, HANDLE in, HANDLE out, HANDLE err)
int sys_ipc_exec (ht_streamfile **in, ht_streamfile **out, ht_streamfile **err, int *handle, const char *cmd, int options)
bool sys_ipc_is_valid (int handle)
int sys_ipc_terminate (int handle)
int sys_get_caps ()
bool sys_write_data_to_native_clipboard (const void *data, int size)
int sys_get_native_clipboard_data_size ()
bool sys_read_data_from_native_clipboard (void *data, int max_size)
bool init_system ()
void done_system ()


Function Documentation

BOOL CreateChildProcess DWORD *  pid,
const char *  cmd,
HANDLE  in,
HANDLE  out,
HANDLE  err
 

Definition at line 244 of file win32/htsys.cc.

References NULL.

Referenced by sys_ipc_exec().

void done_system  ) 
 

Definition at line 399 of file win32/htsys.cc.

dword filetime_to_ctime FILETIME  f  ) 
 

Definition at line 49 of file win32/htsys.cc.

References dword, int_to_qword(), qword, QWORD_GET_LO, QWORD_SET_HI, and QWORD_SET_LO.

Referenced by sys_findfill().

bool init_system  ) 
 

Definition at line 390 of file win32/htsys.cc.

int sys_canonicalize char *  result,
const char *  filename
 

Definition at line 43 of file win32/htsys.cc.

References HT_NAME_MAX.

Referenced by ht_app::create_window_file_bin(), ht_app::create_window_file_text(), and ht_app::handlemsg().

int sys_deletefile const char *  filename  ) 
 

Definition at line 175 of file win32/htsys.cc.

int sys_filename_cmp const char *  a,
const char *  b
 

Definition at line 188 of file win32/htsys.cc.

References sys_is_path_delim().

int sys_findclose pfind_t pfind  ) 
 

Definition at line 118 of file win32/htsys.cc.

References pfind_t::findstate.

Referenced by LocalFs::findClose().

void sys_findfill pfind_t pfind  ) 
 

Definition at line 58 of file win32/htsys.cc.

References pstat_t::atime, pstat_t::caps, pstat_t::ctime, filetime_to_ctime(), winfindstate::find_data, pfind_t::findstate, HT_S_IFDIR, HT_S_IFREG, pstat_t::mode, pstat_t::mtime, pfind_t::name, pstat_atime, pstat_ctime, pstat_mode_type, pstat_mtime, pstat_size, pstat_t::size, pstat_t::size_high, and pfind_t::stat.

Referenced by sys_findfirst(), and sys_findnext().

int sys_findfirst const char *  dirname,
pfind_t pfind
 

Definition at line 81 of file win32/htsys.cc.

References ff2pstat(), winfindstate::fhandle, winfindstate::find_data, pfind_t::findstate, djfindstate::fstate, malloc(), pfind_t::name, pfind_t::stat, sys_find_name, and sys_findfill().

Referenced by LocalFs::findFirst().

int sys_findnext pfind_t pfind  ) 
 

Definition at line 107 of file win32/htsys.cc.

References ff2pstat(), winfindstate::fhandle, winfindstate::find_data, pfind_t::findstate, djfindstate::fstate, pfind_t::name, pfind_t::stat, sys_find_name, and sys_findfill().

Referenced by LocalFs::findNext(), and sys_findfirst().

int sys_get_caps  ) 
 

Definition at line 338 of file win32/htsys.cc.

References SYSCAP_NONBLOCKING_IPC.

int sys_get_free_mem  ) 
 

Definition at line 152 of file win32/htsys.cc.

int sys_get_native_clipboard_data_size  ) 
 

Definition at line 358 of file win32/htsys.cc.

References dword, len, and NULL.

int sys_ipc_exec ht_streamfile **  in,
ht_streamfile **  out,
ht_streamfile **  err,
int *  handle,
const char *  cmd,
int  options
 

Definition at line 267 of file win32/htsys.cc.

References CreateChildProcess(), FAM_READ, HT_IPC_NONBLOCKING, ht_null_file::init(), ht_sys_file::init(), ht_win32_file::init(), NULL, options, and sys_tmpfile().

Referenced by ht_app::create_window_term().

bool sys_ipc_is_valid int  handle  ) 
 

Definition at line 316 of file win32/htsys.cc.

Referenced by Terminal::connected(), and sys_ipc_terminate().

int sys_ipc_terminate int  handle  ) 
 

Definition at line 325 of file win32/htsys.cc.

References NULL, and sys_ipc_is_valid().

Referenced by Terminal::done().

bool sys_is_path_delim char  c  ) 
 

Definition at line 183 of file win32/htsys.cc.

Referenced by sys_filename_cmp(), sys_filename_suffix(), and sys_pstat().

int sys_pstat pstat_t s,
const char *  filename
 

Definition at line 125 of file win32/htsys.cc.

References pstat_t::atime, pstat_t::caps, pstat_t::ctime, pstat_t::fsid, pstat_t::gid, HT_NAME_MAX, pstat_t::mode, pstat_t::mtime, pstat_atime, pstat_ctime, pstat_gid, pstat_inode, pstat_mode_all, pstat_mode_type, pstat_mode_usr, pstat_mode_w, pstat_mtime, pstat_size, pstat_uid, pstat_t::size, pstat_t::size_high, sys_ht_mode(), sys_is_path_delim(), and pstat_t::uid.

Referenced by ht_file::pstat(), LocalFs::pstat(), ht_file::set_access_mode_internal(), and sys_findnext().

bool sys_read_data_from_native_clipboard void *  data,
int  max_size
 

Definition at line 372 of file win32/htsys.cc.

References ht_snprintf(), MIN, NULL, sys_get_native_clipboard_data_size(), and word.

Referenced by ht_app::handlemsg().

void sys_suspend  ) 
 

Definition at line 147 of file win32/htsys.cc.

int sys_truncate const char *  filename,
FILEOFS  ofs
 

Definition at line 157 of file win32/htsys.cc.

References FILEOFS, and NULL.

Referenced by ht_file::truncate().

bool sys_write_data_to_native_clipboard const void *  data,
int  size
 

Definition at line 343 of file win32/htsys.cc.

References NULL, size, and word.

Referenced by ht_app::handlemsg().


Generated on Fri May 7 21:15:50 2004 by doxygen 1.3.5