7595
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1999 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
5409
|
12 |
"{ Package: 'stx:libbasic' }"
|
|
13 |
|
4762
|
14 |
OSFileHandle subclass:#UnixFileHandle
|
|
15 |
instanceVariableNames:''
|
|
16 |
classVariableNames:''
|
|
17 |
poolDictionaries:''
|
|
18 |
category:'OS-Unix'
|
|
19 |
!
|
|
20 |
|
|
21 |
!UnixFileHandle primitiveDefinitions!
|
|
22 |
%{
|
|
23 |
#include <stdio.h>
|
|
24 |
%}
|
|
25 |
! !
|
|
26 |
|
7595
|
27 |
!UnixFileHandle class methodsFor:'documentation'!
|
|
28 |
|
|
29 |
copyright
|
|
30 |
"
|
|
31 |
COPYRIGHT (c) 1999 by eXept Software AG
|
|
32 |
All Rights Reserved
|
|
33 |
|
|
34 |
This software is furnished under a license and may be used
|
|
35 |
only in accordance with the terms of that license and with the
|
|
36 |
inclusion of the above copyright notice. This software may not
|
|
37 |
be provided or otherwise made available to, or used by, any
|
|
38 |
other person. No title to or ownership of the software is
|
|
39 |
hereby transferred.
|
|
40 |
"
|
|
41 |
! !
|
4762
|
42 |
|
5413
|
43 |
!UnixFileHandle methodsFor:'release'!
|
4762
|
44 |
|
5409
|
45 |
closeFile
|
|
46 |
"close the underlying file"
|
4762
|
47 |
|
|
48 |
%{
|
|
49 |
FILE *f = (FILE *)(__externalAddressVal(self));
|
|
50 |
|
|
51 |
if (f) {
|
|
52 |
__externalAddressVal(self) = NULL;
|
|
53 |
fclose(f);
|
|
54 |
}
|
|
55 |
%}
|
|
56 |
|
|
57 |
! !
|
|
58 |
|
|
59 |
!UnixFileHandle class methodsFor:'documentation'!
|
|
60 |
|
|
61 |
version
|
17892
|
62 |
^ '$Header: /cvs/stx/stx/libbasic/UnixFileHandle.st,v 1.4 2003/08/30 12:36:42 cg Exp $'
|
17865
|
63 |
!
|
|
64 |
|
|
65 |
version_SVN
|
17911
|
66 |
^ '$Id: UnixFileHandle.st 10761 2012-01-19 11:46:00Z vranyj1 $'
|
17846
|
67 |
! !
|
17892
|
68 |
|
17910
|
69 |
|
17911
|
70 |
|