[PATCH] posix: Rename killinfo()

Joel Sherrill joel at rtems.org
Tue Apr 12 13:34:35 UTC 2016


On Apr 12, 2016 8:09 AM, "Gedare Bloom" <gedare at rtems.org> wrote:
>
> Joel, any idea where killinfo came from?

I was wondering the same thing this morning. I have old POSIX specs on
paper at the office but if it isn't around now, killing it isn't a bad
idea.

I can't find any reference to it now either.

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20160412/422d5539/attachment-0002.html>


More information about the devel mailing list