~ubuntu-branches/ubuntu/trusty/vlock/trusty

« back to all changes in this revision

Viewing changes to vlock.h

  • Committer: Bazaar Package Importer
  • Author(s): Zephaniah E. Hull
  • Date: 2003-03-30 15:32:58 UTC
  • Revision ID: james.westby@ubuntu.com-20030330153258-x8mwu3m1fhawq6m3
Tags: upstream-1.3
ImportĀ upstreamĀ versionĀ 1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* vlock.h -- main header file for vlock, the VT locking program for linux
 
2
 *
 
3
 * This program is copyright (C) 1994 Michael K. Johnson, and is free
 
4
 * software which is freely distributable under the terms of the
 
5
 * GNU public license, included as the file COPYING in this
 
6
 * distribution.  It is NOT public domain software, and any
 
7
 * redistribution not permitted by the GNU General Public License is
 
8
 * expressly forbidden without prior written permission from
 
9
 * the author.
 
10
 *
 
11
 */
 
12
 
 
13
#define O_PATTERN 1
 
14
#define O_VERSION 2
 
15
#define O_HELP    3
 
16
 
 
17
 
 
18
void release_vt(int signo);
 
19
void acquire_vt(int signo);
 
20
void set_signal_mask(int save);
 
21
void mask_signals(void);
 
22
void restore_signals(void);
 
23
void set_terminal(int print);
 
24
void restore_terminal(void);
 
25
void get_password(void);
 
26
void init_passwords(void);
 
27
void print_help(int exitcode);
 
28
 
 
29
 
 
30
/* Global variables: */
 
31
 
 
32
/* Option globals: */
 
33
  /* This determines whether the default behavior is to lock only the */
 
34
  /* current VT or all of them.  0 means current, 1 means all. */
 
35
  extern int o_lock_all;
 
36
 
 
37
/* Other globals: */
 
38
  /* Copy of the VT mode when the program was started */
 
39
  extern struct vt_mode ovtm;
 
40
  extern struct termios oterm;
 
41
  extern int vfd;
 
42
  extern int is_vt;