︙ | | |
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
-
|
#import "OFCreateDirectoryFailedException.h"
#import "OFDeleteDirectoryFailedException.h"
#import "OFDeleteFileFailedException.h"
#import "OFInitializationFailedException.h"
#import "OFInvalidArgumentException.h"
#import "OFLinkFailedException.h"
#import "OFLockFailedException.h"
#import "OFNotImplementedException.h"
#import "OFOpenFileFailedException.h"
#import "OFOutOfMemoryException.h"
#import "OFReadFailedException.h"
#import "OFRenameFileFailedException.h"
#import "OFSeekFailedException.h"
#import "OFSymlinkFailedException.h"
#import "OFUnlockFailedException.h"
|
︙ | | |
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
|
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
|
+
-
-
-
+
+
+
+
+
-
+
|
objc_autoreleasePoolPop(pool);
}
#endif
- init
{
@try {
Class c = [self class];
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
[self doesNotRecognizeSelector: _cmd];
abort();
} @catch (id e) {
[self release];
@throw e;
selector: _cmd];
}
}
- initWithPath: (OFString*)path
mode: (OFString*)mode
{
self = [super init];
|
︙ | | |
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
|
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
|
+
-
-
-
+
+
+
+
+
-
+
|
of_stdout = [[OFFileSingleton alloc] initWithFileDescriptor: 1];
of_stderr = [[OFFileSingleton alloc] initWithFileDescriptor: 2];
}
- initWithPath: (OFString*)path
mode: (OFString*)mode
{
@try {
Class c = [self class];
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
[self doesNotRecognizeSelector: _cmd];
abort();
} @catch (id e) {
[self release];
@throw e;
selector: _cmd];
}
}
- autorelease
{
return self;
}
|
︙ | | |
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
|
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
|
-
-
-
+
+
+
+
+
-
-
+
+
|
- (unsigned int)retainCount
{
return OF_RETAIN_COUNT_MAX;
}
- (void)dealloc
{
@throw [OFNotImplementedException exceptionWithClass: [self class]
selector: _cmd];
[super dealloc]; /* Get rid of stupid warning */
[self doesNotRecognizeSelector: _cmd];
abort();
/* Get rid of stupid warning */
[super dealloc];
}
- (void)lowlevelSeekToOffset: (off_t)offset
whence: (int)whence
{
@throw [OFNotImplementedException exceptionWithClass: [self class]
selector: _cmd];
[self doesNotRecognizeSelector: _cmd];
abort();
}
@end
|