version 1.180, 2014/06/24 02:21:01 |
version 1.181, 2015/01/16 06:40:12 |
|
|
* |
* |
*/ |
*/ |
|
|
#include <sys/param.h> |
#include <sys/param.h> /* roundup MAX */ |
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/poll.h> |
#include <sys/poll.h> |
#include <sys/wait.h> |
#include <sys/wait.h> |
|
|
#include <string.h> |
#include <string.h> |
#include <time.h> |
#include <time.h> |
#include <unistd.h> |
#include <unistd.h> |
|
#include <limits.h> |
#include <vis.h> |
#include <vis.h> |
|
|
#include "xmalloc.h" |
#include "xmalloc.h" |
|
|
off_t i, statbytes; |
off_t i, statbytes; |
size_t amt, nr; |
size_t amt, nr; |
int fd = -1, haderr, indx; |
int fd = -1, haderr, indx; |
char *last, *name, buf[2048], encname[MAXPATHLEN]; |
char *last, *name, buf[2048], encname[PATH_MAX]; |
int len; |
int len; |
|
|
for (indx = 0; indx < argc; ++indx) { |
for (indx = 0; indx < argc; ++indx) { |
|
|
{ |
{ |
DIR *dirp; |
DIR *dirp; |
struct dirent *dp; |
struct dirent *dp; |
char *last, *vect[1], path[MAXPATHLEN]; |
char *last, *vect[1], path[PATH_MAX]; |
|
|
if (!(dirp = opendir(name))) { |
if (!(dirp = opendir(name))) { |
run_err("%s: %s", name, strerror(errno)); |
run_err("%s: %s", name, strerror(errno)); |