Subversion Repositories Kolibri OS

Rev

Rev 4872 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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