ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/usr.bin/find/ls.c
(Generate patch)

Comparing trunk/usr.bin/find/ls.c (file contents):
Revision 11544 by laffer1, Fri Dec 20 23:32:25 2013 UTC vs.
Revision 11545 by laffer1, Sat Jul 7 20:40:42 2018 UTC

# Line 1 | Line 1
1 + /* $MidnightBSD$ */
2   /*
3   * Copyright (c) 1989, 1993
4   *      The Regents of the University of California.  All rights reserved.
# Line 34 | Line 35 | static char sccsid[] = "@(#)ls.c       8.1 (Berkeley) 6/6/93
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>
# Line 63 | Line 64 | printlong(char *name, char *accpath, struct stat *sb)
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines