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 set_file_size(const char *path, unsigned size)
  3. {
  4.      int retval;
  5.      int tmp;
  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 %%ebx \n\t"
  14.      "push $4 \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"(tmp)
  20.      :"r" (path), "b" (size));
  21.      return retval;
  22. };
  23.