lkml.org 
[lkml]   [2010]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCHv6 0/7] system time changes notification
    On Fri, Nov 12, 2010 at 09:25:04AM +0000, Alan Cox wrote:
    > > #define CLOCK_FD 0x80000000
    > > fd = open("/dev/clock/realtime", O_RDWR);
    > > poll(fd);
    > > clock_gettime(CLOCK_FD|fd, &ts);
    > > [...]
    >
    > Oh please. Can we not manage to vaguely follow the direction of other
    > syscalls and instead of magic flag hacks just add
    >
    > fclock_gettime

    Did you see my recent post on dynamic clock ids, from Nov 4th?
    It implements the clock lifetime cycle, and I would like to here your
    comments on that.

    I did not implement the clock_* syscalls in new forms as fclock_* but
    will do so if there is agreement about it.

    IMHO, from the application point of view, it would be nicer to be able
    to mix and match dynamic clock ids with the CLOCK_ ids using a
    clockid_t and the existing posix clock_* calls.

    Thanks,
    Richard


    \
     
     \ /
      Last update: 2010-11-12 11:57    [W:3.673 / U:0.148 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site