Lines Matching refs:size

173 	void (*f)(char *buf, int size, const procps_status_t *ps);
211 static void func_user(char *buf, int size, const procps_status_t *ps) in func_user() argument
214 safe_strncpy(buf, get_cached_username(ps->uid), size+1); in func_user()
223 if (strlen(user) <= size) in func_user()
224 safe_strncpy(buf, user, size+1); in func_user()
226 sprintf(buf, "%*u", size, (unsigned)ps->uid); in func_user()
230 static void func_group(char *buf, int size, const procps_status_t *ps) in func_group() argument
232 safe_strncpy(buf, get_cached_groupname(ps->gid), size+1); in func_group()
235 static void func_comm(char *buf, int size, const procps_status_t *ps) in func_comm() argument
237 safe_strncpy(buf, ps->comm, size+1); in func_comm()
240 static void func_state(char *buf, int size, const procps_status_t *ps) in func_state() argument
242 safe_strncpy(buf, ps->state, size+1); in func_state()
245 static void func_args(char *buf, int size, const procps_status_t *ps) in func_args() argument
247 read_cmdline(buf, size+1, ps->pid, ps->comm); in func_args()
250 static void func_pid(char *buf, int size, const procps_status_t *ps) in func_pid() argument
252 sprintf(buf, "%*u", size, ps->pid); in func_pid()
255 static void func_ppid(char *buf, int size, const procps_status_t *ps) in func_ppid() argument
257 sprintf(buf, "%*u", size, ps->ppid); in func_ppid()
260 static void func_pgid(char *buf, int size, const procps_status_t *ps) in func_pgid() argument
262 sprintf(buf, "%*u", size, ps->pgid); in func_pgid()
265 static void func_sid(char *buf, int size, const procps_status_t *ps) in func_sid() argument
267 sprintf(buf, "%*u", size, ps->sid); in func_sid()
270 static void put_lu(char *buf, int size, unsigned long u) in put_lu() argument
276 sprintf(buf, "%.*s", size, buf4); in put_lu()
279 static void func_vsz(char *buf, int size, const procps_status_t *ps) in func_vsz() argument
281 put_lu(buf, size, ps->vsz); in func_vsz()
284 static void func_rss(char *buf, int size, const procps_status_t *ps) in func_rss() argument
286 put_lu(buf, size, ps->rss); in func_rss()
289 static void func_tty(char *buf, int size, const procps_status_t *ps) in func_tty() argument
294 snprintf(buf, size+1, "%u,%u", ps->tty_major, ps->tty_minor); in func_tty()
298 static void func_rgroup(char *buf, int size, const procps_status_t *ps) in func_rgroup() argument
300 safe_strncpy(buf, get_cached_groupname(ps->rgid), size+1); in func_rgroup()
302 static void func_ruser(char *buf, int size, const procps_status_t *ps) in func_ruser() argument
304 safe_strncpy(buf, get_cached_username(ps->ruid), size+1); in func_ruser()
306 static void func_nice(char *buf, int size, const procps_status_t *ps) in func_nice() argument
308 sprintf(buf, "%*d", size, ps->niceness); in func_nice()
313 static void format_time(char *buf, int size, unsigned long tt) in format_time() argument
329 snprintf(buf, size+1, "%2u:%02u", (unsigned)tt, ff); in format_time()
335 snprintf(buf, size+1, "%2uh%02u", (unsigned)tt, ff); in format_time()
341 snprintf(buf, size+1, "%2ud%02u", (unsigned)tt, ff); in format_time()
344 snprintf(buf, size+1, "%4lud", tt); in format_time()
346 static void func_etime(char *buf, int size, const procps_status_t *ps) in func_etime() argument
353 format_time(buf, size, mm); in func_etime()
355 static void func_time(char *buf, int size, const procps_status_t *ps) in func_time() argument
361 format_time(buf, size, mm); in func_time()
366 static void func_label(char *buf, int size, const procps_status_t *ps) in func_label() argument
368 safe_strncpy(buf, ps->context ? ps->context : "unknown", size+1); in func_label()