/freebsd-11-stable/contrib/openbsm/compat/ |
H A D | pidfile.h | 51 static int _pidfile_remove(struct pidfh *pfh, int freeit); 54 pidfile_verify(const struct pidfh *pfh) argument 58 if (pfh == NULL || pfh->pf_fd == -1) 63 if (fstat(pfh->pf_fd, &sb) == -1) 65 if (sb.st_dev != pfh->pf_dev || sb.st_ino != pfh->pf_ino) 99 struct pidfh *pfh; local 110 pfh = malloc(sizeof(*pfh)); 186 pidfile_write(struct pidfh *pfh) argument 226 pidfile_close(struct pidfh *pfh) argument 247 _pidfile_remove(struct pidfh *pfh, int freeit) argument 275 pidfile_remove(struct pidfh *pfh) argument [all...] |
/freebsd-11-stable/lib/libutil/ |
H A D | pidfile.c | 51 static int _pidfile_remove(struct pidfh *pfh, int freeit); 54 pidfile_verify(const struct pidfh *pfh) argument 58 if (pfh == NULL || pfh->pf_fd == -1) 63 if (fstat(pfh->pf_fd, &sb) == -1) 65 if (sb.st_dev != pfh->pf_dev || sb.st_ino != pfh->pf_ino) 99 struct pidfh *pfh; local 104 pfh = malloc(sizeof(*pfh)); 174 pidfile_write(struct pidfh *pfh) argument 214 pidfile_close(struct pidfh *pfh) argument 235 _pidfile_remove(struct pidfh *pfh, int freeit) argument 263 pidfile_remove(struct pidfh *pfh) argument 270 pidfile_fileno(const struct pidfh *pfh) argument [all...] |
/freebsd-11-stable/sys/net/ |
H A D | pfil.c | 100 struct packet_filter_hook *pfh; local 106 for (pfh = pfil_chain_get(dir, ph); pfh != NULL; 107 pfh = TAILQ_NEXT(pfh, pfil_chain)) { 108 if (pfh->pfil_func_flags != NULL) { 109 rv = (*pfh->pfil_func_flags)(pfh->pfil_arg, &m, ifp, 114 if (pfh->pfil_func != NULL) { 115 rv = (*pfh 234 struct packet_filter_hook *pfh, *pfnext; local 391 struct packet_filter_hook *pfh; local 420 struct packet_filter_hook *pfh; local [all...] |
/freebsd-11-stable/sbin/hastd/ |
H A D | hastd.h | 46 extern struct pidfh *pfh;
|
H A D | hastd.c | 74 struct pidfh *pfh; variable in typeref:struct:pidfh 138 (void)pidfile_close(pfh); 588 (void)pidfile_remove(pfh); 589 pfh = newpfh; 1132 KEEP_ERRNO((void)pidfile_remove(pfh)); 1255 pfh = pidfile_open(cfg->hc_pidfile, 0600, &otherpid); 1256 if (pfh == NULL) { 1294 KEEP_ERRNO((void)pidfile_remove(pfh)); 1301 KEEP_ERRNO((void)pidfile_remove(pfh)); 1309 KEEP_ERRNO((void)pidfile_remove(pfh)); [all...] |
/freebsd-11-stable/usr.sbin/bluetooth/btpand/ |
H A D | tap.c | 123 chan->pfh = pidfile_open(pidfile, 0600, NULL); 124 if (chan->pfh == NULL) 126 else if (pidfile_write(chan->pfh) < 0) { 128 pidfile_remove(chan->pfh); 129 chan->pfh = NULL;
|
H A D | channel.c | 140 if (chan->pfh != NULL) { 141 pidfile_remove(chan->pfh); 142 chan->pfh = NULL;
|
H A D | btpand.h | 111 struct pidfh *pfh; member in struct:channel
|
/freebsd-11-stable/usr.sbin/daemon/ |
H A D | daemon.c | 88 struct pidfh *ppfh, *pfh; local 179 ppfh = pfh = NULL; 184 open_pid_files(pidfile, ppidfile, &pfh, &ppfh); 280 pidfile_write(pfh); 378 pidfile_remove(pfh); 395 struct pidfh **pfh, struct pidfh **ppfh) 401 *pfh = pidfile_open(pidfile, 0600, &fpid); 402 if (*pfh == NULL) { 415 pidfile_remove(*pfh); 394 open_pid_files(const char *pidfile, const char *ppidfile, struct pidfh **pfh, struct pidfh **ppfh) argument
|
/freebsd-11-stable/cddl/compat/opensolaris/misc/ |
H A D | fsshare.c | 50 struct pidfh *pfh; local 53 pfh = pidfile_open(_PATH_MOUNTDPID, 0600, &mountdpid); 54 if (pfh != NULL) { 56 pidfile_remove(pfh);
|
/freebsd-11-stable/contrib/openbsm/bin/auditdistd/ |
H A D | auditdistd.c | 89 struct pidfh *pfh; variable in typeref:struct:pidfh 119 (void)pidfile_close(pfh); 548 KEEP_ERRNO((void)pidfile_remove(pfh)); 725 pfh = NULL; 727 pfh = pidfile_open(adcfg->adc_pidfile, 0600, &otherpid); 728 if (pfh == NULL) { 767 KEEP_ERRNO((void)pidfile_remove(pfh)); 775 KEEP_ERRNO((void)pidfile_remove(pfh)); 782 if (pfh != NULL) { 784 if (pidfile_write(pfh) < [all...] |
H A D | auditdistd.h | 260 extern struct pidfh *pfh;
|
/freebsd-11-stable/usr.sbin/watchdogd/ |
H A D | watchdogd.c | 131 struct pidfh *pfh; local 155 pfh = pidfile_open(pidfile, 0600, &otherpid); 156 if (pfh == NULL) { 167 pidfile_remove(pfh); 175 pidfile_write(pfh); 184 pidfile_remove(pfh);
|
/freebsd-11-stable/usr.sbin/cron/cron/ |
H A D | cron.c | 55 struct pidfh *pfh; variable in typeref:struct:pidfh 85 pfh = pidfile_open(pidfile, 0600, &otherpid); 86 if (pfh == NULL) { 143 pidfile_remove(pfh); 152 pidfile_write(pfh);
|
H A D | cron.h | 313 extern struct pidfh *pfh;
|
/freebsd-11-stable/usr.sbin/powerd/ |
H A D | powerd.c | 484 struct pidfh *pfh = NULL; local 596 pfh = pidfile_open(pidfile, 0600, &otherpid); 597 if (pfh == NULL) { 606 pidfile_remove(pfh); 610 pidfile_write(pfh); 829 pidfile_remove(pfh);
|
/freebsd-11-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_pfil.c | 539 struct pfil_head *pfh; local 542 pfh = pfil_head_get(PFIL_TYPE_AF, pf); 543 if (pfh == NULL) 549 (hook_func, NULL, PFIL_IN | PFIL_OUT | PFIL_WAITOK, pfh); local
|
/freebsd-11-stable/contrib/wpa/src/utils/ |
H A D | os_unix.c | 234 struct pidfh *pfh; 236 pfh = pidfile_open(pid_file, 0600, &otherpid); 237 if (pfh == NULL) { 249 pidfile_remove(pfh); 263 pidfile_write(pfh);
|
/freebsd-11-stable/usr.sbin/uhsoctl/ |
H A D | uhsoctl.c | 111 struct pidfh *pfh; member in struct:ctx 1292 struct pidfh *pfh; local 1297 pfh = pidfile_open(ctx->pidfile, 0600, &opid); 1298 if (pfh == NULL) { 1305 pidfile_remove(pfh); 1309 pidfile_write(pfh); 1310 ctx->pfh = pfh; 1557 pidfile_remove(ctx.pfh);
|
/freebsd-11-stable/sbin/devd/ |
H A D | devd.cc | 148 static struct pidfh *pfh; variable in typeref:struct:pidfh 510 pfh = pidfile_open(_pidfile.c_str(), 0600, &otherpid); 511 if (pfh == NULL) { 522 pidfile_write(pfh); 529 pidfile_close(pfh); 536 pidfile_remove(pfh);
|
/freebsd-11-stable/tools/tools/net80211/wesside/wesside/ |
H A D | wesside.c | 2401 struct pcap_file_header pfh; local 2403 memset(&pfh, 0, sizeof(pfh)); 2404 pfh.magic = TCPDUMP_MAGIC; 2405 pfh.version_major = PCAP_VERSION_MAJOR; 2406 pfh.version_minor = PCAP_VERSION_MINOR; 2407 pfh.thiszone = 0; 2408 pfh.sigfigs = 0; 2409 pfh.snaplen = 65535; 2410 pfh [all...] |
/freebsd-11-stable/sbin/ggate/ggated/ |
H A D | ggated.c | 954 struct pidfh *pfh; local 1012 pfh = pidfile_open(ggated_pidfile, 0600, &otherpid); 1013 if (pfh == NULL) { 1027 pidfile_write(pfh); 1065 pidfile_remove(pfh);
|
/freebsd-11-stable/libexec/tftpd/tests/ |
H A D | functional.c | 275 struct pidfh *pfh; local 309 pfh = pidfile_open(pidfile, 0644, NULL); 310 ATF_REQUIRE_MSG(pfh != NULL, 312 ATF_REQUIRE_EQ(pidfile_write(pfh), 0); 313 ATF_REQUIRE_EQ(pidfile_close(pfh), 0);
|
/freebsd-11-stable/sbin/mount/ |
H A D | mount.c | 224 struct pidfh *pfh; local 228 pfh = pidfile_open(_PATH_MOUNTDPID, 0600, &mountdpid); 229 if (pfh != NULL) { 231 pidfile_remove(pfh);
|
/freebsd-11-stable/usr.sbin/inetd/ |
H A D | inetd.c | 289 static struct pidfh *pfh = NULL; variable in typeref:struct:pidfh 478 pfh = pidfile_open(pid_file, 0600, &otherpid); 479 if (pfh == NULL) { 503 if (pfh != NULL && pidfile_write(pfh) == -1) { 738 pidfile_close(pfh);
|