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 set_file_size(const char *path, unsigned size)
  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 %%ebx \n\t"
  13.      "push $4 \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.      :"a" (path), "b" (size));
  20.      return retval;
  21. };
  22.