This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Make obsolete syscall wrappers into compat symbols (bug 18472)


Joseph Myers <joseph@codesourcery.com> writes:

> diff --git a/sysdeps/unix/Makefile b/sysdeps/unix/Makefile
> index 1770d1d..9faa669 100644
> --- a/sysdeps/unix/Makefile
> +++ b/sysdeps/unix/Makefile
> @@ -59,8 +59,20 @@ $(objpfx)stub-syscalls.c: $(common-objpfx)sysd-syscalls \
>  	   *@*) \
>  	     ver=$${call##*@}; call=$${call%%@*}; \
>  	     ver=`echo "$$ver" | sed 's/\./_/g'`; \
> +	     case $$ver in \
> +	     *:*) \
> +	       compat_ver=$${ver#*:}; \
> +	       ver=$${ver%%:*}; \
> +	       compat_cond="SHLIB_COMPAT (libc, $$ver, $$compat_ver)"; \
> +	       ;; \
> +	     *) \
> +	       compat_cond=""; \
> +	       ;; \
> +	     esac; \
> +	     if [ "$$compat_cond" ]; then echo "#if $$compat_cond"; fi; \

Ok, but please use -n "...".

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]