Overview
| Comment: | Converted global variables to not be part of a struct |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | tcl-ops |
| Files: | files | file ages | folders |
| SHA1: |
f277407cbc75e377b0f8e19b48d981f1 |
| User & Date: | rkeene on 2014-11-07 07:20:36 |
| Other Links: | branch diff | manifest | tags |
Context
|
2014-11-07
| ||
| 08:48 | Added basic "getchildren" implementation in Tcl check-in: ee13ee5aa4 user: rkeene tags: tcl-ops | |
| 07:20 | Converted global variables to not be part of a struct check-in: f277407cbc user: rkeene tags: tcl-ops | |
| 07:17 | Updated Makefile check-in: a6cb122222 user: rkeene tags: tcl-ops | |
Changes
Modified appfsd.c from [2188b35dbc] to [a9240a597b].
| ︙ | |||
34 35 36 37 38 39 40 | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | - + + - - - + + - - - - - - - | /* * Thread Specific Data (TSD) for Tcl Interpreter for the current thread */ static pthread_key_t interpKey; /* |
| ︙ | |||
96 97 98 99 100 101 102 | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | - |
};
/*
* Create a new Tcl interpreter and completely initialize it
*/
static Tcl_Interp *appfs_create_TclInterp(void) {
Tcl_Interp *interp;
|
| ︙ | |||
158 159 160 161 162 163 164 | 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | - + | return(NULL); } /* * Set global variables from C to Tcl */ |
| ︙ | |||
531 532 533 534 535 536 537 | 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 | - + |
case APPFS_PATHTYPE_INVALID:
res = -EIO;
break;
}
if (pathinfo.packaged) {
|
| ︙ | |||
732 733 734 735 736 737 738 | 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 | - + |
*/
static int appfs_fuse_opt_cb(void *data, const char *arg, int key, struct fuse_args *outargs) {
static seen_cachedir = 0;
if (key == FUSE_OPT_KEY_NONOPT && seen_cachedir == 0) {
seen_cachedir = 1;
|
| ︙ | |||
759 760 761 762 763 764 765 | 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 | - + - - + | } argc--; argv++; /* * Set global variables, these should be configuration options. */ |
| ︙ | |||
795 796 797 798 799 800 801 | 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 | - + |
/*
* Manually specify cache directory, without FUSE callback
* This option only works when not using FUSE, since we
* do not process it with FUSEs option processing.
*/
if (argc >= 2) {
if (strcmp(argv[0], "--cachedir") == 0) {
|
| ︙ |