00001 #ifndef __TEE_H 00002 #define __TEE_H 00003 00004 #define GZFMODE "w9" 00005 pid_t tee_stdio (const char *stdout_file, mode_t stdout_mode, 00006 const char *stderr_file, mode_t stderr_mode); 00007 int redirect_stdio (const char *stdout_file, mode_t stdout_mode, 00008 const char *stderr_file, mode_t stderr_mode); 00009 int redirect_stdeo (int fd_e, int fd_o); 00010 int save_stdeo (void); 00011 int restore_stdeo (void); 00012 00013 /* Per Keh-Cheng's recommendation, adding posix flag. This ameliorates a conflict 00014 * between icc10 and the -std=c99 flag, and gcc and the same flag. */ 00015 #define _POSIX_SOURCE 1 00016 #endif