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