OSHandle.st
author Stefan Vogel <sv@exept.de>
Fri, 11 Apr 2003 18:47:17 +0200
changeset 7205 903fef64420c
parent 6439 0f841258ec4a
child 7298 9b3c69eb2c5d
permissions -rw-r--r--
#errorSignal -> #description
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5409
9b5890348f9c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4763
diff changeset
     1
"{ Package: 'stx:libbasic' }"
9b5890348f9c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4763
diff changeset
     2
4763
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
ExternalAddress subclass:#OSHandle
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
	instanceVariableNames:''
5409
9b5890348f9c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4763
diff changeset
     5
	classVariableNames:''
4763
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	poolDictionaries:''
5740
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
     7
	category:'Compatibility-ST80'
4763
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
!
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
6226
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    10
!OSHandle class methodsFor:'documentation'!
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    11
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    12
documentation
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    13
"
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    14
    ST-80 compatibility class.
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    15
    This may be required when existing code has to be ported to ST/X;
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    16
    however, it may not be complete and more protocol may be added in the future.
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    17
    The code here was created when public domain code (Manchester) had to
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    18
    be ported to ST/X and missing classes/methods were encountered, and code added
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    19
    by reasoning 'what the original class could probably do there'.
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    20
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    21
    [author:]
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    22
        Claus Gittinger
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    23
"
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    24
! !
4763
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
5966
f0a8b760adf4 protocol rename
Claus Gittinger <cg@exept.de>
parents: 5740
diff changeset
    26
!OSHandle class methodsFor:'Compatibility - VW'!
5740
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    27
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    28
currentOS
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    29
    "ST-80 compatibility."
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    30
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    31
    "/ mhmh what does ST80/VW returned here ?
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    32
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    33
    OperatingSystem isUNIXlike ifTrue:[^ #unix].
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    34
    OperatingSystem isOS2like  ifTrue:[^ #os2].
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    35
    OperatingSystem isMSWINDOWSlike  ifTrue:[^ #windows].
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    36
    ^ #unknown
6295
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    37
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    38
    "
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    39
     OSHandle currentOS
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    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
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    48
    "
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    49
     OSHandle currentProcessID
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    50
    "
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    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
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    53
! !
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    54
4763
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
!OSHandle methodsFor:'finalization'!
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
6439
0f841258ec4a Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents: 6295
diff changeset
    57
finalize
4763
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
    self subclassResponsibility
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
! !
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
!OSHandle class methodsFor:'documentation'!
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    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
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
! !