Search:

Type: Posts; User: lsad

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    11,855

    The errno is 6 which i think is ENXIO so it says...

    The errno is 6 which i think is ENXIO so it says 'no such device or address'. I guess the way I'm going about this is not going to work.

    Do you know how to block on a read? Or any ideas for me to...
  2. Replies
    7
    Views
    11,855

    open(filePath, O_RDONLY) not blocking?

    I'm trying to block on a character device file until it becomes available. The kernel side appears to be working but in my process I call open(filePath, O_RDONLY) and it returns -1.
    I though the...
  3. Use pthread scheduling policy without root user, c prog in linux

    I am working on a large program in C to run on Puppy Linux. I have multiple pthreads running. I want to be able to set the pthread SCHED_POLICY and priority in my program but I want a user to be able...
  4. Replies
    13
    Views
    10,003

    I also tried nanosleep with similar increases...

    I also tried nanosleep with similar increases every time its called:




    struct timespec in, out;
    in.tv_sec = 0;
    in.tv_nsec = 1;

    nanosleep(&in, &out);
  5. Replies
    13
    Views
    10,003

    sleep(1) takes longer each time it is called?

    When I call sleep() and check gettimeofday before and after, it sleeps longer each time I call it. Does anyone know of a way to sleep for a set amount of real time?
Results 1 to 5 of 5