Overview
| Comment: | Renamed fuse daemon as "appfsd" |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
0e19d8e3c2d71b90fa88c60484319050 |
| User & Date: | rkeene on 2014-09-10 07:22:18 |
| Other Links: | manifest | tags |
Context
|
2014-09-10
| ||
| 07:24 | Finished renames check-in: 6958ab0b94 user: rkeene tags: trunk | |
| 07:22 | Renamed fuse daemon as "appfsd" check-in: 0e19d8e3c2 user: rkeene tags: trunk | |
| 04:02 | Reorganized check-in: 1f01cf90b5 user: rkeene tags: trunk | |
Changes
Modified Makefile from [51fd163395] to [66bca1d85f].
| ︙ | ︙ | |||
13 14 15 16 17 18 19 |
export TCLKIT_SDK_DIR
else
TCLCONFIG_SH_PATH = $(shell echo 'puts [::tcl::pkgconfig get libdir,install]' | tclsh)/tclConfig.sh
endif
TCL_CFLAGS = $(shell . $(TCLCONFIG_SH_PATH); echo "$${TCL_INCLUDE_SPEC}")
TCL_LIBS = $(shell . $(TCLCONFIG_SH_PATH); echo "$${TCL_LIB_SPEC}")
| | | | < < | < | < < < | | | | | < < < | < | | 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 |
export TCLKIT_SDK_DIR
else
TCLCONFIG_SH_PATH = $(shell echo 'puts [::tcl::pkgconfig get libdir,install]' | tclsh)/tclConfig.sh
endif
TCL_CFLAGS = $(shell . $(TCLCONFIG_SH_PATH); echo "$${TCL_INCLUDE_SPEC}")
TCL_LIBS = $(shell . $(TCLCONFIG_SH_PATH); echo "$${TCL_LIB_SPEC}")
all: appfsd
appfsd: appfsd.o
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o appfsd appfsd.o $(LIBS)
appfsd.o: appfsd.c appfsd.tcl.h
$(CC) $(CPPFLAGS) $(CFLAGS) -o appfsd.o -c appfsd.c
appfsd.tcl.h: appfsd.tcl stringify.tcl
./stringify.tcl appfsd.tcl > appfsd.tcl.h.new
mv appfsd.tcl.h.new appfsd.tcl.h
install: appfsd
cp appfsd $(bindir)
clean:
rm -f appfsd appfsd.o
rm -f appfsd.tcl.h
distclean: clean
.PHONY: all test clean distclean install
|
Renamed and modified appfs.c [c11522a03a] to appfsd.c [2342477e32].
| ︙ | ︙ | |||
195 196 197 198 199 200 201 |
if (tcl_ret != TCL_OK) {
fprintf(stderr, "Unable to initialize Tcl. Aborting.\n");
return(NULL);
}
tcl_ret = Tcl_Eval(interp, ""
| | | 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
if (tcl_ret != TCL_OK) {
fprintf(stderr, "Unable to initialize Tcl. Aborting.\n");
return(NULL);
}
tcl_ret = Tcl_Eval(interp, ""
#include "appfsd.tcl.h"
"");
if (tcl_ret != TCL_OK) {
fprintf(stderr, "Unable to initialize Tcl AppFS script. Aborting.\n");
fprintf(stderr, "Tcl Error is: %s\n", Tcl_GetStringResult(interp));
return(NULL);
}
|
| ︙ | ︙ | |||
920 921 922 923 924 925 926 | } read_ret = read(fi->fh, buf, size); return(read_ret); } | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 |
}
read_ret = read(fi->fh, buf, size);
return(read_ret);
}
static struct fuse_operations appfs_oper = {
.getattr = appfs_fuse_getattr,
.readdir = appfs_fuse_readdir,
.open = appfs_fuse_open,
.read = appfs_fuse_read
};
int main(int argc, char **argv) {
const char *cachedir = APPFS_CACHEDIR;
char dbfilename[1024];
int pthread_ret, snprintf_ret, sqlite_ret;
globalThread.cachedir = cachedir;
|
| ︙ | ︙ | |||
1024 1025 1026 1027 1028 1029 1030 |
sqlite_ret = sqlite3_open(dbfilename, &globalThread.db);
if (sqlite_ret != SQLITE_OK) {
fprintf(stderr, "Unable to open database: %s\n", dbfilename);
return(1);
}
| < < < < | 956 957 958 959 960 961 962 963 964 965 |
sqlite_ret = sqlite3_open(dbfilename, &globalThread.db);
if (sqlite_ret != SQLITE_OK) {
fprintf(stderr, "Unable to open database: %s\n", dbfilename);
return(1);
}
return(fuse_main(argc, argv, &appfs_oper, NULL));
}
|
Name change from appfs.tcl to appfsd.tcl.
| ︙ | ︙ |