Lines Matching refs:newsize
1001 size_t newsize = (*buf ? strlen(*buf) : 0) + CTID_COLUMN_BUFSIZE; in sprint_ctid() local
1002 char *newbuf = safe_malloc(newsize); in sprint_ctid()
1023 (void) snprintf(newbuf, newsize, "%s%*lu ", in sprint_ctid()
1026 (void) snprintf(newbuf, newsize, "%s%*lu* ", in sprint_ctid()
1029 (void) snprintf(newbuf, newsize, "%s%*s ", in sprint_ctid()
1085 size_t newsize; in sprint_desc() local
1112 newsize = (*buf ? strlen(*buf) : 0) + in sprint_desc()
1115 newsize = (*buf ? strlen(*buf) : 0) + DESC_COLUMN_WIDTH + 1; in sprint_desc()
1116 newbuf = safe_malloc(newsize); in sprint_desc()
1117 (void) snprintf(newbuf, newsize, "%s%-*s ", *buf ? *buf : "", in sprint_desc()
1211 size_t newsize; in sprint_state() local
1231 newsize = (*buf ? strlen(*buf) : 0) + MAX_SCF_STATE_STRING_SZ + 2; in sprint_state()
1232 newbuf = safe_malloc(newsize); in sprint_state()
1233 (void) snprintf(newbuf, newsize, "%s%-*s ", *buf ? *buf : "", in sprint_state()
1252 size_t newsize; in sprint_nstate() local
1271 newsize = (*buf ? strlen(*buf) : 0) + MAX_SCF_STATE_STRING_SZ + 1; in sprint_nstate()
1272 newbuf = safe_malloc(newsize); in sprint_nstate()
1273 (void) snprintf(newbuf, newsize, "%s%-*s ", *buf ? *buf : "", in sprint_nstate()
1291 size_t newsize = (*buf ? strlen(*buf) : 0) + 4; in sprint_s() local
1292 char *newbuf = safe_malloc(newsize); in sprint_s()
1308 (void) snprintf(newbuf, newsize, "%s%-*s", *buf ? *buf : "", in sprint_s()
1319 size_t newsize = (*buf ? strlen(*buf) : 0) + 3; in sprint_n() local
1320 char *newbuf = safe_malloc(newsize); in sprint_n()
1334 (void) snprintf(newbuf, newsize, "%s%-*s ", *buf ? *buf : "", in sprint_n()
1345 size_t newsize = (*buf ? strlen(*buf) : 0) + 4; in sprint_sn() local
1346 char *newbuf = safe_malloc(newsize); in sprint_sn()
1367 (void) snprintf(newbuf, newsize, "%s%-*s ", *buf ? *buf : "", in sprint_sn()
1408 size_t newsize = (*buf ? strlen(*buf) : 0) + 6; in sprint_sta() local
1409 char *newbuf = safe_malloc(newsize); in sprint_sta()
1422 (void) snprintf(newbuf, newsize, "%s%-4s ", *buf ? *buf : "", sta); in sprint_sta()
1432 size_t newsize = (*buf ? strlen(*buf) : 0) + 6; in sprint_nsta() local
1433 char *newbuf = safe_malloc(newsize); in sprint_nsta()
1442 (void) snprintf(newbuf, newsize, "%s%-4s ", *buf ? *buf : "", in sprint_nsta()
1445 (void) snprintf(newbuf, newsize, "%s%-4s ", *buf ? *buf : "", in sprint_nsta()
1458 size_t newsize; in sprint_fmri() local
1476 newsize = (*buf ? strlen(*buf) : 0) + strlen(fmri_buf) + 2; in sprint_fmri()
1478 newsize = (*buf ? strlen(*buf) : 0) + FMRI_COLUMN_WIDTH + 2; in sprint_fmri()
1479 newbuf = safe_malloc(newsize); in sprint_fmri()
1480 (void) snprintf(newbuf, newsize, "%s%-*s ", *buf ? *buf : "", in sprint_fmri()
1506 size_t newsize = (*buf ? strlen(*buf) : 0) + COMPONENT_COLUMN_WIDTH + 2; in sprint_scope() local
1507 char *newbuf = safe_malloc(newsize); in sprint_scope()
1514 (void) snprintf(newbuf, newsize, "%s%-*s ", *buf ? *buf : "", in sprint_scope()
1539 size_t newsize; in sprint_service() local
1553 newsize = (*buf ? strlen(*buf) : 0) + strlen(svc_buf) + 2; in sprint_service()
1555 newsize = (*buf ? strlen(*buf) : 0) + in sprint_service()
1557 newbuf = safe_malloc(newsize); in sprint_service()
1558 (void) snprintf(newbuf, newsize, "%s%-*s ", *buf ? *buf : "", in sprint_service()
1583 size_t newsize = (*buf ? strlen(*buf) : 0) + COMPONENT_COLUMN_WIDTH + 2; in sprint_instance() local
1584 char *newbuf = safe_malloc(newsize); in sprint_instance()
1595 (void) snprintf(newbuf, newsize, "%s%-*s ", *buf ? *buf : "", in sprint_instance()
1634 size_t newsize = (*buf ? strlen(*buf) : 0) + STIME_COLUMN_WIDTH + 2; in sprint_stime() local
1635 char *newbuf = safe_malloc(newsize); in sprint_stime()
1650 (void) snprintf(newbuf, newsize, "%s%-*s", *buf ? *buf : "", in sprint_stime()
1672 (void) snprintf(newbuf, newsize, "%s%-*s ", *buf ? *buf : "", in sprint_stime()
1722 size_t newsize; in sprint_zone() local
1735 newsize = (*buf ? strlen(*buf) : 0) + strlen(zonename) + 2; in sprint_zone()
1737 newsize = (*buf ? strlen(*buf) : 0) + ZONE_COLUMN_WIDTH + 2; in sprint_zone()
1739 newbuf = safe_malloc(newsize); in sprint_zone()
1740 (void) snprintf(newbuf, newsize, "%s%-*s ", *buf ? *buf : "", in sprint_zone()