Lines Matching +refs:val +refs:current

241 	double val = secs;
244 if (val >= 24*60*60) {
245 val /= 86400;
247 } else if (val >= 60*60) {
248 val /= 60*60;
250 } else if (val >= 60) {
251 val /= 60;
256 if (snprintf(buf, bufsiz, "%.2f %s%s", val, unit,
257 val >= 2 ? "s" : "") >= bufsiz)
531 char **current;
538 current = *thisargv;
539 *current = NULL;
546 if (*current != NULL) {
548 current++;
549 if (*thisargv + argvlen == current) {
556 current = realloc(*thisargv,
558 if (current == NULL) {
562 *thisargv = current;
563 current += argvlen;
566 *current = NULL;
585 if (*current == NULL) {
586 *current = ibuf;
599 current = realloc(*thisargv, sizeof (char *) * (argvlen + 1));
600 if (current == NULL) {
604 *thisargv = current;
605 current[argvlen] = NULL;
1215 /* Use extv[0] as the "current working pointer". */
1874 print_lifetimes(FILE *file, time_t wallclock, struct sadb_lifetime *current,
1886 if (current != NULL &&
1887 current->sadb_lifetime_len != SADB_8TO64(sizeof (*current))) {
1890 SADB_64TO8(current->sadb_lifetime_len));
1915 if (current != NULL) {
1916 /* Express values as current values. */
1923 current->sadb_lifetime_bytes,
1924 bytecnt2out(current->sadb_lifetime_bytes, byte_str,
1926 current->sadb_lifetime_allocations);
1927 printsatime(file, current->sadb_lifetime_addtime,
1930 if (current->sadb_lifetime_usetime != 0) {
1931 printsatime(file, current->sadb_lifetime_usetime,
1963 if (current != NULL) {
1969 current->sadb_lifetime_bytes) ?
1971 current->sadb_lifetime_bytes : 0,
1973 current->sadb_lifetime_bytes) ?
1975 current->sadb_lifetime_bytes, byte_str,
1979 current->sadb_lifetime_usetime != 0)) {
1984 current->sadb_lifetime_addtime +
1992 current->sadb_lifetime_usetime != 0) {
1994 current->sadb_lifetime_usetime +
2043 if (current != NULL) {
2049 current->sadb_lifetime_bytes) ?
2051 current->sadb_lifetime_bytes : 0,
2053 current->sadb_lifetime_bytes) ?
2055 current->sadb_lifetime_bytes, byte_str,
2059 current->sadb_lifetime_usetime != 0)) {
2064 current->sadb_lifetime_addtime +
2072 current->sadb_lifetime_usetime != 0) {
2074 current->sadb_lifetime_usetime +
2644 uint64_t *current;
2655 current = (uint64_t *)(samsg + 1);
2656 while (current - buffer < samsg->sadb_msg_len) {
2659 ext = (struct sadb_ext *)current;
2664 "SA: "), (struct sadb_sa *)current);
2671 currentlt = (struct sadb_lifetime *)current;
2674 hardlt = (struct sadb_lifetime *)current;
2677 softlt = (struct sadb_lifetime *)current;
2680 idlelt = (struct sadb_lifetime *)current;
2685 (struct sadb_address *)current, ignore_nss);
2689 (struct sadb_address *)current, ignore_nss);
2693 (struct sadb_address *)current, ignore_nss);
2697 (struct sadb_address *)current, ignore_nss);
2701 "AKY: "), (struct sadb_key *)current);
2705 "EKY: "), (struct sadb_key *)current);
2709 (struct sadb_ident *)current);
2713 (struct sadb_ident *)current);
2717 (struct sadb_sens *)current, ignore_nss);
2721 (struct sadb_prop *)current);
2725 (struct sadb_supported *)current);
2729 (struct sadb_supported *)current);
2733 (struct sadb_spirange *)current);
2737 (struct sadb_prop *)current);
2741 (struct sadb_x_kmc *)current);
2745 (struct sadb_address *)current, ignore_nss);
2749 (struct sadb_address *)current, ignore_nss);
2753 (struct sadb_x_pair *)current);
2757 (struct sadb_sens *)current, ignore_nss);
2761 "RPL: "), (sadb_x_replay_ctr_t *)current);
2773 current += (lenbytes == 0) ?
2784 if (current - buffer != samsg->sadb_msg_len) {
3018 uint64_t *current;
3038 current = (uint64_t *)(samsg + 1);
3039 while (current - buffer < samsg->sadb_msg_len) {
3042 ext = (struct sadb_ext *)current;
3178 current += ext->sadb_ext_len;