2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

include/defs.h File Reference


Detailed Description

Common header file [Sec. 1.6].

Definition in file defs.h.

Go to the source code of this file.

Defines

#define UNDEF__EXTENSIONS__
#define SUV_SUS2
#define PERM_DIRECTORY   S_IRWXU
#define PERM_FILE   (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
#define syserrmsg(buf, buf_max, msg, s_errno)   syserrmsgtype(buf, buf_max, msg, s_errno, EC_ERRNO)

Functions

bool setblock (int fd, bool on)
char * syserrmsgtype (char *buf, size_t buf_max, const char *msg, int s_errno, EC_ERRTYPE type)
char * syserrmsgline (char *buf, size_t buf_max, int s_errno, EC_ERRTYPE type)
const char * getdate_strerror (int e)
const char * errsymbol (int errno_arg)
void syserr (const char *msg)
void syserr_print (const char *msg)
void timestart (void)
void timestop (char *msg)
unsigned long getblksize (const char *path)


Define Documentation

#define PERM_DIRECTORY   S_IRWXU
 

Definition at line 110 of file defs.h.

Referenced by rmdir_test().

#define PERM_FILE   (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
 

Definition at line 111 of file defs.h.

Referenced by Bopen_internal(), buildfile(), ev_creat(), fcntl_example(), file_ctime_test(), ftruncate_test(), get_client(), getaddr(), junk(), main(), process1(), pt_open_slave(), pwrite_test(), redirect(), rmdir_test(), scatter(), setup_posix_msg(), setup_posix_sem(), setup_systemv_msg(), setup_systemv_sem(), SimpleSemOpen(), SimpleSemRemove(), smi_open_fifo(), smi_open_mq(), smi_open_pshm(), smi_open_shm(), synctest(), and temp_open().

#define SUV_SUS2
 

Definition at line 47 of file defs.h.

#define syserrmsg buf,
buf_max,
msg,
s_errno   )     syserrmsgtype(buf, buf_max, msg, s_errno, EC_ERRNO)
 

Definition at line 115 of file defs.h.

Referenced by main().

#define UNDEF__EXTENSIONS__
 

Definition at line 42 of file defs.h.


Function Documentation

const char* errsymbol int  errno_arg  ) 
 

Definition at line 221 of file syserr.c.

References get_macrostr().

Referenced by main().

unsigned long getblksize const char *  path  ) 
 

Definition at line 36 of file getblksize.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, and ec_neg1.

Referenced by main().

const char* getdate_strerror int  e  ) 
 

Definition at line 306 of file syserr.c.

Referenced by syserrmsgline(), syserrmsgtype(), and Ux::Error::what().

bool setblock int  fd,
bool  on
 

Definition at line 26 of file setblock.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, and fcntl().

Referenced by cget(), cready(), main(), readany(), setup_fdset(), smi_open_fifo(), test_setblock(), and test_setblock2().

void syserr const char *  msg  ) 
 

Definition at line 291 of file syserr.c.

References exit(), and syserr_print().

Referenced by buildfile(), gp(), junk(), main(), and tc_keystroke().

void syserr_print const char *  msg  ) 
 

Definition at line 297 of file syserr.c.

References EC_ERRNO, errno, and syserrmsgtype().

Referenced by do_dir(), main(), and syserr().

char* syserrmsgline char *  buf,
size_t  buf_max,
int  s_errno,
EC_ERRTYPE  type
 

Definition at line 226 of file syserr.c.

References EC_EAI, EC_EINTERNAL, EC_GETDATE, gai_strerror(), get_macrostr(), and getdate_strerror().

char* syserrmsgtype char *  buf,
size_t  buf_max,
const char *  msg,
int  s_errno,
EC_ERRTYPE  type
 

Definition at line 257 of file syserr.c.

References EC_EAI, EC_EINTERNAL, EC_GETDATE, gai_strerror(), get_macrostr(), and getdate_strerror().

Referenced by ec_print(), and syserr_print().

void timestart void   ) 
 

Definition at line 30 of file time.c.

References clock_ticks, EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, ec_neg1, real1, sysconf(), tbuf1, and times().

Referenced by aio_test(), asynchronous(), main(), synchronous(), and synctest().

void timestop char *  msg  ) 
 

Definition at line 42 of file time.c.

References clock_ticks, EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, ec_neg1, real1, tbuf1, times(), tms::tms_cstime, tms::tms_cutime, tms::tms_stime, and tms::tms_utime.

Referenced by aio_test(), asynchronous(), main(), synchronous(), and synctest().


Generated on Fri Apr 23 10:57:11 2004 for AUP2 Example Source by doxygen 1.3.1