File: libinetutils.h

package info (click to toggle)
inetutils 2%3A1.6-3.1%2Bsqueeze2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 8,972 kB
  • ctags: 7,360
  • sloc: ansic: 58,631; sh: 5,284; yacc: 1,151; makefile: 498; perl: 47
file content (41 lines) | stat: -rw-r--r-- 1,813 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* This file is part of GNU inetutils
   Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc.

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public
   License as published by the Free Software Foundation; either
   version 3 of the License, or (at your option) any later version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   General Public License for more details.

   You should have received a copy of the GNU General
   Public License along with this library; if not, write to the
   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301 USA */

#include "config.h"

void utmp_init (char *line, char *user, char *id);
char *utmp_ptsid (char *line, char *tag);
void utmp_logout (char *line);
char *localhost (void);
void logwtmp (const char *, const char *, const char *);
void cleanup_session (char *tty, int pty_fd);
void logwtmp_keep_open (char *line, char *name, char *host);

/* Convenience macro for argp.  */
#define ARGP_PROGRAM_DATA_SIMPLE(name, year)				\
  const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">";	\
  const char *argp_program_version =					\
    name " (" PACKAGE_NAME ") " PACKAGE_VERSION "\n"			\
    "\n"								\
    "License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n" \
    "This is free software: you are free to change and redistribute it.\n" \
    "There is NO WARRANTY, to the extent permitted by law.\n\n"

#define ARGP_PROGRAM_DATA(name, year, authors)				\
	ARGP_PROGRAM_DATA_SIMPLE(name, year)                            \
        "Written by " authors "."