UnixFileHandle.st
author Patrik Svestka <patrik.svestka@gmail.com>
Tue, 09 Apr 2019 11:34:04 +0200
branchjv
changeset 24093 0f94f6c8c9d4
parent 17911 a99f15c5efa5
permissions -rw-r--r--
Issue #269: Renaming a registry subKey via RegRenameKey() or if it fails via NtRenameKey()
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7595
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
     1
"
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
     2
 COPYRIGHT (c) 1999 by eXept Software AG
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
     3
              All Rights Reserved
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
     4
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
     5
 This software is furnished under a license and may be used
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
     6
 only in accordance with the terms of that license and with the
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
     8
 be provided or otherwise made available to, or used by, any
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
     9
 other person.  No title to or ownership of the software is
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    10
 hereby transferred.
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    11
"
5409
9b5890348f9c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4762
diff changeset
    12
"{ Package: 'stx:libbasic' }"
9b5890348f9c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4762
diff changeset
    13
4762
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
OSFileHandle subclass:#UnixFileHandle
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:''
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'OS-Unix'
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!UnixFileHandle primitiveDefinitions!
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
%{
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
#include <stdio.h>
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
%}
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
! !
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
7595
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    27
!UnixFileHandle class methodsFor:'documentation'!
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    28
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    29
copyright
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    30
"
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    31
 COPYRIGHT (c) 1999 by eXept Software AG
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    32
              All Rights Reserved
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    33
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    34
 This software is furnished under a license and may be used
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    35
 only in accordance with the terms of that license and with the
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    36
 inclusion of the above copyright notice.   This software may not
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    37
 be provided or otherwise made available to, or used by, any
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    38
 other person.  No title to or ownership of the software is
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    39
 hereby transferred.
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    40
"
89c4c7dba914 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    41
! !
4762
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
5413
4e67713bf25a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5409
diff changeset
    43
!UnixFileHandle methodsFor:'release'!
4762
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
5409
9b5890348f9c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4762
diff changeset
    45
closeFile
9b5890348f9c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4762
diff changeset
    46
    "close the underlying file"
4762
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
%{
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
    FILE *f = (FILE *)(__externalAddressVal(self));
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
    if (f) {
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
        __externalAddressVal(self) = NULL;
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
        fclose(f);
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    }
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
%}
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
! !
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
!UnixFileHandle class methodsFor:'documentation'!
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
7c403263e1be initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
version
17892
d86c8bd5ece3 Merged with CVS
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17869
diff changeset
    62
    ^ '$Header: /cvs/stx/stx/libbasic/UnixFileHandle.st,v 1.4 2003/08/30 12:36:42 cg Exp $'
17865
598963c6ff8e Recommited from itself
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17846
diff changeset
    63
!
598963c6ff8e Recommited from itself
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17846
diff changeset
    64
598963c6ff8e Recommited from itself
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17846
diff changeset
    65
version_SVN
17911
a99f15c5efa5 Updated with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17910
diff changeset
    66
    ^ '$Id: UnixFileHandle.st 10761 2012-01-19 11:46:00Z vranyj1 $'
17846
24edc476ac18 Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17845
diff changeset
    67
! !
17892
d86c8bd5ece3 Merged with CVS
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17869
diff changeset
    68
17910
8d796ca8bd1d Merged with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17892
diff changeset
    69
17911
a99f15c5efa5 Updated with /trunk
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 17910
diff changeset
    70