Subversion Repositories Kolibri OS

Rev

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.      __asm__ __volatile__ (
  6.      "pushl $0 \n\t"
  7.      "pushl $0 \n\t"
  8.      "movl %0, 1(%%esp) \n\t"
  9.      "pushl $0 \n\t"
  10.      "pushl $0 \n\t"
  11.      "pushl $0 \n\t"
  12.      "pushl $0 \n\t"
  13.      "pushl $2 \n\t"
  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)
  19.      :"r" (path)
  20.      :"ebx");
  21.   return retval;
  22. };
  23.