mirror of https://github.com/dnomd343/ClearDNS
				
				
			
				 21 changed files with 49 additions and 66 deletions
			
			
		| @ -1,14 +1,14 @@ | |||||
| #ifndef _SYSTEM_H_ | #ifndef SYSTEM_H_ | ||||
| #define _SYSTEM_H_ | #define SYSTEM_H_ | ||||
| 
 | 
 | ||||
| #include <stdint.h> | #include <stdint.h> | ||||
| 
 | 
 | ||||
| char* read_file(const char *file); | char* read_file(const char *file); | ||||
|  | void remove_file(const char *file); | ||||
| int run_command(const char *command); | int run_command(const char *command); | ||||
| void create_folder(const char *folder); | void create_folder(const char *folder); | ||||
| uint8_t is_file_exist(const char *file); | uint8_t is_file_exist(const char *file); | ||||
| void save_file(const char *file, const char *content); | void save_file(const char *file, const char *content); | ||||
| void save_string_list(const char *file, char **string_list); | void save_string_list(const char *file, char **string_list); | ||||
| 
 | 
 | ||||
| 
 |  | ||||
| #endif | #endif | ||||
|  | |||||
| @ -1,18 +0,0 @@ | |||||
| #ifndef _EXIT_CODE_H_ |  | ||||
| #define _EXIT_CODE_H_ |  | ||||
| 
 |  | ||||
| #ifndef TRUE |  | ||||
| #define TRUE 1 |  | ||||
| #endif |  | ||||
| 
 |  | ||||
| #ifndef FALSE |  | ||||
| #define FALSE 0 |  | ||||
| #endif |  | ||||
| 
 |  | ||||
| #define EXIT_NORMAL 0 |  | ||||
| #define EXIT_FILE_ERROR 1 |  | ||||
| #define EXIT_FORK_ERROR 2 |  | ||||
| #define EXIT_EXEC_ERROR 3 |  | ||||
| #define EXIT_WAIT_ERROR 4 |  | ||||
| 
 |  | ||||
| #endif |  | ||||
					Loading…
					
					
				
		Reference in new issue