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: [PATCH 2/7] nptl: Add POSIX-proposed sem_clockwait


On Thursday 14 March 2019 at 15:09:35 +0100, Yann Droneaud wrote:
> Hi,
> 
> Le mercredi 27 février 2019 à 18:23 +0000, Mike Crowe a écrit :
> > 
> > diff --git a/sysdeps/pthread/semaphore.h
> > b/sysdeps/pthread/semaphore.h
> > index 41ff927..2e68b16 100644
> > --- a/sysdeps/pthread/semaphore.h
> > +++ b/sysdeps/pthread/semaphore.h
> > @@ -59,6 +59,10 @@ extern int sem_wait (sem_t *__sem);
> >     __THROW.  */
> >  extern int sem_timedwait (sem_t *__restrict __sem,
> >  			  const struct timespec *__restrict __abstime);
> > +
> > +extern int sem_clockwait (sem_t *__restrict __sem,
> > +			  clockid_t clock,
> > +			  const struct timespec *__restrict __abstime);
> 
> Maybe it can be added with __nonnull ((3)) attribute ?

I was just copying sem_timedwait, but I don't believe there's a reason why
I can't add that.

> >  #endif
> >  
> >  /* Test whether SEM is posted.  */
> > diff --git a/sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
> > b/sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
> > index 931c827..454d340 100644
> > --- a/sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
> > +++ b/sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
> > @@ -245,6 +245,7 @@ GLIBC_2.3.4 pthread_attr_setaffinity_np F
> >  GLIBC_2.3.4 pthread_getaffinity_np F
> >  GLIBC_2.3.4 pthread_setaffinity_np F
> >  GLIBC_2.3.4 pthread_setschedprio F
> > +GLIBC_2.30 sem_clockwait F
> 
> Why is it only added to linux x86_64 ?

Because I wanted to wait to see if the patches were acceptable before
updating all the abilist files.

Mike.


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