bfc1508d (kx 2023-03-24 03:55:33 +0300 1)
bfc1508d (kx 2023-03-24 03:55:33 +0300 2) #ifndef __SYSTEM_H
bfc1508d (kx 2023-03-24 03:55:33 +0300 3) #define __SYSTEM_H
bfc1508d (kx 2023-03-24 03:55:33 +0300 4)
bfc1508d (kx 2023-03-24 03:55:33 +0300 5) #ifdef __cplusplus
bfc1508d (kx 2023-03-24 03:55:33 +0300 6) extern "C" {
bfc1508d (kx 2023-03-24 03:55:33 +0300 7) #endif
bfc1508d (kx 2023-03-24 03:55:33 +0300 8)
bfc1508d (kx 2023-03-24 03:55:33 +0300 9)
bfc1508d (kx 2023-03-24 03:55:33 +0300 10) typedef void (*system_errfunc)( const char *fmt, ... );
bfc1508d (kx 2023-03-24 03:55:33 +0300 11)
bfc1508d (kx 2023-03-24 03:55:33 +0300 12) extern void system_error( const char *fmt, ... ) __attribute__((format (printf,1,2)));
bfc1508d (kx 2023-03-24 03:55:33 +0300 13) extern system_errfunc system_fatal; /* Default Fatal Error Function == system_error() */
bfc1508d (kx 2023-03-24 03:55:33 +0300 14)
bfc1508d (kx 2023-03-24 03:55:33 +0300 15)
bfc1508d (kx 2023-03-24 03:55:33 +0300 16) extern pid_t sys_exec_command( struct strbuf *sb, const char *cmd );
bfc1508d (kx 2023-03-24 03:55:33 +0300 17) extern int sys_wait_command( pid_t pid, struct strbuf *errmsg );
bfc1508d (kx 2023-03-24 03:55:33 +0300 18)
bfc1508d (kx 2023-03-24 03:55:33 +0300 19)
bfc1508d (kx 2023-03-24 03:55:33 +0300 20)
bfc1508d (kx 2023-03-24 03:55:33 +0300 21) #ifdef __cplusplus
bfc1508d (kx 2023-03-24 03:55:33 +0300 22) }
bfc1508d (kx 2023-03-24 03:55:33 +0300 23) #endif
bfc1508d (kx 2023-03-24 03:55:33 +0300 24)
bfc1508d (kx 2023-03-24 03:55:33 +0300 25) #endif /* __SYSTEM_H */