Documentation Source Text

Check-in [2ad7f8fef4]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:To althttpd.c: Add "signal.h" and a mimetype table entry for "svg" files.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:2ad7f8fef4b8ea024d17bf83365aaf1021a326dcbe16e7e624a1fccdc6ccfdd6
User & Date: drh 2018-02-07 16:50:45
Context
2018-02-12
19:31
Enhancements to the "When To Use SQLite" document. check-in: a54eb3903e user: drh tags: trunk
2018-02-07
16:50
To althttpd.c: Add "signal.h" and a mimetype table entry for "svg" files. check-in: 2ad7f8fef4 user: drh tags: trunk
2018-02-06
13:20
Update search to the latest version of wapp. check-in: 7fdd8a667f user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to misc/althttpd.c.

185
186
187
188
189
190
191

192
193
194
195
196
197
198
...
940
941
942
943
944
945
946

947
948
949
950
951
952
953
#include <arpa/inet.h>
#include <stdarg.h>
#include <time.h>
#include <sys/times.h>
#include <netdb.h>
#include <errno.h>
#include <sys/resource.h>

#ifdef linux
#include <sys/sendfile.h>
#endif
#include <assert.h>

/*
** Configure the server by setting the following macros and recompiling.
................................................................................
    { "spl",        3, "application/x-futuresplash"        },
    { "src",        3, "application/x-wais-source"         },
    { "step",       4, "application/STEP"                  },
    { "stl",        3, "application/SLA"                   },
    { "stp",        3, "application/STEP"                  },
    { "sv4cpio",    7, "application/x-sv4cpio"             },
    { "sv4crc",     6, "application/x-sv4crc"              },

    { "swf",        3, "application/x-shockwave-flash"     },
    { "t",          1, "application/x-troff"               },
    { "tar",        3, "application/x-tar"                 },
    { "tcl",        3, "application/x-tcl"                 },
    { "tex",        3, "application/x-tex"                 },
    { "texi",       4, "application/x-texinfo"             },
    { "texinfo",    7, "application/x-texinfo"             },







>







 







>







185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
...
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
#include <arpa/inet.h>
#include <stdarg.h>
#include <time.h>
#include <sys/times.h>
#include <netdb.h>
#include <errno.h>
#include <sys/resource.h>
#include <signal.h>
#ifdef linux
#include <sys/sendfile.h>
#endif
#include <assert.h>

/*
** Configure the server by setting the following macros and recompiling.
................................................................................
    { "spl",        3, "application/x-futuresplash"        },
    { "src",        3, "application/x-wais-source"         },
    { "step",       4, "application/STEP"                  },
    { "stl",        3, "application/SLA"                   },
    { "stp",        3, "application/STEP"                  },
    { "sv4cpio",    7, "application/x-sv4cpio"             },
    { "sv4crc",     6, "application/x-sv4crc"              },
    { "svg",        3, "image/svg+xml"                     },
    { "swf",        3, "application/x-shockwave-flash"     },
    { "t",          1, "application/x-troff"               },
    { "tar",        3, "application/x-tar"                 },
    { "tcl",        3, "application/x-tcl"                 },
    { "tex",        3, "application/x-tex"                 },
    { "texi",       4, "application/x-texinfo"             },
    { "texinfo",    7, "application/x-texinfo"             },