Home
last modified time | relevance | path

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

/freebsd-13.1/sys/contrib/openzfs/cmd/zed/zed.d/
H A Dzed-functions.sh556 time_prev="$(grep -E "^[0-9]+;${tag}\$" "${statefile}" 2>/dev/null \
565 grep -E -v "^[0-9]+;${tag}\$" "${statefile}" 2>/dev/null \
566 > "${statefile}.$$"
567 echo "${time_now};${tag}" >> "${statefile}.$$"
568 mv -f "${statefile}.$$" "${statefile}"
/freebsd-13.1/crypto/openssh/
H A Dsshkey-xmss.c450 char *statefile = NULL, *ostatefile = NULL, *lockfile = NULL; in sshkey_xmss_get_state() local
473 asprintf(&statefile, "%s.state", filename) == -1 || in sshkey_xmss_get_state()
498 statefile, &have_state, printerror)) != 0) { in sshkey_xmss_get_state()
529 free(statefile); in sshkey_xmss_get_state()
575 char *statefile = NULL, *ostatefile = NULL, *nstatefile = NULL; in sshkey_xmss_update_state() local
599 if (asprintf(&statefile, "%s.state", filename) == -1 || in sshkey_xmss_update_state()
650 if (link(statefile, ostatefile)) { in sshkey_xmss_update_state()
652 PRINT("backup state %s to %s", statefile, ostatefile); in sshkey_xmss_update_state()
656 if (rename(nstatefile, statefile) == -1) { in sshkey_xmss_update_state()
658 PRINT("rename %s to %s", nstatefile, statefile); in sshkey_xmss_update_state()
[all …]