]> code.citadel.org Git - citadel.git/blobdiff - webcit/userlist.c
* Rewrote the HTTP engine and application coupling to run in a worker thread
[citadel.git] / webcit / userlist.c
index d710ca5e91ad7ed89a4d73d570fff94905349553..44e60a056691a284844374bccd57ee5309bb6a41 100644 (file)
@@ -1,13 +1,26 @@
+#include <ctype.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <stdio.h>
+#include <fcntl.h>
 #include <signal.h>
 #include <sys/types.h>
-#include <ctype.h>
+#include <sys/wait.h>
+#include <sys/socket.h>
+#include <sys/time.h>
+#include <limits.h>
+#include <netinet/in.h>
+#include <netdb.h>
 #include <string.h>
-#include <time.h>
+#include <pwd.h>
+#include <errno.h>
+#include <stdarg.h>
+#include <pthread.h>
+#include <signal.h>
 #include "webcit.h"
-#include "child.h"
+
+
+
 
 struct namelist {
        struct namelist *next;
@@ -36,7 +49,7 @@ void userlist(void)
                        strcpy(bptr->name, buf);
                        bio = bptr;
                }
-       printf("HTTP/1.0 200 OK\n");
+       wprintf("HTTP/1.0 200 OK\n");
        output_headers(1);
 
        serv_puts("LIST");
@@ -101,7 +114,7 @@ void showuser(void)
        char buf[256];
        int have_pic;
 
-       printf("HTTP/1.0 200 OK\n");
+       wprintf("HTTP/1.0 200 OK\n");
        output_headers(1);