Subversion Repositories Kolibri OS

Rev

Rev 9831 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9831 Rev 9884
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;;
4
;;  Distributed under terms of the GNU General Public License.  ;;
4
;;  Distributed under terms of the GNU General Public License.  ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 9831 $
8
$Revision: 9884 $
9
 
9
 
10
ENOENT  =      2
10
ENOENT  =      2
11
EBADF   =      9
11
EBADF   =      9
Line 81... Line 81...
81
        jae     .fail
81
        jae     .fail
Line 82... Line 82...
82
 
82
 
83
        mov     edi, [current_process]
83
        mov     edi, [current_process]
Line -... Line 84...
-
 
84
        mov     ebp, [edi + PROC.htab + ecx*4]
-
 
85
 
-
 
86
        stdcall is_region_userspace, ebp, 4
84
        mov     ebp, [edi + PROC.htab + ecx*4]
87
        jz      .fail
85
 
88
 
86
        cmp     [ebp + FILED.magic], 'PIPE'
89
        cmp     [ebp + FILED.magic], 'PIPE'
87
        jne     .fail
90
        jne     .fail
Line 111... Line 114...
111
        jae     .fail
114
        jae     .fail
Line 112... Line 115...
112
 
115
 
113
        mov     edi, [current_process]
116
        mov     edi, [current_process]
Line -... Line 117...
-
 
117
        mov     ebp, [edi + PROC.htab+ecx*4]
-
 
118
 
-
 
119
        stdcall is_region_userspace, ebp, 4
114
        mov     ebp, [edi + PROC.htab+ecx*4]
120
        jz      .fail
115
 
121
 
116
        cmp     [ebp + FILED.magic], 'PIPE'
122
        cmp     [ebp + FILED.magic], 'PIPE'
117
        jne     .fail
123
        jne     .fail
118
        cmp     [ebp + FILED.handle], ecx
124
        cmp     [ebp + FILED.handle], ecx