On Wed, Feb 06, 2002 at 01:41:49AM +0900, Matt Armstrong wrote: > It will be hard to write a rubicon test case for this behavior though. > ;-) The following should cause fclose to fail: #include <stdio.h> main() { FILE * fp = fopen("foo.txt", "w"); close(fileno(fp)); fclose(fp); perror("fclose"); } Paul