Rev 6591 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6591 | Rev 9057 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | #include |
|
Line 1... | Line 2... | ||
1 | int create_file(const char *path) |
2 | |
2 | { |
3 | int create_file(const char *path) |
3 | int retval; |
4 | { |
4 | int count; |
5 | int err=0; |
5 | __asm__ __volatile__ ( |
- | |
6 | "pushl $0 \n\t" |
- | |
7 | "pushl $0 \n\t" |
- | |
8 | "movl %2, 1(%%esp) \n\t" |
- | |
9 | "pushl $0 \n\t" |
- | |
10 | "pushl $0 \n\t" |
- | |
11 | "pushl $0 \n\t" |
6 | ksys70_t k; |
12 | "pushl $0 \n\t" |
7 | k.p00 = 2; |
13 | "pushl $2 \n\t" |
8 | k.p12 = 0; |
14 | "movl %%esp, %%ebx \n\t" |
- | |
15 | "movl $70, %%eax \n\t" |
- | |
16 | "int $0x40 \n\t" |
- | |
17 | "addl $28, %%esp \n\t" |
- | |
18 | :"=a" (retval), "=b"(count) |
- | |
19 | :"r" (path) |
9 | k.p20 = 0; |
20 | ); |
- | |
21 | return retval; |
10 | k.p21 = path; |
22 | }; |
11 | return FS_Service(&k, &err); |