Lines Matching refs:entry
59 struct entry { struct
70 struct entry *entry; variable
93 entry = malloc(sizeof (struct entry) * total_entries); in main()
130 free(entry); in main()
133 free(entry); in main()
184 free(entry); in main()
200 struct entry *tmp;
203 tmp = realloc((struct entry *)entry, sizeof (struct entry)
208 entry = tmp;
235 entry[curentry].machine = host;
237 entry[curentry].boottime.tv_sec = st.boottime.tv_sec;
238 entry[curentry].boottime.tv_usec =
240 entry[curentry].curtime = st.curtime.tv_sec;
241 memcpy(entry[curentry].avenrun, st.avenrun, AVENSIZE);
243 entry[curentry].boottime.tv_sec =
245 entry[curentry].boottime.tv_usec =
247 entry[curentry].curtime = sw_var.curtime.tv_sec;
248 memcpy(entry[curentry].avenrun, sw_var.avenrun,
315 register struct entry *entryp, *lim;
329 struct entry *tmp;
332 tmp = realloc((struct entry *)entry, sizeof (struct entry)
337 entry = tmp;
342 lim = entry + curentry;
343 for (entryp = entry; entryp < lim; entryp++)
355 entry[curentry].nconf = netconfigdup(nconf);
356 entry[curentry].addr = netbufdup(&taddr->addr);
384 entry[curentry].boottime.tv_sec = st->boottime.tv_sec;
385 entry[curentry].boottime.tv_usec =
387 entry[curentry].curtime = st->curtime.tv_sec;
388 memcpy(entry[curentry].avenrun, st->avenrun, AVENSIZE);
390 entry[curentry].boottime.tv_sec = sv->boottime.tv_sec;
391 entry[curentry].boottime.tv_usec =
393 entry[curentry].curtime = sv->curtime.tv_sec;
394 memcpy(entry[curentry].avenrun, sv->avenrun, AVENSIZE);
407 register struct entry *ep; in printsinglehosts()
411 qsort(entry, curentry, sizeof (struct entry), machinecmp); in printsinglehosts()
413 qsort(entry, curentry, sizeof (struct entry), loadcmp); in printsinglehosts()
415 qsort(entry, curentry, sizeof (struct entry), uptimecmp); in printsinglehosts()
417 ep = &entry[i]; in printsinglehosts()
430 register struct entry *ep; in printnames()
434 ep = &entry[i]; in printnames()
454 machinecmp(struct entry *a, struct entry *b) in machinecmp()
460 uptimecmp(struct entry *a, struct entry *b) in uptimecmp()
469 loadcmp(struct entry *a, struct entry *b) in loadcmp()
539 free(entry); in usage()