Lines Matching defs:utmpbuf
1258 static struct futmpx *utmpbuf = NULL;
1266 static size_t idx = 0; /* Current index in the utmpbuf */
1267 static size_t nidx = 0; /* Max entries in this utmpbuf */
1271 if (utmpbuf == NULL)
1272 if ((utmpbuf = malloc(bufsz)) == NULL) {
1279 * We have read all entries in the utmpbuf. Read
1282 if ((nbytes = read(fd, utmpbuf, bufsz)) < bufsz) {
1296 idx = 0; /* reset index within utmpbuf */
1307 * utmpbuf to be passed to the caller.
1309 return (&utmpbuf[idx++]);