Symbol: pidfile
dist/pf/sbin/pflogd/pflogd.c
689
pidfile(pidf);
dist/pf/usr.sbin/authpf/authpf.c
176
n = snprintf(pidfile, sizeof(pidfile), "%s/%s", PATH_PIDFILE, ipsrc);
dist/pf/usr.sbin/authpf/authpf.c
177
if (n < 0 || (u_int)n >= sizeof(pidfile)) {
dist/pf/usr.sbin/authpf/authpf.c
201
if ((pidfd = open(pidfile, O_RDWR|O_CREAT, 0644)) == -1 ||
dist/pf/usr.sbin/authpf/authpf.c
205
syslog(LOG_ERR, "cannot open or create %s: %s", pidfile,
dist/pf/usr.sbin/authpf/authpf.c
221
pidfile, otherpid, strerror(save_errno));
dist/pf/usr.sbin/authpf/authpf.c
62
char pidfile[MAXPATHLEN]; /* we save pid in this file. */
dist/pf/usr.sbin/authpf/authpf.c
836
if (pidfile[0] && (pidfp != NULL))
dist/pf/usr.sbin/authpf/authpf.c
837
if (unlink(pidfile) == -1)
dist/pf/usr.sbin/authpf/authpf.c
838
syslog(LOG_ERR, "cannot unlink %s (%m)", pidfile);
include/util.h
116
int pidfile(const char *);
libexec/ftpd/ftpd.c
574
if (pidfile(NULL) == -1)
libexec/httpd/bozohttpd.c
2630
httpd->pidfile = bozostrdup(httpd, NULL, cp);
libexec/httpd/bozohttpd.c
2747
free(httpd->pidfile);
libexec/httpd/bozohttpd.h
109
char *pidfile; /* path to the pid file, if any */
libexec/httpd/daemon-bozo.c
106
if (httpd->pidfile == NULL)
libexec/httpd/daemon-bozo.c
112
if ((file = fopen(httpd->pidfile, "w")) == NULL)
libexec/httpd/daemon-bozo.c
114
httpd->pidfile);
libexec/httpd/daemon-bozo.c
118
pidfile_path = httpd->pidfile;
libexec/lfs_cleanerd/cleansrv.c
220
pidfile("lfs_cleanerd");
libexec/lfs_cleanerd/lfs_cleanerd.c
907
pidfile(pidname);
sbin/iscsid/iscsid_main.c
560
pidfile(NULL);
sbin/routed/main.c
292
pidfile(NULL);
tests/lib/libutil/t_pidfile.c
149
if (pidfile(NULL) == -1)
tests/lib/libutil/t_pidfile.c
176
if (pidfile("custom-basename") == -1)
tests/lib/libutil/t_pidfile.c
203
if (pidfile(path) == -1)
tests/lib/libutil/t_pidfile.c
228
if (pidfile(NULL) == -1)
tests/lib/libutil/t_pidfile.c
232
if (pidfile(NULL) == -1)
tests/lib/libutil/t_pidfile.c
238
if (pidfile("custom-basename") == -1)
tests/lib/libutil/t_pidfile.c
243
if (pidfile("custom-basename") == -1)
tests/lib/libutil/t_pidfile.c
279
if (pidfile("./var/run/first.pid") == -1)
tests/lib/libutil/t_pidfile.c
284
if (pidfile("./second.pid") == -1)
tests/lib/libutil/t_pidfile.c
314
if (pidfile(NULL) == -1)
tests/lib/libutil/t_pidfile.c
318
if (pidfile("./second.pid") == -1)
tests/lib/libutil/t_pidfile.c
323
if (pidfile("custom-basename") == -1)
tests/net/if_vlan/bpfopen.c
131
if (pidfile(path_pid) != 0) {
usr.bin/bthset/bthset.c
156
pidfile = getenv("BTHSET_PIDFILE");
usr.bin/bthset/bthset.c
173
pidfile = optarg;
usr.bin/bthset/bthset.c
198
err(EXIT_FAILURE, "%s", pidfile);
usr.bin/bthset/bthset.c
567
if (pidfile == NULL)
usr.bin/bthset/bthset.c
570
unlink(pidfile);
usr.bin/bthset/bthset.c
579
if (pidfile == NULL)
usr.bin/bthset/bthset.c
582
fd = open(pidfile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
usr.bin/bthset/bthset.c
99
static char *pidfile; /* PID file name */
usr.bin/newsyslog/newsyslog.c
109
char pidfile[MAXPATHLEN]; /* File containing PID to signal */
usr.bin/newsyslog/newsyslog.c
401
(void)strlcpy(log->pidfile, *ap++, sizeof(log->pidfile));
usr.bin/newsyslog/newsyslog.c
403
log->pidfile[0] = '\0';
usr.bin/newsyslog/newsyslog.c
628
if (log->pidfile[0] != '\0')
usr.bin/newsyslog/newsyslog.c
629
pid = readpidfile(log->pidfile);
usr.bin/pkill/pkill.c
121
char buf[_POSIX2_LINE_MAX], **pargv, *q, *pidfile = NULL;
usr.bin/pkill/pkill.c
197
pidfile = optarg;
usr.bin/pkill/pkill.c
272
if (pidfile != NULL)
usr.bin/pkill/pkill.c
273
pidfromfile = takepid(pidfile, pidfilelock);
usr.bin/pkill/pkill.c
679
takepid(const char *pidfile, int pidfilelock)
usr.bin/pkill/pkill.c
685
fh = fopen(pidfile, "r");
usr.bin/pkill/pkill.c
687
err(STATUS_ERROR, "Cannot open pidfile `%s'", pidfile);
usr.bin/pkill/pkill.c
696
errx(STATUS_ERROR, "File '%s' can be locked", pidfile);
usr.bin/pkill/pkill.c
700
"Error while locking file '%s'", pidfile);
usr.bin/pkill/pkill.c
708
errx(STATUS_ERROR, "Pidfile `%s' is empty", pidfile);
usr.bin/pkill/pkill.c
711
err(STATUS_ERROR, "Cannot read from pid file `%s'", pidfile);
usr.bin/pkill/pkill.c
717
errx(STATUS_ERROR, "Invalid pid in file `%s'", pidfile);
usr.bin/pkill/pkill.c
719
errx(STATUS_ERROR, "Invalid pid in file `%s'", pidfile);
usr.bin/usbhidaction/usbhidaction.c
176
(void)pidfile(pidfn);
usr.sbin/altq/altqd/altqd.c
203
pidfile(NULL);
usr.sbin/apmd/apmd.c
396
pidfile(NULL);
usr.sbin/autofs/automountd.c
543
if (pidfile(NULL) == -1) {
usr.sbin/autofs/autounmountd.c
312
if (pidfile(NULL) == -1) {
usr.sbin/bta2dpd/bta2dpd/bta2dpd.c
532
pidfile(NULL);
usr.sbin/btattach/btattach.c
295
if (ptr == NULL || pidfile(ptr) < 0)
usr.sbin/bthcid/bthcid.c
142
if (detach && pidfile(NULL) < 0) {
usr.sbin/btpand/tap.c
125
if (pidfile(ifr.ifr_name) == -1)
usr.sbin/inetd/inetd.c
381
pidfile(NULL);
usr.sbin/irdaattach/irdaattach.c
153
pidfile(NULL);
usr.sbin/isibootd/isibootd.c
176
pidfile(NULL);
usr.sbin/mopd/mopd/mopd.c
135
pidfile(NULL);
usr.sbin/mountd/mountd.c
559
pidfile(NULL);
usr.sbin/moused/moused.c
141
static const char *pidfile = "/var/run/moused.pid";
usr.sbin/moused/moused.c
701
pidfile = optarg;
usr.sbin/moused/moused.c
868
fp = fopen(pidfile, "w");
usr.sbin/mrouted/main.c
160
pidfile(NULL);
usr.sbin/npf/npfd/npfd.c
223
pidfile(pidname);
usr.sbin/powerd/powerd.c
122
(void)pidfile(NULL);
usr.sbin/rarpd/rarpd.c
170
pidfile(NULL);
usr.sbin/rbootd/rbootd.c
130
pidfile(NULL);
usr.sbin/route6d/route6d.c
375
pidfile(NULL);
usr.sbin/rpc.bootparamd/bootparamd.c
131
pidfile(NULL);
usr.sbin/rpc.lockd/lockd.c
194
(void)pidfile(NULL);
usr.sbin/rpc.statd/statd.c
138
pidfile(NULL);
usr.sbin/rpc.yppasswdd/rpc.yppasswdd.c
106
pidfile(NULL);
usr.sbin/rpcbind/rpcbind.c
246
pidfile(NULL);
usr.sbin/rwhod/rwhod.c
181
(void)pidfile(NULL);
usr.sbin/screenblank/screenblank.c
239
pidfile(NULL);
usr.sbin/syslogd/syslogd.c
578
if (pidfile(NULL)) {
usr.sbin/syslogd/syslogd.c
625
pidfile(NULL);
usr.sbin/timed/timed/timed.c
339
pidfile(NULL);
usr.sbin/wsmoused/wsmoused.c
605
if (pidfile(Pid_File) == -1)
usr.sbin/ypbind/ypbind.c
1804
(void)pidfile(NULL);
usr.sbin/ypserv/ypserv/ypserv.c
344
(void)pidfile(NULL);