[PATCH] posix: Rename killinfo()
Gedare Bloom
gedare at rtems.org
Tue Apr 12 13:09:40 UTC 2016
Joel, any idea where killinfo came from?
On Tue, Apr 12, 2016 at 2:02 AM, Sebastian Huber
<sebastian.huber at embedded-brains.de> wrote:
> Apparently killinfo() is not defined by POSIX, glibc or FreeBSD. Rename
> killinfo() to _POSIX_signals_Send() to cleary mark it as an internal
> function.
> ---
> cpukit/posix/include/rtems/posix/psignalimpl.h | 2 +-
> cpukit/posix/src/kill.c | 2 +-
> cpukit/posix/src/kill_r.c | 2 +-
> cpukit/posix/src/killinfo.c | 2 +-
> cpukit/posix/src/sigqueue.c | 2 +-
> 5 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/cpukit/posix/include/rtems/posix/psignalimpl.h b/cpukit/posix/include/rtems/posix/psignalimpl.h
> index 7c1424c..8399a7b 100644
> --- a/cpukit/posix/include/rtems/posix/psignalimpl.h
> +++ b/cpukit/posix/include/rtems/posix/psignalimpl.h
> @@ -107,7 +107,7 @@ bool _POSIX_signals_Clear_signals(
> bool do_signals_acquire_release
> );
>
> -int killinfo(
> +int _POSIX_signals_Send(
> pid_t pid,
> int sig,
> const union sigval *value
> diff --git a/cpukit/posix/src/kill.c b/cpukit/posix/src/kill.c
> index 6e28f00..ee2c1b0 100644
> --- a/cpukit/posix/src/kill.c
> +++ b/cpukit/posix/src/kill.c
> @@ -30,6 +30,6 @@ int kill(
> int sig
> )
> {
> - return killinfo( pid, sig, NULL );
> + return _POSIX_signals_Send( pid, sig, NULL );
> }
>
> diff --git a/cpukit/posix/src/kill_r.c b/cpukit/posix/src/kill_r.c
> index a25961e..97dcd43 100644
> --- a/cpukit/posix/src/kill_r.c
> +++ b/cpukit/posix/src/kill_r.c
> @@ -37,6 +37,6 @@ int _kill_r(
> int sig
> )
> {
> - return killinfo( pid, sig, NULL );
> + return _POSIX_signals_Send( pid, sig, NULL );
> }
> #endif
> diff --git a/cpukit/posix/src/killinfo.c b/cpukit/posix/src/killinfo.c
> index 7a70539..3df670c 100644
> --- a/cpukit/posix/src/killinfo.c
> +++ b/cpukit/posix/src/killinfo.c
> @@ -54,7 +54,7 @@
> #define _POSIX_signals_Is_interested( _api, _mask ) \
> ( (_api)->signals_unblocked & (_mask) )
>
> -int killinfo(
> +int _POSIX_signals_Send(
> pid_t pid,
> int sig,
> const union sigval *value
> diff --git a/cpukit/posix/src/sigqueue.c b/cpukit/posix/src/sigqueue.c
> index 380ada6..56292bf 100644
> --- a/cpukit/posix/src/sigqueue.c
> +++ b/cpukit/posix/src/sigqueue.c
> @@ -31,5 +31,5 @@ int sigqueue(
> const union sigval value
> )
> {
> - return killinfo( pid, signo, &value );
> + return _POSIX_signals_Send( pid, signo, &value );
> }
> --
> 1.8.4.5
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
More information about the devel
mailing list