author | Claus Gittinger <cg@exept.de> |
Wed, 24 Jul 2002 10:32:32 +0200 | |
changeset 6657 | a0fa5a821176 |
parent 6439 | 0f841258ec4a |
child 7298 | 9b3c69eb2c5d |
permissions | -rw-r--r-- |
5409 | 1 |
"{ Package: 'stx:libbasic' }" |
2 |
||
4763 | 3 |
ExternalAddress subclass:#OSHandle |
4 |
instanceVariableNames:'' |
|
5409 | 5 |
classVariableNames:'' |
4763 | 6 |
poolDictionaries:'' |
5740 | 7 |
category:'Compatibility-ST80' |
4763 | 8 |
! |
9 |
||
6226 | 10 |
!OSHandle class methodsFor:'documentation'! |
11 |
||
12 |
documentation |
|
13 |
" |
|
14 |
ST-80 compatibility class. |
|
15 |
This may be required when existing code has to be ported to ST/X; |
|
16 |
however, it may not be complete and more protocol may be added in the future. |
|
17 |
The code here was created when public domain code (Manchester) had to |
|
18 |
be ported to ST/X and missing classes/methods were encountered, and code added |
|
19 |
by reasoning 'what the original class could probably do there'. |
|
20 |
||
21 |
[author:] |
|
22 |
Claus Gittinger |
|
23 |
" |
|
24 |
! ! |
|
4763 | 25 |
|
5966 | 26 |
!OSHandle class methodsFor:'Compatibility - VW'! |
5740 | 27 |
|
28 |
currentOS |
|
29 |
"ST-80 compatibility." |
|
30 |
||
31 |
"/ mhmh what does ST80/VW returned here ? |
|
32 |
||
33 |
OperatingSystem isUNIXlike ifTrue:[^ #unix]. |
|
34 |
OperatingSystem isOS2like ifTrue:[^ #os2]. |
|
35 |
OperatingSystem isMSWINDOWSlike ifTrue:[^ #windows]. |
|
36 |
^ #unknown |
|
6295 | 37 |
|
38 |
" |
|
39 |
OSHandle currentOS |
|
40 |
" |
|
6124
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
41 |
! |
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
42 |
|
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
43 |
currentProcessID |
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
44 |
"ST-80 compatibility." |
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
45 |
|
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
46 |
^ OperatingSystem getProcessId |
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
47 |
|
6295 | 48 |
" |
49 |
OSHandle currentProcessID |
|
50 |
" |
|
51 |
||
6124
81baa6b991c3
currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents:
5966
diff
changeset
|
52 |
"Created: / 30.10.2001 / 17:31:55 / cg" |
5740 | 53 |
! ! |
54 |
||
4763 | 55 |
!OSHandle methodsFor:'finalization'! |
56 |
||
6439
0f841258ec4a
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
6295
diff
changeset
|
57 |
finalize |
4763 | 58 |
self subclassResponsibility |
59 |
! ! |
|
60 |
||
61 |
!OSHandle class methodsFor:'documentation'! |
|
62 |
||
63 |
version |
|
6439
0f841258ec4a
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
6295
diff
changeset
|
64 |
^ '$Header: /cvs/stx/stx/libbasic/OSHandle.st,v 1.8 2002-03-04 14:21:30 stefan Exp $' |
4763 | 65 |
! ! |