r = write_dev_tty(); if (r < 0) {
ksft_print_msg("failed to write to /dev/tty: %s\n",
strerror(-r)); goto out;
}
r = stat(tty, &st2); if (r < 0) {
ksft_print_msg("stat failed on tty path '%s': %m\n", tty); goto out;
}
/* We wrote to the terminal so timestamps should have been updated */ if (st1.st_atim.tv_sec == st2.st_atim.tv_sec &&
st1.st_mtim.tv_sec == st2.st_mtim.tv_sec) {
ksft_print_msg("tty timestamps not updated\n"); goto out;
}
ksft_print_msg( "timestamps of terminal '%s' updated after write to /dev/tty\n", tty);
result = KSFT_PASS;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.