diff options
author | obrien <obrien@FreeBSD.org> | 2000-12-09 09:35:55 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-12-09 09:35:55 +0000 |
commit | c2ee1dcc02035d781d6c70f06df7106979a9f870 (patch) | |
tree | 757810dc1fdd19be4c8125ccb9e8beb1aff3d929 /usr.sbin/pcvt | |
parent | c174181f432119d1dae3f5e58ecc14c8d7b6f545 (diff) | |
download | FreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.zip FreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.tar.gz |
Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
Diffstat (limited to 'usr.sbin/pcvt')
-rw-r--r-- | usr.sbin/pcvt/cursor/cursor.c | 5 | ||||
-rw-r--r-- | usr.sbin/pcvt/vttest/main.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/pcvt/cursor/cursor.c b/usr.sbin/pcvt/cursor/cursor.c index 1c7c140..e4da01a 100644 --- a/usr.sbin/pcvt/cursor/cursor.c +++ b/usr.sbin/pcvt/cursor/cursor.c @@ -34,7 +34,7 @@ */ static char *id = - "@(#)cursor.c, 3.20, Last Edit-Date: [Tue Apr 4 12:27:54 1995]"; + "@(#)cursor.c, 3.20, Last Edit-Date: [Tue Apr 4 12:27:54 1995]\n$FreeBSD$"; /*---------------------------------------------------------------------------* * @@ -48,6 +48,7 @@ static char *id = #include <fcntl.h> #include <sys/stat.h> #include <machine/pcvt_ioctl.h> +#include <paths.h> #define DEFAULTFD 0 @@ -148,7 +149,7 @@ usage() { fprintf(stderr,"\ncursor - set cursor shape for pcvt video driver\n"); fprintf(stderr,"usage: cursor -d [device] -n [no] -s [line] -e [line]\n"); - fprintf(stderr," -d <device> device to use (/dev/ttyvX), default current\n"); + fprintf(stderr," -d <device> device to use (%svX), default current\n", _PATH_TTY); fprintf(stderr," -n <no> screen no if specified, else current screen\n"); fprintf(stderr," -s <line> start scan line (topmost scan line)\n"); fprintf(stderr," -e <line> ending scan line (bottom scan line)\n\n"); diff --git a/usr.sbin/pcvt/vttest/main.c b/usr.sbin/pcvt/vttest/main.c index 02cbc62..341de73 100644 --- a/usr.sbin/pcvt/vttest/main.c +++ b/usr.sbin/pcvt/vttest/main.c @@ -15,6 +15,8 @@ choice to the address below. */ +/* $FreeBSD$ */ + #include "header.h" char inchar(), *instr(), *lookup(); @@ -1846,7 +1848,7 @@ initterminal(pn) int pn; { stty(0,&sgttyNew); #ifdef SIII close(2); - open("/dev/tty",O_RDWR|O_NDELAY); + open(_PATH_TTY,O_RDWR|O_NDELAY); #endif #endif #ifdef SARG10 |