head	1.2;
access;
symbols
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1
	RELEASE_6_1_0:1.1
	RELEASE_5_5_0:1.1
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1
	RELEASE_5_2_1:1.1
	RELEASE_5_2_0:1.1
	RELEASE_4_9_0:1.1
	RELEASE_5_1_0:1.1
	RELEASE_4_8_0:1.1
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1
	RELEASE_4_5_0:1.1
	RELEASE_4_4_0:1.1
	RELEASE_4_3_0:1.1
	RELEASE_4_2_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2008.03.16.22.35.35;	author pav;	state dead;
branches;
next	1.1;

1.1
date	2000.10.22.15.36.25;	author trevor;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- Update to 2.1
- Assume maintainership

PR:		ports/121678
Submitted by:	Ganael LAPLANCHE <ganael.laplanche@@martymac.com>
@
text
@--- vlock.c.orig	Sun Oct  8 18:03:19 2000
+++ vlock.c		Sun Oct  8 18:03:24 2000
@@@@ -14,12 +14,10 @@@@
 #include <stdio.h>
 #include <unistd.h>
 #include <fcntl.h>
-#include <getopt.h>
 #include <termios.h>
 #include <signal.h>
-#include <sys/vt.h>
-#include <sys/kd.h>
 #include <sys/ioctl.h>
+#include <sys/consio.h>
 #include "vlock.h"
 #include "version.h"
 
@@@@ -37,20 +35,12 @@@@
 
 int main(int argc, char **argv) {
 
-  static struct option long_options[] = { /* For parsing long arguments */
-    {"current", 0, &o_lock_all, 0},
-    {"all", 0, &o_lock_all, 1},
-    {"version", no_argument, 0, O_VERSION},
-    {"help", no_argument, 0, O_HELP},
-    {0, 0, 0, 0},
-  };
   int option_index; /* Unused */
   int c;
   struct vt_mode vtm;
 
   /* First we parse all the command line arguments */
-  while ((c = getopt_long(argc, argv, "acvh",
-			  long_options, &option_index)) != -1) {
+  while ((c = getopt(argc, argv, "acvh")) != -1) {
     switch(c) {
     case 'c':
       o_lock_all = 0;
@@@@ -107,6 +97,7 @@@@
     vtm.mode = VT_PROCESS;
     vtm.relsig = SIGUSR1; /* handled by release_vt() */
     vtm.acqsig = SIGUSR2; /* handled by acquire_vt() */
+    vtm.frsig = SIGUSR1;  /* needed by FreeBSD */
     ioctl(vfd, VT_SETMODE, &vtm);
   }
 
@


1.1
log
@new port of vlock 1.3, a utility to lock a console until a password
is entered

PR:		21834
Submitted by:	George Reid <services@@nevernet.net>
@
text
@@

