Documentation Source Text

Check-in [02b0d4d406]
Login

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

Overview
Comment:Fix althttpd.c so that it builds on non-linux machines.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 02b0d4d406f585bd685670b18a3147b026de05af0f56ca6820aff288436a0a2d
User & Date: drh 2019-04-28 00:46:35.058
Context
2019-04-29
13:51
Update the file-format document to indicate that de-duplication of index columns in WITHOUT ROWID tables does not occur if the columns have different collating sequences. (check-in: 3047c99f8a user: drh tags: trunk)
2019-04-28
00:46
Fix althttpd.c so that it builds on non-linux machines. (check-in: 02b0d4d406 user: drh tags: trunk)
2019-04-27
21:01
Start a change log for version 3.29.0. (check-in: 4e1bc9c5f0 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to misc/althttpd.c.
1290
1291
1292
1293
1294
1295
1296


1297
1298
1299

1300
1301
1302
1303
1304
1305
1306
  if( useTimeout ) alarm(30 + pStat->st_size/1000);
#ifdef linux
  {
    off_t offset = 0;
    nOut += sendfile(fileno(stdout), fileno(in), &offset, pStat->st_size);
  }
#else


  while( (c = getc(in))!=EOF ){
    putc(c,stdout);
    nOut++;

  }
#endif
  fclose(in);
  return 0;
}

/*







>
>
|
|
|
>







1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
  if( useTimeout ) alarm(30 + pStat->st_size/1000);
#ifdef linux
  {
    off_t offset = 0;
    nOut += sendfile(fileno(stdout), fileno(in), &offset, pStat->st_size);
  }
#else
  {
    int c;
    while( (c = getc(in))!=EOF ){
      putc(c,stdout);
      nOut++;
    }
  }
#endif
  fclose(in);
  return 0;
}

/*