Lines Matching full:lock
890 /* Procedures for locking the serial device using a lock file. */
893 #define LOCK_DIR "/var/lock"
898 #define LOCK_DIR "/var/spool/lock"
906 * lock - create a lock file for the named device
909 lock(dev)
924 error("Can't create lock file %s", lock_file);
940 error("Can't lock %s: not a character device", dev);
967 error("Can't create lock file %s: %m", lock_file);
971 /* Read the lock file to find out who has the device locked. */
976 error("Can't open existing lock file %s: %m", lock_file);
987 error("Can't read pid from lock file %s", lock_file);
1001 notice("Removed stale lock on %s (pid %d)", dev, pid);
1004 warn("Couldn't remove stale lock on %s", dev);
1034 * and another process could think the lock was stale if it checked
1053 error("Couldn't reopen lock file %s: %m", lock_file);