Move programs in /config into appropriate subdirectories.
[doldaconnect.git] / config / locktouch.c
diff --git a/config/locktouch.c b/config/locktouch.c
deleted file mode 100644 (file)
index da7b862..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <stdlib.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <errno.h>
-
-int main(int argc, char **argv)
-{
-    int fd;
-    
-    if(argc < 2)
-    {
-       fprintf(stderr, "usage: locktouch lockfile\n");
-       exit(1);
-    }
-    if((fd = open(argv[1], O_CREAT | O_EXCL, 0666)) < 0)
-    {
-       if(errno != EEXIST)
-       {
-           perror(argv[1]);
-           exit(2);
-       }
-       exit(1);
-    }
-    close(fd);
-    return(0);
-}