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

htsys.cc File Reference

#include "htsys.h"
#include <ctype.h>
#include <dir.h>
#include <dpmi.h>
#include <errno.h>
#include <limits.h>
#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  djfindstate

Defines

#define MIN(a, b)   ((a) < (b) ? (a) : (b))
#define MAX(a, b)   ((a) > (b) ? (a) : (b))

Functions

int sys_canonicalize (char *result, const char *filename)
int sys_findclose (pfind_t *pfind)
time_t dostime2time_t (unsigned short time, unsigned short date)
void ff2pstat (struct ffblk *f, pstat_t *s)
int sys_findfirst (const char *dirname, pfind_t *pfind)
int sys_findnext (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 (const char c)
int sys_filename_cmp (const char *a, const char *b)
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 ()

Variables

char sys_find_name [HT_NAME_MAX]


Define Documentation

#define MAX a,
 )     ((a) > (b) ? (a) : (b))
 

Definition at line 34 of file djgpp/htsys.cc.

#define MIN a,
 )     ((a) < (b) ? (a) : (b))
 

Definition at line 33 of file djgpp/htsys.cc.


Function Documentation

void done_system  ) 
 

Definition at line 341 of file djgpp/htsys.cc.

time_t dostime2time_t unsigned short  time,
unsigned short  date
 

Definition at line 54 of file djgpp/htsys.cc.

void ff2pstat struct ffblk *  f,
pstat_t s
 

Definition at line 69 of file djgpp/htsys.cc.

References pstat_t::atime, pstat_t::caps, pstat_t::ctime, dostime2time_t(), HT_S_IFDIR, HT_S_IFREG, HT_S_IRUSR, HT_S_IWUSR, pstat_t::mode, pstat_t::mtime, pstat_atime, pstat_ctime, pstat_mode_type, pstat_mode_usr, pstat_mtime, pstat_size, and pstat_t::size.

bool init_system  ) 
 

Definition at line 332 of file djgpp/htsys.cc.

int sys_canonicalize char *  result,
const char *  filename
 

Definition at line 36 of file djgpp/htsys.cc.

int sys_deletefile const char *  filename  ) 
 

Definition at line 164 of file djgpp/htsys.cc.

int sys_filename_cmp const char *  a,
const char *  b
 

Definition at line 174 of file djgpp/htsys.cc.

int sys_findclose pfind_t pfind  ) 
 

Definition at line 48 of file djgpp/htsys.cc.

int sys_findfirst const char *  dirname,
pfind_t pfind
 

Definition at line 91 of file djgpp/htsys.cc.

int sys_findnext pfind_t pfind  ) 
 

Definition at line 117 of file djgpp/htsys.cc.

int sys_get_caps  ) 
 

Definition at line 233 of file djgpp/htsys.cc.

Referenced by ht_app::handlemsg().

int sys_get_free_mem  ) 
 

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

int sys_get_native_clipboard_data_size  ) 
 

Definition at line 287 of file djgpp/htsys.cc.

Referenced by ht_app::handlemsg(), and sys_read_data_from_native_clipboard().

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

Definition at line 189 of file djgpp/htsys.cc.

bool sys_ipc_is_valid int  handle  ) 
 

Definition at line 221 of file djgpp/htsys.cc.

int sys_ipc_terminate int  handle  ) 
 

Definition at line 227 of file djgpp/htsys.cc.

bool sys_is_path_delim const char  c  ) 
 

Definition at line 169 of file djgpp/htsys.cc.

Referenced by LocalFs::canonicalize(), ht_app::create_window_help(), ht_project_listbox::handlemsg(), ht_info_viewer::igotonode(), LocalFs::isPathDelim(), ht_app::project_opencreate(), and ht_project_listbox::selectEntry().

int sys_pstat pstat_t s,
const char *  filename
 

Definition at line 128 of file djgpp/htsys.cc.

bool sys_read_data_from_native_clipboard void *  data,
int  max_size
 

Definition at line 299 of file djgpp/htsys.cc.

void sys_suspend  ) 
 

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

Referenced by do_idle().

int sys_truncate const char *  filename,
FILEOFS  ofs
 

Definition at line 159 of file djgpp/htsys.cc.

bool sys_write_data_to_native_clipboard const void *  data,
int  size
 

Definition at line 260 of file djgpp/htsys.cc.


Variable Documentation

char sys_find_name[HT_NAME_MAX]
 

Definition at line 46 of file djgpp/htsys.cc.

Referenced by sys_findfirst(), and sys_findnext().


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