Rev 4874 | 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 | |||
8 | |||
9 | "pushl $0 \n\t" |
||
10 | "pushl $0 \n\t" |
||
11 | "movl %1, 1(%%esp) \n\t" |
||
12 | "pushl %%ebx \n\t" |
||
13 | "pushl $0 \n\t" |
||
14 | "pushl $0 \n\t" |
||
15 | "pushl $0 \n\t" |
||
16 | "pushl $5 \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 | :"r" (path), "b" (info)); |
||
23 | return retval; |
||
24 | }; |
||
25 | |||
26 | |||
6777 | siemargl | 27 | |
28 | { |
||
29 | int retval; |
||
30 | |||
31 | |||
32 | "pushl $0 \n\t" |
||
33 | "pushl $0 \n\t" |
||
34 | "movl %1, 1(%%esp) \n\t" |
||
35 | "pushl %%ebx \n\t" |
||
36 | "pushl $0 \n\t" |
||
37 | "pushl $0 \n\t" |
||
38 | "pushl $0 \n\t" |
||
39 | "pushl $6 \n\t" |
||
40 | "movl %%esp, %%ebx \n\t" |
||
41 | "movl $70, %%eax \n\t" |
||
42 | "int $0x40 \n\t" |
||
43 | "addl $28, %%esp \n\t" |
||
44 | :"=a" (retval) |
||
45 | :"r" (path), "b" (info)); |
||
46 | return retval; |
||
47 | }; |
||
48 |