Subversion Repositories Kolibri OS

Rev

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

  1.  
  2. #include <sys/types.h>
  3. #include <sys/kos_io.h>
  4.  
  5. int get_fileinfo(const char *path, fileinfo_t *info)
  6. {
  7.     int retval;
  8.  
  9.     __asm__ __volatile__ (
  10.     "pushl $0 \n\t"
  11.     "pushl $0 \n\t"
  12.     "movl %1, 1(%%esp) \n\t"
  13.     "pushl %%ebx \n\t"
  14.     "pushl $0 \n\t"
  15.     "pushl $0 \n\t"
  16.     "pushl $0 \n\t"
  17.     "pushl $5 \n\t"
  18.     "movl %%esp, %%ebx \n\t"
  19.     "movl $70, %%eax \n\t"
  20.     "int $0x40 \n\t"
  21.     "addl $28, %%esp \n\t"
  22.     :"=a" (retval)
  23.     :"r" (path), "b" (info));
  24.    return retval;
  25. };
  26.  
  27.