Symbol: pidfile
bin/pkill/pkill.c
133
char *buf, *mstr, **pargv, *p, *q, *pidfile;
bin/pkill/pkill.c
182
pidfile = NULL;
bin/pkill/pkill.c
194
pidfile = optarg;
bin/pkill/pkill.c
301
if (pidfile != NULL)
bin/pkill/pkill.c
302
pidfromfile = takepid(pidfile, pidfilelock);
bin/pkill/pkill.c
832
takepid(const char *pidfile, int pidfilelock)
bin/pkill/pkill.c
838
fh = fopen(pidfile, "r");
bin/pkill/pkill.c
840
err(STATUS_ERROR, "Cannot open pidfile `%s'", pidfile);
bin/pkill/pkill.c
849
errx(STATUS_ERROR, "File '%s' can be locked", pidfile);
bin/pkill/pkill.c
853
"Error while locking file '%s'", pidfile);
bin/pkill/pkill.c
861
errx(STATUS_ERROR, "Pidfile `%s' is empty", pidfile);
bin/pkill/pkill.c
864
err(STATUS_ERROR, "Cannot read from pid file `%s'", pidfile);
bin/pkill/pkill.c
870
errx(STATUS_ERROR, "Invalid pid in file `%s'", pidfile);
bin/pkill/pkill.c
872
errx(STATUS_ERROR, "Invalid pid in file `%s'", pidfile);
crypto/heimdal/kadmin/kadmind.c
178
pidfile(NULL);
crypto/heimdal/kadmin/kadmind.c
192
pidfile(NULL);
crypto/heimdal/kcm/main.c
107
pidfile(NULL);
crypto/heimdal/kdc/main.c
162
pidfile(NULL);
crypto/heimdal/kpasswd/kpasswdd.c
898
pidfile(NULL);
crypto/heimdal/lib/kadm5/ipropd_master.c
863
pidfile (NULL);
crypto/heimdal/lib/kadm5/ipropd_slave.c
558
pidfile (NULL);
lib/libutil++/libutil++.hh
161
pidfile() = default;
lib/libutil++/libutil++.hh
163
pidfile(pidfile &&other) : pfh(other.release()) {}
lib/libutil++/libutil++.hh
164
pidfile(pidfile const &) = delete;
lib/libutil++/libutil++.hh
201
pidfile &operator=(pidfile &&other) noexcept
lib/libutil++/libutil++.hh
209
pidfile &operator=(pidfile const &) = delete;
lib/libutil++/libutil++.hh
211
pidfile &operator=(struct pidfh *newpfh)
lib/libutil++/tests/pidfile_test.cc
26
freebsd::pidfile pf(pfh);
libexec/pppoed/pppoed.c
506
const char *pidfile;
libexec/pppoed/pppoed.c
510
pidfile = NULL;
libexec/pppoed/pppoed.c
524
pidfile = optarg;
libexec/pppoed/pppoed.c
619
if (pidfile != NULL) {
libexec/pppoed/pppoed.c
622
if ((fp = fopen(pidfile, "w")) == NULL) {
libexec/pppoed/pppoed.c
623
perror(pidfile);
libexec/pppoed/pppoed.c
677
if (pidfile)
libexec/pppoed/pppoed.c
678
remove(pidfile);
libexec/tftpd/tests/functional.c
269
f = fopen(pidfile, "r");
libexec/tftpd/tests/functional.c
278
unlink(pidfile);
libexec/tftpd/tests/functional.c
288
f = fopen(pidfile, "r");
libexec/tftpd/tests/functional.c
291
unlink(pidfile);
libexec/tftpd/tests/functional.c
377
pfh = pidfile_open(pidfile, 0644, NULL);
libexec/tftpd/tests/functional.c
47
static const char pidfile[] = "tftpd.pid";
sbin/dhclient/dhclient.c
110
struct pidfh *pidfile;
sbin/dhclient/dhclient.c
2502
if (pidfile != NULL) {
sbin/dhclient/dhclient.c
2503
pidfile_write(pidfile);
sbin/dhclient/dhclient.c
2505
if (caph_rights_limit(pidfile_fileno(pidfile), &rights) < 0)
sbin/dhclient/dhclient.c
352
if (pidfile != NULL)
sbin/dhclient/dhclient.c
353
pidfile_remove(pidfile);
sbin/dhclient/dhclient.c
431
pidfile = pidfile_open(path_dhclient_pidfile, 0644, &otherpid);
sbin/dhclient/dhclient.c
432
if (pidfile == NULL) {
sbin/dhclient/dhclient.c
463
if (pidfile != NULL)
sbin/dhclient/dhclient.c
464
pidfile_write(pidfile);
sbin/dhclient/dhcpd.h
371
extern struct pidfh *pidfile;
sbin/dhclient/errwarn.c
86
if (pidfile != NULL)
sbin/dhclient/errwarn.c
87
pidfile_remove(pidfile);
sbin/hastd/hastd.c
1209
pidfile = optarg;
sbin/hastd/hastd.c
1244
if (pidfile != NULL) {
sbin/hastd/hastd.c
1245
if (strlcpy(cfg->hc_pidfile, pidfile,
sbin/hastd/hastd.c
1251
if (pidfile != NULL || !foreground) {
sbin/hastd/hastd.c
1313
if (pidfile != NULL || !foreground) {
sbin/hastd/hastd.c
541
if (!foreground && pidfile == NULL &&
sbin/hastd/hastd.c
69
static const char *pidfile;
sbin/ipf/ipmon/ipmon.c
108
static char *pidfile = "/etc/opt/ipf/ipmon.pid";
sbin/ipf/ipmon/ipmon.c
110
static char *pidfile = "/var/run/ipmon.pid";
sbin/ipf/ipmon/ipmon.c
1610
pidfile = optarg;
sbin/ipf/ipmon/ipmon.c
1699
write_pid(pidfile);
tests/sys/aio/aio_test.c
1019
FILE *pidfile;
tests/sys/aio/aio_test.c
1023
pidfile = fopen("pidfile", "r");
tests/sys/aio/aio_test.c
1024
if (pidfile == NULL && errno == ENOENT) {
tests/sys/aio/aio_test.c
1028
ATF_REQUIRE_MSG(NULL != pidfile, "fopen: %s", strerror(errno));
tests/sys/aio/aio_test.c
1029
ATF_REQUIRE_EQ(1, fscanf(pidfile, "%d", &testpid));
tests/sys/aio/aio_test.c
1030
fclose(pidfile);
tests/sys/aio/aio_test.c
971
FILE *pidfile;
tests/sys/aio/aio_test.c
993
pidfile = fopen("pidfile", "w");
tests/sys/aio/aio_test.c
994
ATF_REQUIRE_MSG(NULL != pidfile, "fopen: %s", strerror(errno));
tests/sys/aio/aio_test.c
995
fprintf(pidfile, "%d", pid);
tests/sys/aio/aio_test.c
996
fclose(pidfile);
tools/tools/net80211/wlanwds/wlanwds.c
110
const char *pidfile = NULL;
tools/tools/net80211/wlanwds/wlanwds.c
130
pidfile = optarg;
tools/tools/net80211/wlanwds/wlanwds.c
154
if (pidfile != NULL) {
tools/tools/net80211/wlanwds/wlanwds.c
155
pfh = pidfile_open(pidfile, 0600, &otherpid);
usr.bin/usbhidaction/usbhidaction.c
119
pidfile = optarg;
usr.bin/usbhidaction/usbhidaction.c
169
fp = open(pidfile, O_WRONLY|O_CREAT, S_IRUSR|S_IRGRP|S_IROTH);
usr.bin/usbhidaction/usbhidaction.c
171
err(1, "%s", pidfile);
usr.bin/usbhidaction/usbhidaction.c
177
err(1, "%s", pidfile);
usr.bin/usbhidaction/usbhidaction.c
53
static const char * pidfile = "/var/run/usbaction.pid";
usr.sbin/bluetooth/btpand/tap.c
120
snprintf(pidfile, sizeof(pidfile), "%s/%s.pid",
usr.sbin/bluetooth/btpand/tap.c
122
chan->pfh = pidfile_open(pidfile, 0600, NULL);
usr.sbin/bluetooth/btpand/tap.c
59
char pidfile[PATH_MAX];
usr.sbin/cron/cron/cron.c
75
const char *pidfile = PIDDIR PIDFILE;
usr.sbin/cron/cron/cron.c
79
pfh = pidfile_open(pidfile, 0600, &otherpid);
usr.sbin/cron/cron/cron.c
86
"can't open or create %s: %s", pidfile,
usr.sbin/ctld/ctld.hh
546
freebsd::pidfile conf_pidfile;
usr.sbin/ctld/parse.y
157
pidfile: PIDFILE STR
usr.sbin/ctld/parse.y
91
pidfile
usr.sbin/ipfwpcap/ipfwpcap.c
107
perror(pidfile);
usr.sbin/ipfwpcap/ipfwpcap.c
182
strcpy(pidfile, optarg);
usr.sbin/ipfwpcap/ipfwpcap.c
63
static char pidfile[MAXPATHLEN];
usr.sbin/ipfwpcap/ipfwpcap.c
71
(void) unlink(pidfile);
usr.sbin/ipfwpcap/ipfwpcap.c
85
if (pidfile[0] == '\0') {
usr.sbin/ipfwpcap/ipfwpcap.c
89
snprintf(pidfile, sizeof pidfile,
usr.sbin/ipfwpcap/ipfwpcap.c
93
fd = open(pidfile, O_WRONLY|O_CREAT|O_EXCL, 0644);
usr.sbin/ipfwpcap/ipfwpcap.c
95
perror(pidfile);
usr.sbin/moused/moused/moused.c
440
static const char *pidfile = "/var/run/moused.pid";
usr.sbin/moused/moused/moused.c
707
pidfile = optarg;
usr.sbin/moused/moused/moused.c
823
pfh = pidfile_open(pidfile, 0600, &mpid);
usr.sbin/moused/msconvd/msconvd.c
149
static const char *pidfile = "/var/run/msconvd.pid";
usr.sbin/moused/msconvd/msconvd.c
512
pidfile = optarg;
usr.sbin/moused/msconvd/msconvd.c
656
pfh = pidfile_open(pidfile, 0600, &mpid);
usr.sbin/nscd/nscd.c
598
struct pidfh *pidfile;
usr.sbin/nscd/nscd.c
739
pidfile = pidfile_open(DEFAULT_PIDFILE_PATH, 0644, &pid);
usr.sbin/nscd/nscd.c
740
if (pidfile == NULL) {
usr.sbin/nscd/nscd.c
759
pidfile_remove(pidfile);
usr.sbin/nscd/nscd.c
765
pidfile_write(pidfile);
usr.sbin/nscd/nscd.c
871
pidfile_remove(pidfile);
usr.sbin/powerd/powerd.c
578
const char *pidfile = NULL;
usr.sbin/powerd/powerd.c
649
pidfile = optarg;
usr.sbin/powerd/powerd.c
694
pfh = pidfile_open(pidfile, 0600, &otherpid);
usr.sbin/ppp/bundle.c
672
char pidfile[PATH_MAX];
usr.sbin/ppp/bundle.c
674
snprintf(pidfile, sizeof pidfile, "%stun%d.pid", _PATH_VARRUN, bundle->unit);
usr.sbin/ppp/bundle.c
675
lockfile = ID0fopen(pidfile, "w");
usr.sbin/ppp/bundle.c
681
pidfile, strerror(errno));
usr.sbin/ppp/bundle.c
687
char pidfile[PATH_MAX];
usr.sbin/ppp/bundle.c
689
snprintf(pidfile, sizeof pidfile, "%stun%d.pid", _PATH_VARRUN, bundle->unit);
usr.sbin/ppp/bundle.c
690
ID0unlink(pidfile);
usr.sbin/rarpd/rarpd.c
162
pidfile = pidfile_buf;
usr.sbin/rarpd/rarpd.c
188
if (pidfile == NULL && ifname != NULL && aflag == 0) {
usr.sbin/rarpd/rarpd.c
192
pidfile = pidfile_buf;
usr.sbin/rarpd/rarpd.c
195
pidfile_fh = pidfile_open(pidfile, 0600, NULL);
usr.sbin/rarpd/rarpd.c
198
(pidfile == NULL) ? "/var/run/rarpd.pid" : pidfile);
usr.sbin/rarpd/rarpd.c
96
static char *pidfile;
usr.sbin/route6d/route6d.c
280
const char *pidfile = ROUTE6D_PID;
usr.sbin/route6d/route6d.c
315
pidfile = optarg;
usr.sbin/route6d/route6d.c
425
if ((pidfh = fopen(pidfile, "w")) != NULL) {
usr.sbin/uhsoctl/uhsoctl.c
108
char pidfile[128];
usr.sbin/uhsoctl/uhsoctl.c
1291
snprintf(ctx->pidfile, 127, PIDFILE, ctx->ifnam);
usr.sbin/uhsoctl/uhsoctl.c
1293
pfh = pidfile_open(ctx->pidfile, 0600, &opid);
usr.sbin/uhsoctl/uhsoctl.c
1295
warn("Cannot create pidfile %s", ctx->pidfile);
usr.sbin/uhsoctl/uhsoctl.c
1317
char pidfile[128];
usr.sbin/uhsoctl/uhsoctl.c
1322
snprintf(pidfile, 127, PIDFILE, ifnam);
usr.sbin/uhsoctl/uhsoctl.c
1323
fp = fopen(pidfile, "r");
usr.sbin/uhsoctl/uhsoctl.c
1325
warn("Cannot open %s", pidfile);
usr.sbin/virtual_oss/virtual_oss/main.c
2596
int pidfile = open(voss_pid_path, O_RDWR | O_CREAT | O_TRUNC, 0600);
usr.sbin/virtual_oss/virtual_oss/main.c
2600
if (pidfile < 0)
usr.sbin/virtual_oss/virtual_oss/main.c
2602
if (write(pidfile, mypidstr, strlen(mypidstr)) !=
usr.sbin/virtual_oss/virtual_oss/main.c
2605
close(pidfile);
usr.sbin/watchdogd/watchdogd.c
145
pfh = pidfile_open(pidfile, 0600, &otherpid);
usr.sbin/watchdogd/watchdogd.c
664
pidfile = optarg;
usr.sbin/watchdogd/watchdogd.c
76
static const char *pidfile = _PATH_VARRUN "watchdogd.pid";