[LTP] [PATCH 1/1] syscalls, lib: Use SAFE_{BIND, LISTEN, SOCKET} macros

Cyril Hrubis
2017-10-03T14:28:29Z

Hi!
> > Anyway I got an idea yesterday and implemented a shell script that
> > generates a spatch based on function name and made it iterate over all
> > safe macros we have implemented making a git commit for each. The script
> > is attached for a reference.
> Really nice solution :-).
> This script is really worth of adding into LTP (even it requires to check formatting).

FYI: I've missed a pattern where the result is stored in a variable
first hence things like SAFE_OPEN() haven't had chance to be used
at all, I will fix that one and rerun the script.

--
Cyril Hrubis
chrubis@suse.cz