Lines Matching defs:ut
60 static struct utmpx ut;
97 (void)memset(&ut, 0, sizeof(ut));
100 (void)fseeko(fp, (off_t)sizeof(ut), SEEK_SET);
108 (void)memset(&ut, 0, sizeof(ut));
139 (void)memset(&ut, 0, sizeof(ut));
140 ut.ut_type = SIGNATURE;
141 (void)memcpy(ut.ut_user, vers, sizeof(vers));
142 if (fwrite(&ut, sizeof(ut), 1, fp) != 1)
146 if (fread(&ut, sizeof(ut), 1, fp) != 1)
148 if (memcmp(ut.ut_user, vers, 5) != 0 ||
149 ut.ut_type != SIGNATURE)
152 version = ut.ut_user[6] - '0';
155 if (fread(&ut, sizeof(ut), 1, fp) != 1)
158 old2new(&ut);
160 return &ut;
164 (void)memset(&ut, 0, sizeof(ut));
179 if (ut.ut_type == EMPTY)
188 if (ut.ut_type == utx->ut_type)
189 return &ut;
195 switch (ut.ut_type) {
200 if (memcmp(ut.ut_id, utx->ut_id,
201 sizeof(ut.ut_id)) == 0)
202 return &ut;
223 switch (ut.ut_type) {
228 if (strncmp(ut.ut_line, utx->ut_line,
229 sizeof(ut.ut_line)) == 0)
230 return &ut;
283 if (fseeko(fp, -(off_t)sizeof(ut), SEEK_CUR) == -1)
295 u = memcpy(&ut, &temp, sizeof(ut));
328 return memcpy(&ut, utx, sizeof(ut));
351 (void)memset(&ut, 0, sizeof(ut));
352 ut.ut_type = SIGNATURE;
353 (void)memcpy(ut.ut_user, vers, sizeof(vers));
354 if (write(fd, &ut, sizeof(ut)) == -1)