{
char path[] = TMP_DIR"/swap_ui_viewer_XXXXXX";
int fd;
+ mode_t old_umask;
struct timeval start_tv, finish_tv, tv;
Eina_Bool cancelled = EINA_FALSE;
set_hierarchy_status(HIERARCHY_RUNNING);
+ old_umask = umask(077);
fd = mkstemp(path);
+ umask(old_umask);
if (fd == -1) {
set_hierarchy_status(HIERARCHY_NOT_RUNNING);
PRINTERR("Cannot make temp file, err=%d templ='%s'",
/* x_raise_win(gPid); */
}
-void ui_viewer_clean_log(void)
-{
- remove(log_filename);
-}
-
void ui_viewer_log(const char *format, ...)
{
FILE *fp;
bool printLog(log_t* log, int msgType);
void raise_app_window(void);
-void ui_viewer_clean_log(void);
void ui_viewer_log(const char *format, ...);
#endif /* _UI_VIEWER_UTILS_ */