N.B. As of cygwin 1.5.25 fopen("crash.dmp","a") DOES NOT WORK! crash.dmp contains garbled output as if the file pointer gets set to the start of the file, not the end. So we synthesize our own append mode.
Hi Eliot. Please update your Cygwin ASAP! It's hardly believeable that the append-mode in `fopen` is broken in a fairly recent Cygwin installation.
``` $ cygcheck -c cygwin Cygwin Package Information Package Version Status cygwin 3.2.0-1 OK ```
``` $ cygcheck -f /usr/include/stdio.h cygwin-devel-3.2.0-1 ```
This works like a charm and as expected:
``` /* File name is hello_world.c */ #include <stdio.h>
int main(void) { FILE *pFile; pFile = fopen("crash.dmp","a+t"); fprintf(pFile, "%s", "Hello!"); fclose(pFile); } ```
PLEASE! Update your Cygwin installation. :-)
vm-dev@lists.squeakfoundation.org