#ifndef __SYSTEM_H #define __SYSTEM_H #ifdef __cplusplus extern "C" { #endif typedef void (*system_errfunc)( const char *fmt, ... ); extern void system_error( const char *fmt, ... ) __attribute__((format (printf,1,2))); extern system_errfunc system_fatal; /* Default Fatal Error Function == system_error() */ extern pid_t sys_exec_command( struct strbuf *sb, const char *cmd ); extern int sys_wait_command( pid_t pid, struct strbuf *errmsg ); #ifdef __cplusplus } #endif #endif /* __SYSTEM_H */