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...
Type: Posts; User: lsad
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...
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...
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...
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);
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?