MCPcopy Create free account
hub / github.com/3proxy/3proxy / h_monitor

Function h_monitor

src/conf.c:668–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668static int h_monitor(int argc, unsigned char **argv){
669 struct filemon * fm;
670
671 fm = myalloc(sizeof (struct filemon));
672 if(stat((char *)argv[1], &fm->sb)){
673 myfree(fm);
674 fprintf(stderr, "Warning: file %s doesn't exist on line %d\n", argv[1], linenum);
675 }
676 else {
677 fm->path = mystrdup((char *)argv[1]);
678 fm->next = conf.fmon;
679 conf.fmon = fm;
680 }
681 return 0;
682}
683
684static int h_parent(int argc, unsigned char **argv){
685 struct ace *acl = NULL;

Callers

nothing calls this directly

Calls 4

myallocFunction · 0.85
myfreeFunction · 0.85
mystrdupFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected