Lines Matching refs:pformat
251 static void printfs(char *pformat, const char *msg) in printfs() argument
253 strcatc(pformat, 's'); in printfs()
254 printf(pformat, msg); in printfs()
259 static void FAST_FUNC print_statfs(char *pformat, const char m,
265 printfs(pformat, filename);
267 strcat(pformat, "llx");
268 printf(pformat, get_f_fsid(statfsbuf));
270 strcat(pformat, "lu");
271 printf(pformat, (unsigned long) statfsbuf->f_namelen);
273 strcat(pformat, "lx");
274 printf(pformat, (unsigned long) statfsbuf->f_type); /* no equiv */
276 printfs(pformat, human_fstype(statfsbuf->f_type));
278 strcat(pformat, "llu");
279 printf(pformat, (unsigned long long) statfsbuf->f_blocks);
281 strcat(pformat, "llu");
282 printf(pformat, (unsigned long long) statfsbuf->f_bfree);
284 strcat(pformat, "llu");
285 printf(pformat, (unsigned long long) statfsbuf->f_bavail);
287 strcat(pformat, "lu");
288 printf(pformat, (unsigned long) statfsbuf->f_bsize);
290 strcat(pformat, "llu");
291 printf(pformat, (unsigned long long) statfsbuf->f_files);
293 strcat(pformat, "llu");
294 printf(pformat, (unsigned long long) statfsbuf->f_ffree);
297 printfs(pformat, scontext);
300 strcatc(pformat, 'c');
301 printf(pformat, m);
307 static void FAST_FUNC print_stat(char *pformat, const char m,
317 printfs(pformat, filename);
319 strcatc(pformat, 's');
327 printf(pformat, filename);
330 strcat(pformat, "llu");
331 printf(pformat, (unsigned long long) statbuf->st_dev);
333 strcat(pformat, "llx");
334 printf(pformat, (unsigned long long) statbuf->st_dev);
336 strcat(pformat, "llu");
337 printf(pformat, (unsigned long long) statbuf->st_ino);
339 strcat(pformat, "lo");
340 …printf(pformat, (unsigned long) (statbuf->st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRW…
343 printfs(pformat, bb_mode_string(modestr, statbuf->st_mode));
345 strcat(pformat, "lx");
346 printf(pformat, (unsigned long) statbuf->st_mode);
348 printfs(pformat, file_type(statbuf));
350 strcat(pformat, "lu");
351 printf(pformat, (unsigned long) statbuf->st_nlink);
353 strcat(pformat, "lu");
354 printf(pformat, (unsigned long) statbuf->st_uid);
357 printfs(pformat, (pw_ent != NULL) ? pw_ent->pw_name : "UNKNOWN");
359 strcat(pformat, "lu");
360 printf(pformat, (unsigned long) statbuf->st_gid);
363 printfs(pformat, (gw_ent != NULL) ? gw_ent->gr_name : "UNKNOWN");
365 strcat(pformat, "lx");
366 printf(pformat, (unsigned long) major(statbuf->st_rdev));
368 strcat(pformat, "lx");
369 printf(pformat, (unsigned long) minor(statbuf->st_rdev));
371 strcat(pformat, "llu");
372 printf(pformat, (unsigned long long) statbuf->st_size);
374 strcat(pformat, "lu");
375 printf(pformat, (unsigned long) 512); //ST_NBLOCKSIZE
377 strcat(pformat, "llu");
378 printf(pformat, (unsigned long long) statbuf->st_blocks);
380 strcat(pformat, "lu");
381 printf(pformat, (unsigned long) statbuf->st_blksize);
383 printfs(pformat, human_time(&statbuf->st_atim));
385 strcat(pformat, TYPE_SIGNED(time_t) ? "ld" : "lu");
388 printf(pformat, (long) statbuf->st_atime);
390 printfs(pformat, human_time(&statbuf->st_mtim));
392 strcat(pformat, TYPE_SIGNED(time_t) ? "ld" : "lu");
393 printf(pformat, (long) statbuf->st_mtime);
395 printfs(pformat, human_time(&statbuf->st_ctim));
397 strcat(pformat, TYPE_SIGNED(time_t) ? "ld" : "lu");
398 printf(pformat, (long) statbuf->st_ctime);
401 printfs(pformat, scontext);
404 strcatc(pformat, 'c');
405 printf(pformat, m);