make-syscalls.sh broken :-(
Andreas Schwab
schwab@suse.de
Fri Jul 7 03:44:00 GMT 2000
Andreas Jaeger <aj@suse.de> writes:
|> This line in make-syscalls.sh:
|>
|> # find the name without leading underscores
|> set `echo $strong $weak |tr -s ' \t' '\12' |sed '/^_/d'`
|>
|> doesn't work with these declarations in
|> sysdeps/unix/sysv/linux/mips/syscalls.list:
|>
|> s_llseek llseek _llseek i:iiipi __syscall__llseek
|> s_sigaction sigaction sigaction i:ipp __syscall_sigaction
|> s_ustat ustat ustat i:ip __syscall_ustat
|> sys_mknod xmknod mknod i:sii __syscall_mknod
|>
|> For testing run this:
|> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|> #! /bin/bash
|>
|> strong="__syscall__llseek"
|> echo $strong $weak |tr -s ' \t' '\12' |sed '/^_/d'
|> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|>
|> The output is empty - and therefore set is invoked as set `` - which
|> puts the whole environment into sysd-syscalls :-(
|>
|> What's the proper way to fix this?
What about this:
set x `...`
callname=$2
if test -n "$callname"; then
....
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
More information about the Libc-hacker
mailing list