1 |
+ |
/* $MidnightBSD$ */ |
2 |
|
/* |
3 |
|
* Copyright (c) 1989, 1993 |
4 |
|
* The Regents of the University of California. All rights reserved. |
35 |
|
#endif /* not lint */ |
36 |
|
|
37 |
|
#include <sys/cdefs.h> |
38 |
< |
__MBSDID("$MidnightBSD$"); |
38 |
> |
__FBSDID("$FreeBSD: stable/10/usr.bin/find/ls.c 241015 2012-09-27 23:31:19Z mdf $"); |
39 |
|
|
40 |
|
#include <sys/param.h> |
41 |
|
#include <sys/stat.h> |
64 |
|
{ |
65 |
|
char modep[15]; |
66 |
|
|
67 |
< |
(void)printf("%6lu %8"PRId64" ", (u_long) sb->st_ino, sb->st_blocks); |
67 |
> |
(void)printf("%6ju %8"PRId64" ", (uintmax_t)sb->st_ino, sb->st_blocks); |
68 |
|
(void)strmode(sb->st_mode, modep); |
69 |
|
(void)printf("%s %3u %-*s %-*s ", modep, sb->st_nlink, MAXLOGNAME - 1, |
70 |
|
user_from_uid(sb->st_uid, 0), MAXLOGNAME - 1, |
71 |
|
group_from_gid(sb->st_gid, 0)); |
72 |
|
|
73 |
|
if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode)) |
74 |
< |
(void)printf("%3d, %3d ", major(sb->st_rdev), |
74 |
< |
minor(sb->st_rdev)); |
74 |
> |
(void)printf("%#8jx ", (uintmax_t)sb->st_rdev); |
75 |
|
else |
76 |
|
(void)printf("%8"PRId64" ", sb->st_size); |
77 |
|
printtime(sb->st_mtime); |