_PATH_WTMP
if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND|O_CLOEXEC)) >= 0) {
if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND|O_CLOEXEC)) == -1)
if (fd < 0 && (fd = open(_PATH_WTMP, O_WRONLY|O_APPEND)) == -1)
static char *file = _PATH_WTMP; /* wtmp file */
if (strcmp(_PATH_WTMP, name))
if (access(_PATH_WTMP, 0) != 0 && errno == ENOENT)
fp = file(_PATH_WTMP);