Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
ltp
/
dce4aa73b53bca6a046cc94cf3b1d32f0b07ace4
/
testcases
/
kernel
/
syscalls
/
switch
/
endian_switch01.c
dce4aa7
Paul <paulus@samba.org> wanted the name to be endian_switch. Michael Kerrisk <mtk.manpages@googlemail.com> seconded his suggestion.
by subrata_modak
· 16 years ago
[Renamed (95%) from testcases/kernel/syscalls/switch/switch01.c]
7dd48f3
Fix the build error for some systax error. Also fix some warnings. Signed-off-by: Jin Bing Guo <guojb@cn.ibm.com>.
by subrata_modak
· 16 years ago
cb3cae1
Looks OK as far as I can see, except that I wonder why you check for being root: since there is no restriction by the kernel on which processes can use this system call. A process can't do anything to any other process using this system call, so there's no reason to restrict it. Also you might like to call it "endian_switch()" rather than just "switch()". Paul Mackerras <paulus@samba.org>.
by subrata_modak
· 16 years ago
de78ad0
This can only be tested on a POWER6 machine. A program to test it is attached. --Paul Mackerras.
by subrata_modak
· 16 years ago