Messages in this thread | | | Date | Tue, 22 Mar 2005 20:25:05 +0100 (MET) | From | Jan Engelhardt <> | Subject | Re: lseek on /proc/kmsg |
| |
Hi,
> how am I supposed to clear the kmsg buffer since it's not a terminal??
fd = open("/proc/kmsg", O_RDONLY | O_NONBLOCK); while(read(fd, buf, sizeof(buf)) > 0); if(errno == EAGAIN) { printf("Clear!\n"); }
This is language (spoken-wise) neutral :p
Jan Engelhardt -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |