Subversion Repositories Kolibri OS

Rev

Rev 1408 | Rev 9057 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.  
  2. int create_file(const char *path)
  3. {
  4.      int retval;
  5.      int count;
  6.      __asm__ __volatile__ (
  7.      "pushl $0 \n\t"
  8.      "pushl $0 \n\t"
  9.      "movl %2, 1(%%esp) \n\t"
  10.      "pushl $0 \n\t"
  11.      "pushl $0 \n\t"
  12.      "pushl $0 \n\t"
  13.      "pushl $0 \n\t"
  14.      "pushl $2 \n\t"
  15.      "movl %%esp, %%ebx \n\t"
  16.      "movl $70, %%eax \n\t"
  17.      "int $0x40 \n\t"
  18.      "addl $28, %%esp \n\t"
  19.      :"=a" (retval), "=b"(count)
  20.      :"r" (path)
  21.      );
  22.   return retval;
  23. };
  24.