2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
5 ANSI C function fclose().
8 #include <proto/exec.h>
15 /*****************************************************************************
29 stream - Stream to close.
32 Upon successful completion 0 is returned. Otherwise, EOF is
33 returned and the global variable errno is set to indicate the
34 error. In either case no further access to the stream is possible.
37 This function must not be used in a shared library or
38 in a threaded application.
45 fopen(), open(), close()
49 ******************************************************************************/
53 if (close(stream
->fd
) == -1)
56 fn
= FILE2FILENODE (stream
);
57 Remove ((struct Node
*)fn
);