version 1.6, 1998/10/04 01:05:25 |
version 1.7, 2001/02/05 07:55:36 |
|
|
static void printlink __P((char *)); |
static void printlink __P((char *)); |
static void printtime __P((time_t)); |
static void printtime __P((time_t)); |
|
|
|
#define NAME_WIDTH 8 |
|
|
void |
void |
printlong(name, accpath, sb) |
printlong(name, accpath, sb) |
char *name; /* filename to print */ |
char *name; /* filename to print */ |
|
|
|
|
(void)printf("%6u %4qd ", sb->st_ino, sb->st_blocks); |
(void)printf("%6u %4qd ", sb->st_ino, sb->st_blocks); |
(void)strmode(sb->st_mode, modep); |
(void)strmode(sb->st_mode, modep); |
(void)printf("%s %3u %-*s %-*s ", modep, sb->st_nlink, UT_NAMESIZE, |
(void)printf("%s %3u %-*.*s %-*.*s ", modep, sb->st_nlink, |
user_from_uid(sb->st_uid, 0), UT_NAMESIZE, |
NAME_WIDTH, UT_NAMESIZE, user_from_uid(sb->st_uid, 0), |
group_from_gid(sb->st_gid, 0)); |
NAME_WIDTH, UT_NAMESIZE, group_from_gid(sb->st_gid, 0)); |
|
|
if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode)) |
if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode)) |
(void)printf("%3d, %3d ", major(sb->st_rdev), |
(void)printf("%3d, %3d ", major(sb->st_rdev), |