lock(1): Do not require 'options COMPAT_43' in the kernel config.
authorSascha Wildner <saw@online.de>
Fri, 29 Mar 2013 10:02:49 +0000 (11:02 +0100)
committerSascha Wildner <saw@online.de>
Fri, 29 Mar 2013 10:02:49 +0000 (11:02 +0100)
commit8c2d08b4efc399e492f2bdde40e30634ad7e094f
tree8e4d3a74dc7ab75d60bc079d8be78ff781aeb1de
parent472c99c8b5795c92cc61402e8efa56daa69be062
lock(1): Do not require 'options COMPAT_43' in the kernel config.

We commented out COMPAT_43 in our configs some time ago, which broke
lock(1) that needed TIOCGETP and TIOCSETP ioctls which are only
available with COMPAT_43.

This commit converts lock(1) to use tcgetattr(3) and tcsetattr(3),
along with some minor cleanups.

Reported-by: noway on #dragonflybsd
Submitted-by: Joris Giovannangeli <joris@giovannangeli.fr>
Taken-from:   FreeBSD
usr.bin/lock/lock.c