Subject: Re: Samba core dumps.
To: Peter Seebach <>
From: David Gilbert <>
List: current-users
Date: 09/29/1996 11:32:12
>>>>> "Peter" == Peter Seebach <> writes:

Peter> fflush(NULL) flushes everything.  Perhaps that's what you were
Peter> thinking of?  fclose() has no defined behavior (at least in C,
Peter> dunno about POSIX) if you give it a null pointer.

Peter> ("flushes everything" means "flush output streams, and update
Peter> streams on which the last operation was a write".  :) )

	The code (as I posted the patch) definately calls fclose()
will NULL.  The code immediately before it (mail me for a copy)
proteects against the NULL case for some other f...() calls... which
leads me to believe that fclose(NULL) is accepted by some OSs.


|David Gilbert, PCI, Richmond Hill, Ontario.  | Two things can only be     |
|Mail:         |  equal if and only if they |
|               |   are precisely opposite.  |