Re: Implementation of clock_getcpuclockid()

2020-03-08 Thread Gedare Bloom
On Sat, Mar 7, 2020 at 11:24 PM Eshan Dhawan wrote: > > How could I compile a stand-alone C Program on RTEMS and run it ? > I don't know what you mean by "stand-alone" but all the directories below rtems.git/testsuites contain source code for C programs. There is also a repository at rtems-examp

Re: Implementation of clock_getcpuclockid()

2020-03-07 Thread Eshan Dhawan
How could I compile a stand-alone C Program on RTEMS and run it ? > On 08-Mar-2020, at 10:06 AM, Joel Sherrill wrote: > >  > > >> On Sat, Mar 7, 2020, 10:34 PM Gedare Bloom wrote: >> On Fri, Mar 6, 2020 at 12:24 PM Eshan Dhawan wrote: >> > >> > clock_getcpuclockid() is defined in time.h b

Re: Implementation of clock_getcpuclockid()

2020-03-07 Thread Joel Sherrill
On Sat, Mar 7, 2020, 10:34 PM Gedare Bloom wrote: > On Fri, Mar 6, 2020 at 12:24 PM Eshan Dhawan > wrote: > > > > clock_getcpuclockid() is defined in time.h but its implementation in > RTEMS returns error > > > > I went through FreeBSD and NetBSD implementations of the same > > they call clock_g

Re: Implementation of clock_getcpuclockid()

2020-03-07 Thread Gedare Bloom
On Fri, Mar 6, 2020 at 12:24 PM Eshan Dhawan wrote: > > clock_getcpuclockid() is defined in time.h but its implementation in RTEMS > returns error > > I went through FreeBSD and NetBSD implementations of the same > they call clock_getcpuclockid2() function > but I couldn't find anything related t

Re: Implementation of clock_getcpuclockid()

2020-03-06 Thread Eshan Dhawan
Similarly for pthread_getcpuclockid() > On 07-Mar-2020, at 12:53 AM, Eshan Dhawan wrote: > >  > clock_getcpuclockid() is defined in time.h but its implementation in RTEMS > returns error > > I went through FreeBSD and NetBSD implementations of the same > they call clock_getcpuclockid2() fun

Implementation of clock_getcpuclockid()

2020-03-06 Thread Eshan Dhawan
clock_getcpuclockid() is defined in time.h but its implementation in RTEMS returns error I went through FreeBSD and NetBSD implementations of the same they call clock_getcpuclockid2() function but I couldn't find anything related to this in rtems so how could we implement clock_getcpuclockid()? T