Lines Matching refs:fname
92 writepidfile(const char * fname, int pid)
98 if(!fname || (strlen(fname) == 0))
101 if( (pidfile = open(fname, O_WRONLY|O_CREAT, 0644)) < 0)
103 DPRINTF(E_ERROR, L_GENERAL, "Unable to open pidfile for writing %s: %s\n", fname, strerror(errno));
111 "Unable to write to pidfile %s: snprintf(): FAILED\n", fname);
118 DPRINTF(E_ERROR, L_GENERAL, "Unable to write to pidfile %s: %s\n", fname, strerror(errno));
127 checkforrunning(const char * fname)
133 if(!fname || (strlen(fname) == 0))
136 if( (pidfile = open(fname, O_RDONLY)) < 0)