version 1.10, 2003/06/03 02:56:08 |
version 1.11, 2003/06/26 07:27:29 |
|
|
#include <tzfile.h> |
#include <tzfile.h> |
#include <unistd.h> |
#include <unistd.h> |
#include <utmp.h> |
#include <utmp.h> |
|
#include <pwd.h> |
|
#include <grp.h> |
|
|
/* Derived from the print routines in the ls(1) source code. */ |
/* Derived from the print routines in the ls(1) source code. */ |
|
|
|
|
#define NAME_WIDTH 8 |
#define NAME_WIDTH 8 |
|
|
void |
void |
printlong(name, accpath, sb) |
printlong(char *name, char *accpath, struct stat *sb) |
char *name; /* filename to print */ |
|
char *accpath; /* current valid path to filename */ |
|
struct stat *sb; /* stat buffer */ |
|
{ |
{ |
char modep[15], *user_from_uid(), *group_from_gid(); |
char modep[15]; |
|
|
(void)printf("%6u %4lld ", sb->st_ino, (long long)sb->st_blocks); |
(void)printf("%6u %4lld ", sb->st_ino, (long long)sb->st_blocks); |
(void)strmode(sb->st_mode, modep); |
(void)strmode(sb->st_mode, modep); |
|
|
} |
} |
|
|
static void |
static void |
printtime(ftime) |
printtime(time_t ftime) |
time_t ftime; |
|
{ |
{ |
int i; |
int i; |
char *longstring; |
char *longstring; |
|
|
} |
} |
|
|
static void |
static void |
printlink(name) |
printlink(char *name) |
char *name; |
|
{ |
{ |
int lnklen; |
int lnklen; |
char path[MAXPATHLEN]; |
char path[MAXPATHLEN]; |