2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
14 #include "__posixc_intbase.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.
44 fopen(), open(), close()
48 ******************************************************************************/
50 struct PosixCIntBase
*PosixCBase
=
51 (struct PosixCIntBase
*)__aros_getbase_PosixCBase();
54 if (close(stream
->fd
) == -1)
57 fn
= FILE2FILENODE (stream
);
58 Remove ((struct Node
*)fn
);
60 FreePooled(PosixCBase
->internalpool
, fn
, sizeof(FILENODE
));