Blame src/vlock/vlock.h

Packit Service 50ad14
Packit Service 50ad14
/*
Packit Service 50ad14
Packit Service 50ad14
  Main header for vlock, the VT locking program for linux.
Packit Service 50ad14
Packit Service 50ad14
  Copyright (C) 1994-1998 Michael K. Johnson <johnsonm@redhat.com>
Packit Service 50ad14
  Copyright (C) 2002, 2005 Dmitry V. Levin <ldv@altlinux.org>
Packit Service 50ad14
Packit Service 50ad14
  This program is free software; you can redistribute it and/or modify
Packit Service 50ad14
  it under the terms of the GNU General Public License as published by
Packit Service 50ad14
  the Free Software Foundation; either version 2 of the License, or
Packit Service 50ad14
  (at your option) any later version.
Packit Service 50ad14
Packit Service 50ad14
  This program is distributed in the hope that it will be useful,
Packit Service 50ad14
  but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 50ad14
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Packit Service 50ad14
  GNU General Public License for more details.
Packit Service 50ad14
Packit Service 50ad14
  You should have received a copy of the GNU General Public License
Packit Service 50ad14
  along with this program; if not, write to the Free Software
Packit Service 50ad14
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Packit Service 50ad14
*/
Packit Service 50ad14
Packit Service 50ad14
int init_vt(const char *tty);
Packit Service 50ad14
void restore_vt(void);
Packit Service 50ad14
Packit Service 50ad14
void init_screen(void);
Packit Service 50ad14
void restore_screen(void);
Packit Service 50ad14
Packit Service 50ad14
const char *get_username(void);
Packit Service 50ad14
Packit Service 50ad14
void parse(int ac, char *const av[]);
Packit Service 50ad14
Packit Service 50ad14
const char *locked_name(void);
Packit Service 50ad14
Packit Service 50ad14
/*
Packit Service 50ad14
 * This determines whether the default behavior is to lock only the
Packit Service 50ad14
 * current VT or all of them.
Packit Service 50ad14
 * 0 means current, 1 means all.
Packit Service 50ad14
 */
Packit Service 50ad14
extern int o_lock_all;
Packit Service 50ad14
Packit Service 50ad14
/* Copy of the VT mode when the program was started. */
Packit Service 50ad14
extern int is_vt;