author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 07 Jul 2011 23:08:07 +0100 | |
branch | jv |
changeset 17845 | 7e0cfaac936d |
parent 17761 | b0e5971141bc |
child 17846 | 24edc476ac18 |
permissions | -rw-r--r-- |
7593 | 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 |
||
4763 | 14 |
ExternalAddress subclass:#OSHandle |
15 |
instanceVariableNames:'' |
|
9103 | 16 |
classVariableNames:'Lobby' |
4763 | 17 |
poolDictionaries:'' |
5740 | 18 |
category:'Compatibility-ST80' |
4763 | 19 |
! |
20 |
||
6226 | 21 |
!OSHandle class methodsFor:'documentation'! |
22 |
||
7593 | 23 |
copyright |
24 |
" |
|
25 |
COPYRIGHT (c) 1999 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
36 |
||
6226 | 37 |
documentation |
38 |
" |
|
9103 | 39 |
Ongoing work: |
40 |
extract handle specific operations and rewrite Streams, Sockets etc. |
|
41 |
to pass all work to these handles. |
|
6226 | 42 |
|
43 |
[author:] |
|
44 |
Claus Gittinger |
|
45 |
" |
|
46 |
! ! |
|
4763 | 47 |
|
9103 | 48 |
!OSHandle class methodsFor:'initialization'! |
49 |
||
50 |
initialize |
|
51 |
Lobby := Registry new. |
|
52 |
! ! |
|
53 |
||
7298 | 54 |
!OSHandle class methodsFor:'Compatibility-VW'! |
5740 | 55 |
|
56 |
currentOS |
|
57 |
"ST-80 compatibility." |
|
58 |
||
59 |
"/ mhmh what does ST80/VW returned here ? |
|
60 |
||
61 |
OperatingSystem isUNIXlike ifTrue:[^ #unix]. |
|
62 |
OperatingSystem isOS2like ifTrue:[^ #os2]. |
|
63 |
OperatingSystem isMSWINDOWSlike ifTrue:[^ #windows]. |
|
64 |
^ #unknown |
|
6295 | 65 |
|
66 |
" |
|
67 |
OSHandle currentOS |
|
68 |
" |
|
6124
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
69 |
! |
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
70 |
|
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
71 |
currentProcessID |
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
72 |
"ST-80 compatibility." |
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
73 |
|
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
74 |
^ OperatingSystem getProcessId |
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
75 |
|
6295 | 76 |
" |
77 |
OSHandle currentProcessID |
|
78 |
" |
|
79 |
||
6124
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
80 |
"Created: / 30.10.2001 / 17:31:55 / cg" |
5740 | 81 |
! ! |
82 |
||
4763 | 83 |
!OSHandle methodsFor:'finalization'! |
84 |
||
9103 | 85 |
finalizationLobby |
86 |
"answer a Registry used for finalization." |
|
87 |
||
88 |
^ Lobby |
|
89 |
! |
|
90 |
||
6439
0f841258ec4a
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
6295
diff
changeset
|
91 |
finalize |
4763 | 92 |
self subclassResponsibility |
93 |
! ! |
|
94 |
||
9103 | 95 |
!OSHandle methodsFor:'queries'! |
96 |
||
97 |
isValid |
|
98 |
^ self address ~~0 |
|
99 |
! ! |
|
100 |
||
4763 | 101 |
!OSHandle class methodsFor:'documentation'! |
102 |
||
103 |
version |
|
17845 | 104 |
^ '$Id: OSHandle.st 10656 2011-07-07 22:08:07Z vranyj1 $' |
17761
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
105 |
! |
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
106 |
|
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
107 |
version_SVN |
17845 | 108 |
^ '$Id: OSHandle.st 10656 2011-07-07 22:08:07Z vranyj1 $' |
4763 | 109 |
! ! |
9103 | 110 |
|
17845 | 111 |
OSHandle initialize! |