#include <stdio.h>
#include <sys/atomic.h>
int fdev_notify(FILE* f,thread_t* notify){
if (f){
ATOMIC
f->notify = notify;
return 0;
}
return -1;
};