2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 ANSI C function fclose().
8 #include <proto/exec.h>
17 /*****************************************************************************
31 stream - Stream to close.
34 Upon successful completion 0 is returned. Otherwise, EOF is
35 returned and the global variable errno is set to indicate the
36 error. In either case no further access to the stream is possible.
39 This function must not be used in a shared library or
40 in a threaded application.
47 fopen(), open(), close()
51 ******************************************************************************/
55 if (close(stream
->fd
) == -1)
58 fn
= FILE2FILENODE (stream
);
59 Remove ((struct Node
*)fn
);