dumptree.c (87866) | dumptree.c (88282) |
---|---|
1#include <sys/param.h> 2#include <sys/time.h> 3#include <stdio.h> 4#include <string.h> 5#include <unistd.h> 6#include <stdlib.h> | 1#include <sys/param.h> 2#include <sys/time.h> 3#include <stdio.h> 4#include <string.h> 5#include <unistd.h> 6#include <stdlib.h> |
7#ifdef APPLE 8#include <err.h> 9#include <sysexits.h> 10#endif |
|
7 8#include <netsmb/smb_lib.h> 9#include <netsmb/smb_conn.h> 10 11#include "common.h" 12 13#define DEFBIT(bit) {bit, #bit} 14 --- 82 unchanged lines hidden (view full) --- 97 98int 99cmd_dumptree(int argc, char *argv[]) 100{ 101 void *p, *op; 102 int *itype; 103 104 printf("SMB connections:\n"); | 11 12#include <netsmb/smb_lib.h> 13#include <netsmb/smb_conn.h> 14 15#include "common.h" 16 17#define DEFBIT(bit) {bit, #bit} 18 --- 82 unchanged lines hidden (view full) --- 101 102int 103cmd_dumptree(int argc, char *argv[]) 104{ 105 void *p, *op; 106 int *itype; 107 108 printf("SMB connections:\n"); |
109#ifdef APPLE 110 if (loadsmbvfs()) 111 errx(EX_OSERR, "SMB filesystem is not available"); 112#endif |
|
105 p = smb_dumptree(); 106 if (p == NULL) { 107 printf("None\n"); 108 return 0; 109 } 110 op = p; 111 for (;;) { 112 itype = p; --- 22 unchanged lines hidden --- | 113 p = smb_dumptree(); 114 if (p == NULL) { 115 printf("None\n"); 116 return 0; 117 } 118 op = p; 119 for (;;) { 120 itype = p; --- 22 unchanged lines hidden --- |