Rev 6591 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1408 | serge | 1 | |
2 | typedef struct |
||
3 | { |
||
4 | char sec; |
||
5 | char min; |
||
6 | char hour; |
||
7 | char rsv; |
||
8 | }detime_t; |
||
9 | |||
10 | |||
11 | { |
||
12 | char day; |
||
13 | char month; |
||
14 | short year; |
||
15 | }dedate_t; |
||
16 | |||
17 | |||
18 | { |
||
19 | unsigned attr; |
||
20 | unsigned flags; |
||
21 | union |
||
22 | { |
||
23 | detime_t ctime; |
||
24 | unsigned cr_time; |
||
25 | }; |
||
26 | union |
||
27 | { |
||
28 | dedate_t cdate; |
||
29 | unsigned cr_date; |
||
30 | }; |
||
31 | union |
||
32 | { |
||
33 | detime_t atime; |
||
34 | unsigned acc_time; |
||
35 | }; |
||
36 | union |
||
37 | { |
||
38 | dedate_t adate; |
||
39 | unsigned acc_date; |
||
40 | }; |
||
41 | union |
||
42 | { |
||
43 | detime_t mtime; |
||
44 | unsigned mod_time; |
||
45 | }; |
||
46 | union |
||
47 | { |
||
48 | dedate_t mdate; |
||
49 | unsigned mod_date; |
||
50 | }; |
||
51 | unsigned size; |
||
52 | unsigned size_high; |
||
53 | } FILEINFO; |
||
54 | |||
55 | |||
56 | |||
57 | |||
58 | |||
59 | { |
||
60 | int retval; |
||
61 | |||
62 | |||
63 | ( |
||
64 | "pushl $0 \n\t" |
||
65 | "pushl $0 \n\t" |
||
66 | "movl %0, 1(%%esp) \n\t" |
||
67 | "pushl %%ebx \n\t" |
||
68 | "pushl $0 \n\t" |
||
69 | "pushl $0 \n\t" |
||
70 | "pushl $0 \n\t" |
||
71 | "pushl $5 \n\t" |
||
72 | "movl %%esp, %%ebx \n\t" |
||
73 | "movl $70, %%eax \n\t" |
||
74 | "int $0x40 \n\t" |
||
75 | "addl $28, %%esp \n\t" |
||
76 | :"=a" (retval) |
||
77 | :"r" (path), "b" (info) |
||
78 | ); |
||
79 | return retval; |
||
80 | }; |
||
81 |