Re: system call

Riley Williams (rhw@MemAlpha.CX)
Mon, 31 May 1999 01:19:01 +0100 (GMT)


Hi Livia.

> I removed the following system calls in the sched.c file:

> 1- sys_sched_setscheduler
> 2- sys_sched_getscheduler
> 3- sys_sched_get_priority_max
> 4- sys_sched_get_priority_min
> 5- sys_sched_setparam
> 6- sys_sched_getparam

> I also removed their references in the files listed below.

> 1- /usr/src/linux/include/asm/unistd.h
> 2- /usr/src/linux/arch/i386/kernel/entry.S

> OBS: the line ".space (NR_syscalls-169)*4" was changed to
> ".space (NR_syscalls-163)*4".

> and

> the numbers of each system call was appropriately corrected in
> the mentioned files.

> After that I used the commands: make dep, make clean and make zImage.

> When I reboot the system I found a loop there ...exactly at the point:
> "/dev/hda2:clean,42389/1357824files,631159/5429970 blocks"
> The next message should be "loading modules", but the system halted before.

> Could you help me ??

> Are there more steps to remove a system call ??

Recompile all the programs that use any syscall that was renumbered?
After all, the syscall number is hard compiled into all programs that
use it.

The problem you're hitting is called "backwards compatibility"...

Best wishes from Riley.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* ftp://ftp.MemAlpha.cx/pub/rhw/Linux
* http://www.MemAlpha.cx/kernel.versions.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/