Lines Matching refs:fname
65 writepidfile(const char * fname, int pid)
71 if(!fname || (strlen(fname) == 0))
74 if( (pidfile = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0666)) < 0)
76 DPRINTF(E_ERROR, L_GENERAL, "Unable to open pidfile for writing %s: %s\n", fname, strerror(errno));
84 "Unable to write to pidfile %s: snprintf(): FAILED\n", fname);
91 DPRINTF(E_ERROR, L_GENERAL, "Unable to write to pidfile %s: %s\n", fname, strerror(errno));
100 checkforrunning(const char * fname)
106 if(!fname || (strlen(fname) == 0))
109 if( (pidfile = open(fname, O_RDONLY)) < 0)