Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1906 serge 1
 
2
#include 
3
4
 
5
 
6
{
7
     int retval;
8
     __asm__ __volatile__(
9
     "pushl $0 \n\t"
10
     "pushl $0 \n\t"
11
     "movl %%eax, 1(%%esp) \n\t"
12
     "pushl $0 \n\t"
13
     "pushl $0 \n\t"
14
     "pushl $0 \n\t"
15
     "pushl %%ebx \n\t"
16
     "push $4 \n\t"
17
     "movl %%esp, %%ebx \n\t"
18
     "movl $70, %%eax \n\t"
19
     "int $0x40 \n\t"
20
     "addl $28, %%esp \n\t"
21
     :"=a" (retval)
22
     :"a" (path), "b" (size));
23
     return retval;
24
};
25