]> code.citadel.org Git - citadel.git/commitdiff
* netconfigs
authorArt Cancro <ajc@citadel.org>
Sun, 30 Jul 2000 19:50:29 +0000 (19:50 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 30 Jul 2000 19:50:29 +0000 (19:50 +0000)
citadel/sysdep.c
citadel/techdoc/netconfigs.txt [new file with mode: 0644]

index 579b847279cd99341c70fb7ae11836d3ea7dc635..e98e6cf7e24ef794e2c852c0bf1111a775b4c48e 100644 (file)
@@ -95,10 +95,10 @@ void lprintf(int loglevel, const char *format, ...) {
        if (loglevel <= verbosity) { 
                fprintf(stderr, "%s", buf);
                fflush(stderr);
-               }
+       }
 
        PerformLogHooks(loglevel, buf);
-       }   
+}   
 
 
 
@@ -121,7 +121,7 @@ void *tracked_malloc(size_t tsize, char *tfile, int tline) {
        hptr->h_ptr = ptr;
        heap = hptr;
        return ptr;
-       }
+}
 
 char *tracked_strdup(const char *orig, char *tfile, int tline) {
        char *s;
@@ -140,19 +140,19 @@ void tracked_free(void *ptr) {
                hptr = heap->next;
                free(heap);
                heap = hptr;
-               }
+       }
        else {
                for (hptr=heap; hptr->next!=NULL; hptr=hptr->next) {
                        if (hptr->next->h_ptr == ptr) {
                                freeme = hptr->next;
                                hptr->next = hptr->next->next;
                                free(freeme);
-                               }
                        }
                }
+       }
 
        free(ptr);
-       }
+}
 
 void *tracked_realloc(void *ptr, size_t size) {
        void *newptr;
@@ -162,10 +162,10 @@ void *tracked_realloc(void *ptr, size_t size) {
 
        for (hptr=heap; hptr!=NULL; hptr=hptr->next) {
                if (hptr->h_ptr == ptr) hptr->h_ptr = newptr;
-               }
+       }
 
        return newptr;
-       }
+}
 
 
 void dump_tracked() {
@@ -175,13 +175,13 @@ void dump_tracked() {
        for (hptr=heap; hptr!=NULL; hptr=hptr->next) {
                cprintf("%20s %5d\n",
                        hptr->h_file, hptr->h_line);
-               }
+       }
 #ifdef __GNUC__
         malloc_stats();
 #endif
 
        cprintf("000\n");
-       }
+}
 #endif
 
 
@@ -983,7 +983,7 @@ int main(int argc, char **argv)
 
 
 /*
- * Bind a thread to a context.
+ * Bind a thread to a context.  (It's inline merely to speed things up.)
  */
 inline void become_session(struct CitContext *which_con) {
        pthread_setspecific(MyConKey, (void *)which_con );
@@ -1018,7 +1018,7 @@ void worker_thread(void) {
                 * calling select() and then they'd all wake up at once.  We
                 * solve this problem by putting the select() in a critical
                 * section, so only one thread has the opportunity to wake
-                * up.  If we wake up on the master socket, create a new
+                * up.  If we wake up on a master socket, create a new
                 * session context; otherwise, just bind the thread to the
                 * context we want and go on our merry way.
                 */
diff --git a/citadel/techdoc/netconfigs.txt b/citadel/techdoc/netconfigs.txt
new file mode 100644 (file)
index 0000000..ba7c198
--- /dev/null
@@ -0,0 +1,25 @@
+           Description of the files in the "netconfigs" directory
+
+ These files contain a set of network configurations for a room.  They are
+stored in the directory $BBSDIR/netconfigs and are named according to each
+room's internal ID number.  When a room is deleted, its network configuration
+file is deleted as well.
+  
+ The configuration file contains one or more lines of text, each line
+containing a configuration option.  These lines may specify message pointers,
+room sharing instructions, mailing list recipients, etc.  Fields are separated
+by the vertical bar character ("|") and there will always be at least one
+field on each line.
+  
+ INSTRUCTION:  lastsent
+ SYNTAX:       lastsent|0000000
+ DESCRIPTION:
+    Defines the *local* message number of the last message in this room which
+we have performed outbound network processing on.  Any batch job which sends
+out messages should do stuff.
+ INSTRUCTION:  foo
+ SYNTAX:       lastsent|0000000
+ DESCRIPTION: