Check-in [df97fae2bd]
Not logged in

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

Overview
Comment:Patches to get Fossil working on OS/2. Ticket [89bec0d9aa9f30]
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: df97fae2bd9f248be088a57f67fd6c46c635c357
User & Date: drh 2009-08-29 17:01:33.000
References
2009-08-29
17:02 Fixed ticket [89bec0d9aa]: OS/2 support plus 3 other changes artifact: 17cead3566 user: drh
Context
2009-08-29
19:02
Correct SRCDIR in Makefile.w32 for successful build check-in: a0247159ea user: altufaltu tags: trunk
18:47
Better descriptions of raw artifacts on the "artifact" URL. check-in: ee544f4843 user: drh tags: trunk
17:01
Patches to get Fossil working on OS/2. Ticket [89bec0d9aa9f30] check-in: df97fae2bd user: drh tags: trunk
16:45
Add additional hyperlinking of dates and userids. For a "circa" timeline, show the "circa" point in the timeline listing. check-in: b5f4f910b7 user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/cgi.c.
38
39
40
41
42
43
44



45
46
47
48
49
50
51
#  include <netinet/in.h>
#  include <arpa/inet.h>
#  include <sys/times.h>
#  include <sys/time.h>
#  include <sys/wait.h>
#  include <sys/select.h>
#endif



#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "cgi.h"

#if INTERFACE







>
>
>







38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#  include <netinet/in.h>
#  include <arpa/inet.h>
#  include <sys/times.h>
#  include <sys/time.h>
#  include <sys/wait.h>
#  include <sys/select.h>
#endif
#ifdef __EMX__
   typedef int socklen_t;
#endif
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "cgi.h"

#if INTERFACE
Changes to src/main.c.
623
624
625
626
627
628
629





630
631
632
633
634
635
636
  g.httpIn = stdin;
#ifdef __MINGW32__
  /* Set binary mode on windows to avoid undesired translations
  ** between \n and \r\n. */
  setmode(_fileno(g.httpOut), _O_BINARY);
  setmode(_fileno(g.httpIn), _O_BINARY);
#endif





  g.cgiPanic = 1;
  blob_read_from_file(&config, zFile);
  while( blob_line(&config, &line) ){
    if( !blob_token(&line, &key) ) continue;
    if( blob_buffer(&key)[0]=='#' ) continue;
    if( blob_eq(&key, "debug:") && blob_token(&line, &value) ){
      g.fDebug = fopen(blob_str(&value), "a");







>
>
>
>
>







623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
  g.httpIn = stdin;
#ifdef __MINGW32__
  /* Set binary mode on windows to avoid undesired translations
  ** between \n and \r\n. */
  setmode(_fileno(g.httpOut), _O_BINARY);
  setmode(_fileno(g.httpIn), _O_BINARY);
#endif
#ifdef __EMX__
  /* Similar hack for OS/2 */
  setmode(fileno(g.httpOut), O_BINARY);
  setmode(fileno(g.httpIn), O_BINARY);
#endif
  g.cgiPanic = 1;
  blob_read_from_file(&config, zFile);
  while( blob_line(&config, &line) ){
    if( !blob_token(&line, &key) ) continue;
    if( blob_buffer(&key)[0]=='#' ) continue;
    if( blob_eq(&key, "debug:") && blob_token(&line, &value) ){
      g.fDebug = fopen(blob_str(&value), "a");