File: lib.h

package info (click to toggle)
ngetty 1.0-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 304 kB
  • ctags: 207
  • sloc: ansic: 1,503; makefile: 236; sh: 109; asm: 100
file content (30 lines) | stat: -rw-r--r-- 774 bytes parent folder | download | duplicates (2)
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
#ifndef LIB_H
#define LIB_H

/* Pathname of the login(1) program. */
#define LOGIN "/bin/login"

/* Start ngetty with ohter appl:  /sbin/ngetty -H/path/to/helper 1 2 3 */
// #define NEED_HELPER_OPTION

/* Define one of the next to use C utmp() or utmpx() functions */
// #define HAVE_C_UTMP
// #define HAVE_C_UTMPX

/* Poll only nonnegative fd */
// #define NGETTY_SORT

/* ----- stop changes here ----- */

/* Pathname of the ngetty-helper program. */
#define NGETTY_HELPER "/sbin/ngetty-helper"

extern char **environ;
#define UTMP_SIZE sizeof(struct utmp)

#define GLOBAL_fstat_READ(fd,st,s, len,max_len, plus) \
  fstat(fd,&st) || (unsigned int)(len=st.st_size) > max_len || \
  (s=alloca(len+plus))==0 || const_io((int(*)())read,fd,s,len)

#include "all_defs.h"
#endif