GITLAB

에프에이리눅스 / 1611_0007_prime_oven

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • 1611_0007_prime_oven
  • app
  • superdaemon
  • main.h
  • 8f39550ce   superdaemon 추가 Browse Code »
    김태훈
    2017-06-22 17:27:41 +0900  
main.h 558 Bytes
edit raw blame history
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#ifndef MAIN_H
#define MAIN_H

#include  <sys/types.h>

#define   TRUE                1
#define   FALSE               0
                              
#define   ERR_NONE            0
#define   ERR_PATH_TOO_LONG   -1
#define   ERR_EXE_TOO_LONG    -2
#define   ERR_PARAMS_TO0_LONG -3;
#define   ERR_TOO_MANY_PARAMS -4;
#define   ERR_EXECUTE         -5;

typedef struct
{
  char *full_filename;
  char *params[20];
  int   interval;
  int   count_down;
  int   error;
  pid_t pid;
} task_t;

                                  
#endif