Symbol: pidfile
lib/libutil/util.h
89
int pidfile(const char *);
sbin/mountd/mountd.c
245
FILE *pidfile;
sbin/mountd/mountd.c
281
pidfile = fopen(_PATH_MOUNTDPID, "r");
sbin/mountd/mountd.c
282
if (pidfile != NULL) {
sbin/mountd/mountd.c
283
if (fscanf(pidfile, "%d\n", &c) > 0 && c > 0) {
sbin/mountd/mountd.c
289
pidfile = freopen(_PATH_MOUNTDPID, "w", pidfile);
sbin/mountd/mountd.c
291
pidfile = fopen(_PATH_MOUNTDPID, "w");
sbin/mountd/mountd.c
293
if (pidfile) {
sbin/mountd/mountd.c
294
fprintf(pidfile, "%ld\n", (long)getpid());
sbin/mountd/mountd.c
295
fclose(pidfile);
sbin/unwind/libunbound/util/config_file.c
1205
else O_STR(opt, "pidfile", pidfile)
sbin/unwind/libunbound/util/config_file.c
1743
free(cfg->pidfile);
sbin/unwind/libunbound/util/config_file.c
201
if(!(cfg->pidfile = strdup(PIDFILE))) goto error_exit;
sbin/unwind/libunbound/util/config_file.c
692
else S_STR("pidfile:", pidfile)
sbin/unwind/libunbound/util/config_file.h
346
char* pidfile;
sbin/unwind/libunbound/util/configparser.y
1399
free(cfg_parser->cfg->pidfile);
sbin/unwind/libunbound/util/configparser.y
1400
cfg_parser->cfg->pidfile = $2;
usr.bin/newsyslog/newsyslog.c
129
char *pidfile; /* Path to file containing pid to signal */
usr.bin/newsyslog/newsyslog.c
233
if ((q->pidfile && pltmp->file &&
usr.bin/newsyslog/newsyslog.c
234
strcmp(pltmp->file, q->pidfile) == 0 &&
usr.bin/newsyslog/newsyslog.c
245
pl->file = q->pidfile;
usr.bin/newsyslog/newsyslog.c
357
send_signal(char *pidfile, int signal)
usr.bin/newsyslog/newsyslog.c
364
if ((f = fopen(pidfile, "r")) == NULL) {
usr.bin/newsyslog/newsyslog.c
365
warn("can't open %s", pidfile);
usr.bin/newsyslog/newsyslog.c
393
warnx("%s pid file: %s", err, pidfile);
usr.bin/newsyslog/newsyslog.c
398
sys_signame[signal], pidfile);
usr.bin/newsyslog/newsyslog.c
673
working->pidfile = PIDFILE;
usr.bin/newsyslog/newsyslog.c
690
working->pidfile = strdup(q);
usr.bin/newsyslog/newsyslog.c
691
if (working->pidfile == NULL)
usr.bin/newsyslog/newsyslog.c
700
working->pidfile = NULL;
usr.sbin/authpf/authpf.c
185
n = snprintf(pidfile, sizeof(pidfile), "%s/%s",
usr.sbin/authpf/authpf.c
187
if (n < 0 || (u_int)n >= sizeof(pidfile)) {
usr.sbin/authpf/authpf.c
219
if ((pidfd = open(pidfile, O_RDWR|O_CREAT, 0644)) == -1 ||
usr.sbin/authpf/authpf.c
223
syslog(LOG_ERR, "cannot open or create %s: %s", pidfile,
usr.sbin/authpf/authpf.c
239
pidfile, otherpid, strerror(save_errno));
usr.sbin/authpf/authpf.c
66
char pidfile[PATH_MAX]; /* we save pid in this file. */
usr.sbin/authpf/authpf.c
957
if (pidfile[0] && pidfd != -1)
usr.sbin/authpf/authpf.c
958
if (unlink(pidfile) == -1)
usr.sbin/authpf/authpf.c
959
syslog(LOG_ERR, "cannot unlink %s (%m)", pidfile);
usr.sbin/nsd/configparser.y
402
{ cfg_parser->opt->pidfile = region_strdup(cfg_parser->opt->region, $2); }
usr.sbin/nsd/nsd-checkconf.c
429
SERV_GET_PATH(final, pidfile, o);
usr.sbin/nsd/nsd-checkconf.c
672
print_string_var("pidfile:", opt->pidfile);
usr.sbin/nsd/nsd-checkconf.c
898
if (!file_inside_chroot(opt->pidfile, opt->chroot)) {
usr.sbin/nsd/nsd-checkconf.c
900
filename, opt->pidfile, opt->chroot);
usr.sbin/nsd/nsd.c
1086
if(!nsd.pidfile)
usr.sbin/nsd/nsd.c
1088
if(nsd.options->pidfile)
usr.sbin/nsd/nsd.c
1089
nsd.pidfile = nsd.options->pidfile;
usr.sbin/nsd/nsd.c
1091
nsd.pidfile = PIDFILE;
usr.sbin/nsd/nsd.c
1386
} else if (!file_inside_chroot(nsd.pidfile, nsd.chrootdir)) {
usr.sbin/nsd/nsd.c
1388
nsd.pidfile, nsd.chrootdir);
usr.sbin/nsd/nsd.c
1421
if(nsd.pidfile && nsd.pidfile[0] &&
usr.sbin/nsd/nsd.c
1423
if ((oldpid = readpid(nsd.pidfile)) == -1) {
usr.sbin/nsd/nsd.c
1426
nsd.pidfile, strerror(errno));
usr.sbin/nsd/nsd.c
1597
if (nsd.pidfile && nsd.pidfile[0] == '/')
usr.sbin/nsd/nsd.c
1598
nsd.pidfile += l;
usr.sbin/nsd/nsd.c
1642
nsd.pidfile, strerror(errno));
usr.sbin/nsd/nsd.c
1740
unlinkpid(nsd.pidfile, nsd.username);
usr.sbin/nsd/nsd.c
640
if(!nsd->pidfile || !nsd->pidfile[0])
usr.sbin/nsd/nsd.c
645
if((fd = open(nsd->pidfile, O_WRONLY | O_CREAT | O_TRUNC
usr.sbin/nsd/nsd.c
651
nsd->pidfile, strerror(errno));
usr.sbin/nsd/nsd.c
661
nsd->pidfile, strerror(errno));
usr.sbin/nsd/nsd.c
667
nsd->pidfile);
usr.sbin/nsd/nsd.c
883
nsd.pidfile = 0;
usr.sbin/nsd/nsd.c
999
nsd.pidfile = optarg;
usr.sbin/nsd/nsd.h
270
const char *pidfile;
usr.sbin/nsd/options.c
100
opt->pidfile = PIDFILE;
usr.sbin/nsd/options.h
109
const char* pidfile;
usr.sbin/nsd/server.c
1876
unlinkpid(nsd->pidfile, nsd->username);
usr.sbin/nsd/server.c
3174
unlinkpid(nsd->pidfile, nsd->username);
usr.sbin/unbound/daemon/daemon.c
956
free(daemon->pidfile);
usr.sbin/unbound/daemon/daemon.h
86
char* pidfile;
usr.sbin/unbound/daemon/remote.c
5203
m += getmem_str(cfg->pidfile);
usr.sbin/unbound/daemon/remote.c
5960
COPY_VAR_ptr(pidfile);
usr.sbin/unbound/daemon/unbound.c
371
writepid (const char* pidfile, pid_t pid)
usr.sbin/unbound/daemon/unbound.c
378
if((fd = open(pidfile, O_WRONLY | O_CREAT | O_TRUNC
usr.sbin/unbound/daemon/unbound.c
384
pidfile, strerror(errno));
usr.sbin/unbound/daemon/unbound.c
393
pidfile, strerror(errno));
usr.sbin/unbound/daemon/unbound.c
398
"write returns 0 bytes written", pidfile);
usr.sbin/unbound/daemon/unbound.c
414
checkoldpid(char* pidfile, int inchroot)
usr.sbin/unbound/daemon/unbound.c
417
if((old = readpid(pidfile)) != -1) {
usr.sbin/unbound/daemon/unbound.c
565
strncmp(cfg->pidfile, cfg->chrootdir,
usr.sbin/unbound/daemon/unbound.c
569
if(cfg->pidfile && cfg->pidfile[0] && need_pidfile) {
usr.sbin/unbound/daemon/unbound.c
571
if(cfg->pidfile[0] == '/')
usr.sbin/unbound/daemon/unbound.c
572
daemon->pidfile = strdup(cfg->pidfile);
usr.sbin/unbound/daemon/unbound.c
573
else daemon->pidfile = fname_after_chroot(cfg->pidfile,
usr.sbin/unbound/daemon/unbound.c
575
if(!daemon->pidfile)
usr.sbin/unbound/daemon/unbound.c
585
checkoldpid(daemon->pidfile, pidinchroot);
usr.sbin/unbound/daemon/unbound.c
596
if(cfg->pidfile && cfg->pidfile[0] && need_pidfile) {
usr.sbin/unbound/daemon/unbound.c
597
writepid(daemon->pidfile, getpid());
usr.sbin/unbound/daemon/unbound.c
641
if(daemon->pidfile && daemon->pidfile[0] &&
usr.sbin/unbound/daemon/unbound.c
642
strncmp(daemon->pidfile, cfg->chrootdir,
usr.sbin/unbound/daemon/unbound.c
644
char* old = daemon->pidfile;
usr.sbin/unbound/daemon/unbound.c
645
daemon->pidfile = strdup(old+strlen(cfg->chrootdir));
usr.sbin/unbound/daemon/unbound.c
647
if(!daemon->pidfile)
usr.sbin/unbound/daemon/unbound.c
776
if(daemon->pidfile) {
usr.sbin/unbound/daemon/unbound.c
779
fd = open(daemon->pidfile, O_WRONLY | O_TRUNC
usr.sbin/unbound/daemon/unbound.c
787
unlink(daemon->pidfile);
usr.sbin/unbound/smallapp/unbound-checkconf.c
110
char *p = fname_after_chroot(cfg->pidfile, cfg, 1);
usr.sbin/unbound/smallapp/unbound-checkconf.c
730
if(cfg->pidfile && cfg->pidfile[0]) {
usr.sbin/unbound/smallapp/unbound-checkconf.c
731
char* ad = (cfg->pidfile[0]=='/')?strdup(cfg->pidfile):
usr.sbin/unbound/smallapp/unbound-checkconf.c
732
fname_after_chroot(cfg->pidfile, cfg, 1);
usr.sbin/unbound/util/config_file.c
1205
else O_STR(opt, "pidfile", pidfile)
usr.sbin/unbound/util/config_file.c
1743
free(cfg->pidfile);
usr.sbin/unbound/util/config_file.c
201
if(!(cfg->pidfile = strdup(PIDFILE))) goto error_exit;
usr.sbin/unbound/util/config_file.c
692
else S_STR("pidfile:", pidfile)
usr.sbin/unbound/util/config_file.h
346
char* pidfile;
usr.sbin/unbound/util/configparser.y
1399
free(cfg_parser->cfg->pidfile);
usr.sbin/unbound/util/configparser.y
1400
cfg_parser->cfg->pidfile = $2;