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

htsys.cc File Reference

#include "htsys.h"
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  posixfindstate

Functions

int sys_canonicalize (char *result, const char *filename)
int sys_findclose (pfind_t *pfind)
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 (char c)
int sys_filename_cmp (const char *a, const char *b)
void SIGCHLD_sigaction (int i, siginfo_t *info, void *v)
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 init_system ()
void done_system ()

Variables

char sys_find_dirname [HT_NAME_MAX]


Function Documentation

void done_system  ) 
 

Definition at line 258 of file posix/htsys.cc.

bool init_system  ) 
 

Definition at line 241 of file posix/htsys.cc.

References NULL, and SIGCHLD_sigaction().

void SIGCHLD_sigaction int  i,
siginfo_t *  info,
void *  v
 

Definition at line 160 of file posix/htsys.cc.

Referenced by init_system().

int sys_canonicalize char *  result,
const char *  filename
 

Definition at line 37 of file posix/htsys.cc.

int sys_deletefile const char *  filename  ) 
 

Definition at line 131 of file posix/htsys.cc.

int sys_filename_cmp const char *  a,
const char *  b
 

Definition at line 141 of file posix/htsys.cc.

References sys_is_path_delim().

int sys_findclose pfind_t pfind  ) 
 

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

References pfind_t::findstate.

int sys_findfirst const char *  dirname,
pfind_t pfind
 

Definition at line 55 of file posix/htsys.cc.

References posixfindstate::fhandle, pfind_t::findstate, malloc(), sys_find_dirname, and sys_findnext().

int sys_findnext pfind_t pfind  ) 
 

Definition at line 73 of file posix/htsys.cc.

References posixfindstate::fhandle, pfind_t::findstate, pfind_t::name, pfind_t::stat, sys_find_dirname, and sys_pstat().

int sys_get_caps  ) 
 

Definition at line 232 of file posix/htsys.cc.

References SYSCAP_NONBLOCKING_IPC.

int sys_get_free_mem  ) 
 

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

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

Definition at line 167 of file posix/htsys.cc.

References FAM_READ, FAM_WRITE, ht_sys_file::init(), and NULL.

bool sys_ipc_is_valid int  handle  ) 
 

Definition at line 217 of file posix/htsys.cc.

int sys_ipc_terminate int  handle  ) 
 

Definition at line 222 of file posix/htsys.cc.

bool sys_is_path_delim char  c  ) 
 

Definition at line 136 of file posix/htsys.cc.

int sys_pstat pstat_t s,
const char *  filename
 

Definition at line 88 of file posix/htsys.cc.

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

void sys_suspend  ) 
 

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

int sys_truncate const char *  filename,
FILEOFS  ofs
 

Definition at line 123 of file posix/htsys.cc.

References FILEOFS.


Variable Documentation

char sys_find_dirname[HT_NAME_MAX]
 

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

Referenced by sys_findfirst(), and sys_findnext().


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