Do You REALLY Know inotify?
General Overview Whenever you want to monitor a file or directory with inotify, you use inotify_init() to get a file descriptor known as “inotify instance”, and then you create a watcher to watch y...
General Overview Whenever you want to monitor a file or directory with inotify, you use inotify_init() to get a file descriptor known as “inotify instance”, and then you create a watcher to watch y...
You might have seen “*(char*)0 = 0; - What Does the C++ Programmer Intend With This Code?” where JF Bastien discusses this line of code: *(char*)0 = 0; JF covers the majority of the topics relat...
I was playing with my TCP stack and wondered what would happen if I initialized my TCB struct with nested designated initializers and some strange tricks, which led to a tragedy. struct TCB *ctrl_...