2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
14 #include "__arosc_privdata.h"
16 /*****************************************************************************
30 stream - Stream to close.
33 Upon successful completion 0 is returned. Otherwise, EOF is
34 returned and the global variable errno is set to indicate the
35 error. In either case no further access to the stream is possible.
38 This function must not be used in a shared library or
39 in a threaded application.
46 fopen(), open(), close()
50 ******************************************************************************/
52 struct aroscbase
*aroscbase
= __aros_getbase_aroscbase();
55 if (close(stream
->fd
) == -1)
58 fn
= FILE2FILENODE (stream
);
59 Remove ((struct Node
*)fn
);
61 FreePooled(aroscbase
->acb_internalpool
, fn
, sizeof(FILENODE
));