1 /* Public domain. */ 2 3 #include <sys/types.h> 4 #include <sys/file.h> 5 #include <fcntl.h> 6 main()7 main() 8 { 9 flock(0,LOCK_EX | LOCK_UN | LOCK_NB); 10 } 11