On Sun, Aug 11, 2013 at 6:25 PM, Stephan Beal <sgb...@googlemail.com> wrote:

> - FastCGI replaces read() and write() with its own "drop-in" replacements,
> so all code has to be compiled using them. However, they got the signature
> wrong on the write() routine. They take a non-const (void*) for the src
> argument), meaning that no compliant code can compile against it.
>

i had to prove to myself that my memory was correct there:

http://www.fastcgi.com/devkit/include/fcgi_stdio.h

DLLAPI size_t     FCGI_fread(void *ptr, size_t size, size_t nmemb,
FCGI_FILE *fp);
DLLAPI size_t     FCGI_fwrite(void *ptr, size_t size, size_t nmemb,
FCGI_FILE *fp);

that (brain-dead) non-const first pointer to their fwrite() replacement
requires a cast in all fwrite()-using code. They macro-alias fwrite() to
FCGI_fwrite() (which is how they offer drop-in support).

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to