| | |
| | | #include<sys/socket.h> |
| | | #include<sys/types.h> |
| | | #include<netinet/in.h> |
| | | #include<netdb.h> |
| | | #include<stdio.h> |
| | | #include<string.h> |
| | | #include<stdlib.h> |
| | | #include<unistd.h> |
| | | #include<errno.h> |
| | | #include<arpa/inet.h> |
| | | #include<time.h> |
| | | #include<signal.h> |
| | | #include<pthread.h> |
| | | #include<sys/time.h> |
| | | #include<stdbool.h> |
| | | #include<fcntl.h> |
| | | #include<sys/stat.h> |
| | | #include <netdb.h> |
| | | #include <stdio.h> |
| | | #include <string.h> |
| | | #include <stdlib.h> |
| | | #include <unistd.h> |
| | | #include <errno.h> |
| | | #include <arpa/inet.h> |
| | | #include <time.h> |
| | | #include <signal.h> |
| | | #include <pthread.h> |
| | | #include <sys/time.h> |
| | | #include <stdbool.h> |
| | | #include <fcntl.h> |
| | | #include "/usr/include/mysql/mysql.h" |
| | | #include <sys/stat.h> |
| | | #define _DELETE_FILE |
| | | #include<dirent.h> |
| | | #include<limits.h> |
| | | #include<sys/io.h> |
| | | #include<signal.h> |
| | | #include <dirent.h> |
| | | #include <limits.h> |
| | | #include <sys/io.h> |
| | | #include <signal.h> |
| | | int RealAlarmEventNum[16]; |
| | | typedef struct{ |
| | | int Year; |
| | |
| | | void UrnStringToBytes(char* byte_array_out,int * byte_array_length_out,char* StartTim,char* EndTime); |
| | | |
| | | void zclock_sleep (int msecs); |
| | | |
| | | |
| | | |
| | | void zclock_sleep (int msecs) |
| | | { |
| | | struct timespec t; |
| | | t.tv_sec = msecs / 1000; |
| | | t.tv_nsec = (msecs % 1000) * 1000000; |
| | | nanosleep (&t, NULL); |
| | | } |
| | | |
| | | typedef struct{ |
| | | char name[1024]; |