Rev 9715 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9715 | Rev 9831 | ||
---|---|---|---|
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: 9715 $ |
8 | $Revision: 9831 $ |
9 | 9 | ||
10 | ENOENT = 2 |
10 | ENOENT = 2 |
11 | EBADF = 9 |
11 | EBADF = 9 |
Line 62... | Line 62... | ||
62 | jae .fail |
62 | jae .fail |
Line 63... | Line 63... | ||
63 | 63 | ||
Line 64... | Line 64... | ||
64 | jmp dword [sys_posix_call + ebx*4] |
64 | jmp dword [sys_posix_call + ebx*4] |
65 | 65 | ||
66 | .fail: |
66 | .fail: |
Line 67... | Line 67... | ||
67 | mov [esp + SYSCALL_STACK._eax], -EBADF |
67 | mov [esp + SYSCALL_STACK.eax], -EBADF |
68 | ret |
68 | ret |
Line 93... | Line 93... | ||
93 | 93 | ||
94 | mov ebp, [ebp + FILED.file] |
94 | mov ebp, [ebp + FILED.file] |
95 | mov eax, [ebp] |
95 | mov eax, [ebp] |
96 | jmp dword [eax + FILEOP_READ*4] |
96 | jmp dword [eax + FILEOP_READ*4] |
97 | .fail: |
97 | .fail: |
98 | mov [esp + SYSCALL_STACK._eax], -EBADF |
98 | mov [esp + SYSCALL_STACK.eax], -EBADF |
Line 99... | Line 99... | ||
99 | ret |
99 | ret |
100 | 100 | ||
101 | ;ssize_t write(int fd, const void *buf, size_t count); |
101 | ;ssize_t write(int fd, const void *buf, size_t count); |
Line 122... | Line 122... | ||
122 | 122 | ||
123 | mov ebp, [ebp + FILED.file] |
123 | mov ebp, [ebp + FILED.file] |
124 | mov eax, [ebp] |
124 | mov eax, [ebp] |
125 | jmp dword [eax + FILEOP_WRITE*4] |
125 | jmp dword [eax + FILEOP_WRITE*4] |
126 | .fail: |
126 | .fail: |
127 | mov [esp + SYSCALL_STACK._eax], -EBADF |
127 | mov [esp + SYSCALL_STACK.eax], -EBADF |