triggerpull.c (251B)
1 #include "triggerpull.h" 2 3 #include <unistd.h> 4 #include "ndelay.h" 5 #include "open.h" 6 7 void triggerpull() 8 { 9 int fd; 10 11 fd = open_write("lock/trigger"); 12 if (fd >= 0) 13 { 14 ndelay_on(fd); 15 write(fd,"",1); /* if it fails, bummer */ 16 close(fd); 17 } 18 }