log_d("cannot open %s for appending", name); lerror("fopen");
lerror("fdopen"); close(fd);
void internal_dump(void){	FILE *f;	char name[32];	struct timeval tv;	sprintf(name, "/tmp/mathopd-%d-dump", my_pid);	f = fopen(name, "a");	if (f == 0) {		log_d("cannot open %s for appending", name);		lerror("fopen");		return;	}	gettimeofday(&tv, 0);	fprintf(f, "*** Dump performed at %ld.%06ld\n", tv.tv_sec, tv.tv_usec);	fdump(f);	fclose(f);}