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