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)
bool sys_ipc_is_valid (int handle)
int sys_ipc_terminate (int handle)
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-x/htsys.cc.

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

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


Function Documentation

void done_system  ) 
 

Definition at line 327 of file djgpp-x/htsys.cc.

time_t dostime2time_t unsigned short  time,
unsigned short  date
 

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

Referenced by ff2pstat().

void ff2pstat struct ffblk *  f,
pstat_t s
 

Definition at line 69 of file djgpp-x/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.

Referenced by sys_findfirst(), and sys_findnext().

bool init_system  ) 
 

Definition at line 318 of file djgpp-x/htsys.cc.

int sys_canonicalize char *  result,
const char *  filename
 

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

int sys_deletefile const char *  filename  ) 
 

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

int sys_filename_cmp const char *  a,
const char *  b
 

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

References sys_is_path_delim().

int sys_findclose pfind_t pfind  ) 
 

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

References pfind_t::findstate.

int sys_findfirst const char *  dirname,
pfind_t pfind
 

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

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

int sys_findnext pfind_t pfind  ) 
 

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

References ff2pstat(), pfind_t::findstate, djfindstate::fstate, pfind_t::name, pfind_t::stat, and sys_find_name.

int sys_get_free_mem  ) 
 

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

int sys_get_native_clipboard_data_size  ) 
 

Definition at line 273 of file djgpp-x/htsys.cc.

References dword.

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

Definition at line 184 of file djgpp-x/htsys.cc.

bool sys_ipc_is_valid int  handle  ) 
 

Definition at line 212 of file djgpp-x/htsys.cc.

int sys_ipc_terminate int  handle  ) 
 

Definition at line 218 of file djgpp-x/htsys.cc.

bool sys_is_path_delim const char  c  ) 
 

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

int sys_pstat pstat_t s,
const char *  filename
 

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

References pstat_t::caps, pstat_t::fsid, pstat_t::mode, pstat_t::mtime, pstat_mode_type, pstat_mode_usr, pstat_mode_w, pstat_mtime, pstat_size, pstat_t::size, pstat_t::size_high, and sys_ht_mode().

bool sys_read_data_from_native_clipboard void *  data,
int  max_size
 

Definition at line 285 of file djgpp-x/htsys.cc.

References MIN, sys_get_native_clipboard_data_size(), and word.

void sys_suspend  ) 
 

Definition at line 142 of file djgpp-x/htsys.cc.

int sys_truncate const char *  filename,
FILEOFS  ofs
 

Definition at line 154 of file djgpp-x/htsys.cc.

References FILEOFS.

bool sys_write_data_to_native_clipboard const void *  data,
int  size
 

Definition at line 246 of file djgpp-x/htsys.cc.

References size, and word.


Variable Documentation

char sys_find_name[HT_NAME_MAX]
 

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


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