From 00fb974d7ad9ca62c2964edcc01c1646fcee4066 Mon Sep 17 00:00:00 2001 From: mccallum Date: Thu, 25 Jan 1996 15:23:06 +0000 Subject: [PATCH] ([StdioStream -isClosed]): New method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@813 72102866-910b-0410-8b05-ffd578937521 --- Source/StdioStream.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/StdioStream.m b/Source/StdioStream.m index fcff88480..a7a026c6f 100644 --- a/Source/StdioStream.m +++ b/Source/StdioStream.m @@ -196,6 +196,12 @@ stdio_unchar_func(void *s, int c) fclose(fp); } +- (BOOL) isClosed +{ + /* xxx Ideas about a better way to do this? */ + return (fstat(fp) == 0); +} + /* xxx Add "- (BOOL) isOpen" method? */ - (void) rewindStream