#include #include #include #include #include #include #include #include #include static int max_width = 80; static int desired_width = 60; #define TAG " = \"...\"" #define TAG_LEN strlen(TAG) #define MIN(a, b) (((a) < (b))? (a) : (b)) void print_dir(struct xs_handle *h, char *path, int cur_depth, int show_perms) { char **e; char newpath[512], *val; int i; unsigned int num, len; e = xs_directory(h, XBT_NULL, path, &num); if (e == NULL) err(1, "xs_directory (%s)", path); for (i = 0; i