forked from dbratcher/MediaKhan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkhan.h
73 lines (58 loc) · 1.3 KB
/
khan.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifdef APPLE
#include "Python.h"
#else
#include "Python.h"
#endif
#include "config.h"
#include "params.h"
#include <omp.h>
#include <algorithm>
#include <dirent.h>
#include <dlfcn.h>
#include <errno.h>
#include <fcntl.h>
#include <fstream>
#include <functional>
#include <fuse.h>
#include <fuse/fuse_lowlevel.h>
#include <fuse/fuse_opt.h>
#include <glob.h>
#include <iterator>
#include <libgen.h>
#include <list>
#include <stdlib.h>
/*#include <mach/mach.h>
#include <mach/mach_time.h>*/
#include <map>
#include <memory>
#include <signal.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <vector>
#include <set>
#include <pthread.h>
#include "log.h"
#include "utils.h"
#include "localizations.h"
#include "database.h"
using namespace std;
#define MAX_LEN 4096
#define FUSE_USE_VERSION 26
#define MAX_PATH_LENGTH 2048
static char command[MAX_PATH_LENGTH];
static struct khan_state *khan_data=NULL;
time_t time_now;
char * fpath=NULL;
mode_t khan_mode=S_ISUID | S_ISGID | S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH;
char * temp=NULL;
char * temp2=NULL;
char *args=NULL;
char msg[4096];
int timestamp;
#define PACKAGE_VERSION 2.6