author | Stefan Vogel <sv@exept.de> |
Wed, 16 Apr 2014 10:33:55 +0200 | |
changeset 16344 | 254eebdd0f74 |
parent 16343 | d8c82b95b95a |
child 17699 | 7e6dc4c76306 |
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 |
||
16344 | 97 |
handleType |
98 |
^ self subclassResponsibility |
|
99 |
! |
|
100 |
||
9103 | 101 |
isValid |
16341 | 102 |
^ self address ~~ 0 |
103 |
! ! |
|
104 |
||
105 |
!OSHandle methodsFor:'testing'! |
|
106 |
||
16343 | 107 |
isOsHandle |
108 |
^ true |
|
109 |
! |
|
110 |
||
16341 | 111 |
isSocketHandle |
112 |
^ false |
|
9103 | 113 |
! ! |
114 |
||
4763 | 115 |
!OSHandle class methodsFor:'documentation'! |
116 |
||
117 |
version |
|
16344 | 118 |
^ '$Header: /cvs/stx/stx/libbasic/OSHandle.st,v 1.14 2014-04-16 08:33:55 stefan Exp $' |
16343 | 119 |
! |
120 |
||
121 |
version_CVS |
|
16344 | 122 |
^ '$Header: /cvs/stx/stx/libbasic/OSHandle.st,v 1.14 2014-04-16 08:33:55 stefan Exp $' |
4763 | 123 |
! ! |
9103 | 124 |
|
16341 | 125 |
|
9103 | 126 |
OSHandle initialize! |