OSHandle.st
author Stefan Vogel <sv@exept.de>
Wed, 01 Sep 2004 16:45:23 +0200
changeset 8508 68cd95545196
parent 7593 e7550b9ef84a
child 9103 b934315bb0b1
permissions -rw-r--r--
Allow to proceed with any stream from an #openError handler
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7593
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
     1
"
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
     2
 COPYRIGHT (c) 1999 by eXept Software AG
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
     3
              All Rights Reserved
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
     4
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
     5
 This software is furnished under a license and may be used
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
     6
 only in accordance with the terms of that license and with the
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
     8
 be provided or otherwise made available to, or used by, any
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
     9
 other person.  No title to or ownership of the software is
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    10
 hereby transferred.
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    11
"
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    12
5409
9b5890348f9c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4763
diff changeset
    13
"{ Package: 'stx:libbasic' }"
9b5890348f9c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4763
diff changeset
    14
4763
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
ExternalAddress subclass:#OSHandle
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	instanceVariableNames:''
5409
9b5890348f9c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4763
diff changeset
    17
	classVariableNames:''
4763
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	poolDictionaries:''
5740
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    19
	category:'Compatibility-ST80'
4763
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
!
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
6226
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    22
!OSHandle class methodsFor:'documentation'!
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    23
7593
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    24
copyright
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    25
"
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    26
 COPYRIGHT (c) 1999 by eXept Software AG
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    27
              All Rights Reserved
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    28
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    29
 This software is furnished under a license and may be used
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    30
 only in accordance with the terms of that license and with the
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    31
 inclusion of the above copyright notice.   This software may not
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    32
 be provided or otherwise made available to, or used by, any
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    33
 other person.  No title to or ownership of the software is
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    34
 hereby transferred.
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    35
"
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    36
!
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    37
6226
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    38
documentation
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    39
"
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    40
    ST-80 compatibility class.
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    41
    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
    42
    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
    43
    The code here was created when public domain code (Manchester) had to
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    44
    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
    45
    by reasoning 'what the original class could probably do there'.
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    46
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    47
    [author:]
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    48
        Claus Gittinger
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    49
"
d45b429492ec documentation
Claus Gittinger <cg@exept.de>
parents: 6124
diff changeset
    50
! !
4763
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
7298
9b3c69eb2c5d category
Claus Gittinger <cg@exept.de>
parents: 6439
diff changeset
    52
!OSHandle class methodsFor:'Compatibility-VW'!
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
currentOS
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    55
    "ST-80 compatibility."
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    56
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    57
    "/ mhmh what does ST80/VW returned here ?
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    58
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    59
    OperatingSystem isUNIXlike ifTrue:[^ #unix].
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    60
    OperatingSystem isOS2like  ifTrue:[^ #os2].
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    61
    OperatingSystem isMSWINDOWSlike  ifTrue:[^ #windows].
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    62
    ^ #unknown
6295
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    63
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    64
    "
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    65
     OSHandle currentOS
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    66
    "
6124
81baa6b991c3 currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents: 5966
diff changeset
    67
!
81baa6b991c3 currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents: 5966
diff changeset
    68
81baa6b991c3 currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents: 5966
diff changeset
    69
currentProcessID
81baa6b991c3 currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents: 5966
diff changeset
    70
    "ST-80 compatibility."
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
    ^ OperatingSystem getProcessId
81baa6b991c3 currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents: 5966
diff changeset
    73
6295
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    74
    "
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    75
     OSHandle currentProcessID
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    76
    "
8cd84857b5bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6226
diff changeset
    77
6124
81baa6b991c3 currentProcessID - for VW compatibility
Claus Gittinger <cg@exept.de>
parents: 5966
diff changeset
    78
    "Created: / 30.10.2001 / 17:31:55 / cg"
5740
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    79
! !
a634006d10be checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    80
4763
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
!OSHandle methodsFor:'finalization'!
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
6439
0f841258ec4a Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents: 6295
diff changeset
    83
finalize
4763
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
    self subclassResponsibility
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
! !
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
!OSHandle class methodsFor:'documentation'!
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
version
7593
e7550b9ef84a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7298
diff changeset
    90
    ^ '$Header: /cvs/stx/stx/libbasic/OSHandle.st,v 1.10 2003-08-30 12:32:18 cg Exp $'
4763
d15c41a66ec4 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
! !