Home
last modified time | relevance | path

Searched refs:pf_fd (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/openbsm/compat/
H A Dpidfile.h45 int pf_fd; member
58 if (pfh == NULL || pfh->pf_fd == -1) in pidfile_verify()
63 if (fstat(pfh->pf_fd, &sb) == -1) in pidfile_verify()
178 pfh->pf_fd = fd; in pidfile_open()
202 fd = pfh->pf_fd; in pidfile_write()
236 if (close(pfh->pf_fd) == -1) in pidfile_close()
259 if (close(pfh->pf_fd) == -1) { in _pidfile_remove()
266 pfh->pf_fd = -1; in _pidfile_remove()
286 if (pfh == NULL || pfh->pf_fd == -1) {
290 return (pfh->pf_fd);
/freebsd/lib/libutil/
H A Dpidfile.c49 int pf_fd; member
63 if (pfh == NULL || pfh->pf_fd == -1) in pidfile_verify()
68 if (fstat(pfh->pf_fd, &sb) == -1) in pidfile_verify()
213 pfh->pf_fd = fd; in pidfile_open()
246 fd = pfh->pf_fd; in pidfile_write()
280 if (close(pfh->pf_fd) == -1) in pidfile_close()
304 if (funlinkat(pfh->pf_dirfd, pfh->pf_filename, pfh->pf_fd, 0) == -1) { in _pidfile_remove()
309 if (close(pfh->pf_fd) == -1 && error == 0) in _pidfile_remove()
316 pfh->pf_fd = -1; in _pidfile_remove()
335 if (pfh == NULL || pfh->pf_fd == -1) { in pidfile_fileno()
[all …]