Searched refs:pfh (Results 1 – 3 of 3) sorted by relevance
64 if (pfh == NULL || pfh->pf_fd == -1) in pidfile_verify()112 pfh = malloc(sizeof(*pfh)); in pidfile_open()117 dirlen = snprintf(pfh->pf_dir, sizeof(pfh->pf_dir), in pidfile_open()123 free(pfh); in pidfile_open()136 free(pfh); in pidfile_open()144 free(pfh); in pidfile_open()180 free(pfh); in pidfile_open()216 free(pfh); in pidfile_open()277 free(pfh); in pidfile_close()296 if (funlinkat(pfh->pf_dirfd, pfh->pf_filename, pfh->pf_fd, 0) == -1) { in _pidfile_remove()[all …]
273 struct pidfh *pfh; in test_pidfile_relative() local281 pfh = pidfile_open(path, 0600, NULL); in test_pidfile_relative()282 if (pfh == NULL) in test_pidfile_relative()284 if (pidfile_write(pfh) != 0) in test_pidfile_relative()295 if (pidfile_close(pfh) != 0) in test_pidfile_relative()
422 struct pidfh *pfh; in nfs_commit_shares() local425 pfh = pidfile_open(_PATH_MOUNTDPID, 0600, &mountdpid); in nfs_commit_shares()426 if (pfh != NULL) { in nfs_commit_shares()428 pidfile_remove(pfh); in nfs_commit_shares()