asmlinkage u32 sunos_sbrk(int increment) { int error, oldbrk; /* This should do it hopefully... */ oldbrk = (int)current->mm->brk; error = sunos_brk(((int) current->mm->brk) + increment); if(!error) error = oldbrk; return error; }
asmlinkage unsigned long sunos_sbrk(int increment) { int error; /* This should do it hopefully... */ error = sunos_brk(((int) current->mm->brk) + increment); if(error) return error; else return current->mm->brk; }
asmlinkage unsigned long sunos_sbrk(int increment) { int error; unsigned long oldbrk; /* This should do it hopefully... */ lock_kernel(); oldbrk = current->mm->brk; error = sunos_brk(((int) current->mm->brk) + increment); if (!error) error = oldbrk; unlock_kernel(); return error; }
asmlinkage int solaris_brk(u32 brk) { int (*sunos_brk)(u32) = (int (*)(u32))SUNOS(17); return sunos_brk(brk); }