码迷,mamicode.com
首页 > 其他好文 > 详细

1212

时间:2016-03-31 00:26:04      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:it

//Scriptname:log_analyse

//Author:charlotte

//date:2016/03/17

//Purpose: sleve log and connect save on database


/*defina head file*/

#include "stdio.h"

#include "stdlib.h"

#include "string.h" /*use function about string*/

#include "mysql.h" /*use mysql DB*/

#include "pthread.h" /*use multi threads*/

#include "sys/ipc.h" /*call message queue*/

#include "sys/time.h" /*call sleep*/


#define MAX_LINE 1024

/*define variable*/

int sign=0,sign_exit=1; /*sign to mark no.2error,sign_exit to mark thread1 exit*/

char log_name[MAX_LINE]="record_model.log"; /*no use*/

char log_path[MAX_LINE]="record_model.log";    

int record_time = 0; /*store YMD*/

int record_time_day = 0; /*store hms*/

char record_day_time[MAX_LINE];

char function_name[MAX_LINE];

int sid;


1212

标签:it

原文地址:http://11339728.blog.51cto.com/11329728/1758580

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!