Overview
| Comment: | Removed dead code |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
fdd60b8c90a508c3cde772205b7335be |
| User & Date: | rkeene on 2014-09-10 07:47:07 |
| Other Links: | manifest | tags |
Context
|
2014-09-10
| ||
| 07:52 | Implemented basic close mechanism check-in: e236f4717a user: rkeene tags: trunk | |
| 07:47 | Removed dead code check-in: fdd60b8c90 user: rkeene tags: trunk | |
| 07:42 | Renamed index generator to "mkfs" check-in: 475a868eae user: rkeene tags: trunk | |
Changes
Modified Makefile from [bfa3d240c3] to [93a7ad3349].
1 2 | CC = gcc PKG_CONFIG = pkg-config | | | 1 2 3 4 5 6 7 8 9 10 | CC = gcc PKG_CONFIG = pkg-config CFLAGS = -Wall $(shell $(PKG_CONFIG) --cflags fuse) $(shell $(PKG_CONFIG) --cflags sqlite3) $(TCL_CFLAGS) LDFLAGS = $(TCL_LDFLAGS) LIBS = $(shell $(PKG_CONFIG) --libs fuse) $(shell $(PKG_CONFIG) --libs sqlite3) $(TCL_LIBS) PREFIX = /usr/local prefix = $(PREFIX) bindir = $(prefix)/bin ifneq ($(TCLKIT_SDK_DIR),) |
| ︙ | ︙ |
Modified appfsd.c from [2342477e32] to [3805f48036].
| ︙ | ︙ | |||
23 24 25 26 27 28 29 | sqlite3 *db; const char *cachedir; time_t boottime; }; struct appfs_thread_data globalThread; | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
sqlite3 *db;
const char *cachedir;
time_t boottime;
};
struct appfs_thread_data globalThread;
typedef enum {
APPFS_PATHTYPE_INVALID,
APPFS_PATHTYPE_FILE,
APPFS_PATHTYPE_DIRECTORY,
APPFS_PATHTYPE_SYMLINK
} appfs_pathtype_t;
struct appfs_children {
struct appfs_children *_next;
int counter;
char name[256];
};
|
| ︙ | ︙ | |||
98 99 100 101 102 103 104 |
struct appfs_sqlite3_query_cb_handle {
struct appfs_children *head;
int argc;
const char *fmt;
};
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
struct appfs_sqlite3_query_cb_handle {
struct appfs_children *head;
int argc;
const char *fmt;
};
static Tcl_Interp *appfs_create_TclInterp(const char *cachedir) {
Tcl_Interp *interp;
int tcl_ret;
interp = Tcl_CreateInterp();
if (interp == NULL) {
fprintf(stderr, "Unable to create Tcl Interpreter. Aborting.\n");
|
| ︙ | ︙ | |||
644 645 646 647 648 649 650 |
appfs_free_list_children(dir_children);
return(0);
}
/* Get information about a path, and optionally list children */
static int appfs_get_path_info(const char *_path, struct appfs_pathinfo *pathinfo, struct appfs_children **children) {
struct appfs_children *dir_children;
| < < | 527 528 529 530 531 532 533 534 535 536 537 538 539 540 |
appfs_free_list_children(dir_children);
return(0);
}
/* Get information about a path, and optionally list children */
static int appfs_get_path_info(const char *_path, struct appfs_pathinfo *pathinfo, struct appfs_children **children) {
struct appfs_children *dir_children;
char *hostname, *packagename, *os_cpuArch, *os, *cpuArch, *version;
char *path, *path_s;
char *package_hash;
char *sql;
int files_count;
int fileinfo_ret, retval;
|
| ︙ | ︙ | |||
737 738 739 740 741 742 743 |
}
os = os_cpuArch;
cpuArch = strchr(os_cpuArch, '-');
if (cpuArch) {
*cpuArch = '\0';
cpuArch++;
| | < < < | < < < | 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 |
}
os = os_cpuArch;
cpuArch = strchr(os_cpuArch, '-');
if (cpuArch) {
*cpuArch = '\0';
cpuArch++;
}
if (version == NULL) {
/* Request for version list for a package on an OS/CPU */
appfs_update_index(hostname);
sql = sqlite3_mprintf("SELECT DISTINCT version FROM packages WHERE hostname = %Q AND package = %Q AND os = %Q and cpuArch = %Q;", hostname, packagename, os, cpuArch);
free(path_s);
|
| ︙ | ︙ |