Searched refs:pfh (Results 1 - 25 of 31) sorted by relevance

12

/freebsd-10.0-release/libexec/lukemftpd/
H A Dnbsd_pidfile.h9 struct pidfh *pfh; local
16 pfh = pidfile_open(basename, 0644, &otherpid);
17 if (pfh == NULL) {
27 pidfile_write(pfh);
28 pidfile_close(pfh);
/freebsd-10.0-release/contrib/openbsm/compat/
H A Dpidfile.h52 static int _pidfile_remove(struct pidfh *pfh, int freeit);
55 pidfile_verify(const struct pidfh *pfh) argument
59 if (pfh == NULL || pfh->pf_fd == -1)
64 if (fstat(pfh->pf_fd, &sb) == -1)
66 if (sb.st_dev != pfh->pf_dev || sb.st_ino != pfh->pf_ino)
100 struct pidfh *pfh; local
111 pfh = malloc(sizeof(*pfh));
187 pidfile_write(struct pidfh *pfh) argument
227 pidfile_close(struct pidfh *pfh) argument
248 _pidfile_remove(struct pidfh *pfh, int freeit) argument
276 pidfile_remove(struct pidfh *pfh) argument
[all...]
/freebsd-10.0-release/lib/libutil/
H A Dpidfile.c51 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-10.0-release/sys/net/
H A Dpfil.c73 struct packet_filter_hook *pfh; local
79 for (pfh = pfil_chain_get(dir, ph); pfh != NULL;
80 pfh = TAILQ_NEXT(pfh, pfil_chain)) {
81 if (pfh->pfil_func != NULL) {
82 rv = (*pfh->pfil_func)(pfh->pfil_arg, &m, ifp, dir,
201 struct packet_filter_hook *pfh, *pfnext; local
206 TAILQ_FOREACH_SAFE(pfh,
323 struct packet_filter_hook *pfh; local
350 struct packet_filter_hook *pfh; local
[all...]
/freebsd-10.0-release/sbin/hastd/
H A Dhastd.h44 extern struct pidfh *pfh;
H A Dhastd.c72 struct pidfh *pfh; variable in typeref:struct:pidfh
136 (void)pidfile_close(pfh);
586 (void)pidfile_remove(pfh);
587 pfh = newpfh;
1130 KEEP_ERRNO((void)pidfile_remove(pfh));
1252 pfh = pidfile_open(cfg->hc_pidfile, 0600, &otherpid);
1253 if (pfh == NULL) {
1291 KEEP_ERRNO((void)pidfile_remove(pfh));
1298 KEEP_ERRNO((void)pidfile_remove(pfh));
1306 KEEP_ERRNO((void)pidfile_remove(pfh));
[all...]
H A Dsecondary.c410 KEEP_ERRNO((void)pidfile_remove(pfh));
418 KEEP_ERRNO((void)pidfile_remove(pfh));
425 KEEP_ERRNO((void)pidfile_remove(pfh));
/freebsd-10.0-release/usr.sbin/daemon/
H A Ddaemon.c56 struct pidfh *ppfh, *pfh; local
95 ppfh = pfh = NULL;
101 pfh = pidfile_open(pidfile, 0600, &otherpid);
102 if (pfh == NULL) {
115 pidfile_remove(pfh);
193 pidfile_write(pfh);
213 pidfile_remove(pfh);
/freebsd-10.0-release/usr.sbin/bluetooth/btpand/
H A Dtap.c120 chan->pfh = pidfile_open(pidfile, 0600, NULL);
121 if (chan->pfh == NULL)
123 else if (pidfile_write(chan->pfh) < 0) {
125 pidfile_remove(chan->pfh);
126 chan->pfh = NULL;
H A Dchannel.c138 if (chan->pfh != NULL) {
139 pidfile_remove(chan->pfh);
140 chan->pfh = NULL;
H A Dbtpand.h109 struct pidfh *pfh; member in struct:channel
/freebsd-10.0-release/cddl/compat/opensolaris/misc/
H A Dfsshare.c50 struct pidfh *pfh; local
53 pfh = pidfile_open(_PATH_MOUNTDPID, 0600, &mountdpid);
54 if (pfh != NULL) {
56 pidfile_remove(pfh);
/freebsd-10.0-release/contrib/openbsm/bin/auditdistd/
H A Dauditdistd.c91 struct pidfh *pfh; variable in typeref:struct:pidfh
121 (void)pidfile_close(pfh);
550 KEEP_ERRNO((void)pidfile_remove(pfh));
727 pfh = NULL;
729 pfh = pidfile_open(adcfg->adc_pidfile, 0600, &otherpid);
730 if (pfh == NULL) {
769 KEEP_ERRNO((void)pidfile_remove(pfh));
777 KEEP_ERRNO((void)pidfile_remove(pfh));
784 if (pfh != NULL) {
786 if (pidfile_write(pfh) <
[all...]
H A Dauditdistd.h262 extern struct pidfh *pfh;
/freebsd-10.0-release/usr.sbin/watchdogd/
H A Dwatchdogd.c128 struct pidfh *pfh; local
152 pfh = pidfile_open(pidfile, 0600, &otherpid);
153 if (pfh == NULL) {
164 pidfile_remove(pfh);
172 pidfile_write(pfh);
181 pidfile_remove(pfh);
/freebsd-10.0-release/usr.sbin/cron/cron/
H A Dcron.c52 struct pidfh *pfh; variable in typeref:struct:pidfh
82 pfh = pidfile_open(pidfile, 0600, &otherpid);
83 if (pfh == NULL) {
141 pidfile_remove(pfh);
150 pidfile_write(pfh);
H A Dcron.h302 extern struct pidfh *pfh;
H A Ddo_command.c66 pidfile_close(pfh);
/freebsd-10.0-release/usr.sbin/powerd/
H A Dpowerd.c448 struct pidfh *pfh = NULL; local
557 pfh = pidfile_open(pidfile, 0600, &otherpid);
558 if (pfh == NULL) {
567 pidfile_remove(pfh);
571 pidfile_write(pfh);
790 pidfile_remove(pfh);
/freebsd-10.0-release/sys/netpfil/ipfw/
H A Dip_fw_pfil.c493 struct pfil_head *pfh; local
496 pfh = pfil_head_get(PFIL_TYPE_AF, pf);
497 if (pfh == NULL)
503 (hook_func, NULL, PFIL_IN | PFIL_OUT | PFIL_WAITOK, pfh); local
/freebsd-10.0-release/usr.sbin/uhsoctl/
H A Duhsoctl.c110 struct pidfh *pfh; member in struct:ctx
1290 struct pidfh *pfh; local
1295 pfh = pidfile_open(ctx->pidfile, 0600, &opid);
1296 if (pfh == NULL) {
1303 pidfile_remove(pfh);
1307 pidfile_write(pfh);
1308 ctx->pfh = pfh;
1555 pidfile_remove(ctx.pfh);
/freebsd-10.0-release/sbin/devd/
H A Ddevd.cc117 static struct pidfh *pfh; variable in typeref:struct:pidfh
478 pfh = pidfile_open(_pidfile.c_str(), 0600, &otherpid);
479 if (pfh == NULL) {
490 pidfile_write(pfh);
497 pidfile_close(pfh);
504 pidfile_remove(pfh);
/freebsd-10.0-release/tools/tools/net80211/wesside/wesside/
H A Dwesside.c2400 struct pcap_file_header pfh; local
2402 memset(&pfh, 0, sizeof(pfh));
2403 pfh.magic = TCPDUMP_MAGIC;
2404 pfh.version_major = PCAP_VERSION_MAJOR;
2405 pfh.version_minor = PCAP_VERSION_MINOR;
2406 pfh.thiszone = 0;
2407 pfh.sigfigs = 0;
2408 pfh.snaplen = 65535;
2409 pfh
[all...]
/freebsd-10.0-release/sbin/mount/
H A Dmount.c223 struct pidfh *pfh; local
226 pfh = pidfile_open(_PATH_MOUNTDPID, 0600, &mountdpid);
227 if (pfh != NULL) {
229 pidfile_remove(pfh);
/freebsd-10.0-release/usr.sbin/inetd/
H A Dinetd.c279 struct pidfh *pfh = NULL; variable in typeref:struct:pidfh
471 pfh = pidfile_open(pid_file, 0600, &otherpid);
472 if (pfh == NULL) {
496 if (pfh != NULL && pidfile_write(pfh) == -1) {
735 pidfile_close(pfh);

Completed in 226 milliseconds

12