Deleted Added
full compact
defs.h (36452) defs.h (36465)
1/*
2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
3 *
4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
5 *
6 * Redistribution and use in source and binary forms are permitted
7 * provided that the above copyright notice and this paragraph are
8 * duplicated in all such forms and that any documentation,
9 * advertising materials, and other materials related to such
10 * distribution and use acknowledge that the software was developed
11 * by the Internet Initiative Japan. The name of the
12 * IIJ may not be used to endorse or promote products derived
13 * from this software without specific prior written permission.
14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 *
1/*
2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
3 *
4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
5 *
6 * Redistribution and use in source and binary forms are permitted
7 * provided that the above copyright notice and this paragraph are
8 * duplicated in all such forms and that any documentation,
9 * advertising materials, and other materials related to such
10 * distribution and use acknowledge that the software was developed
11 * by the Internet Initiative Japan. The name of the
12 * IIJ may not be used to endorse or promote products derived
13 * from this software without specific prior written permission.
14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 *
18 * $Id: defs.h,v 1.30 1998/05/21 21:45:05 brian Exp $
18 * $Id: defs.h,v 1.31 1998/05/28 23:17:40 brian Exp $
19 *
20 * TODO:
21 */
22
23/* Check the following definitions for your machine environment */
24#ifdef __FreeBSD__
25# define MODEM_LIST "/dev/cuaa1, /dev/cuaa0" /* name of tty device */
26#else

--- 40 unchanged lines hidden (view full) ---

67#define EX_REBOOT 7
68#define EX_ERRDEAD 8
69#define EX_HANGUP 10
70#define EX_TERM 11
71#define EX_NODIAL 12
72#define EX_NOLOGIN 13
73
74/* physical::type values (OR'd in bundle::phys_type) */
19 *
20 * TODO:
21 */
22
23/* Check the following definitions for your machine environment */
24#ifdef __FreeBSD__
25# define MODEM_LIST "/dev/cuaa1, /dev/cuaa0" /* name of tty device */
26#else

--- 40 unchanged lines hidden (view full) ---

67#define EX_REBOOT 7
68#define EX_ERRDEAD 8
69#define EX_HANGUP 10
70#define EX_TERM 11
71#define EX_NODIAL 12
72#define EX_NOLOGIN 13
73
74/* physical::type values (OR'd in bundle::phys_type) */
75#define PHYS_NONE 0
76#define PHYS_MANUAL 1 /* Manual link */
77#define PHYS_DEMAND 2 /* Dial-on-demand link (-auto) */
78#define PHYS_DIRECT 4 /* Incoming link (-direct) */
79#define PHYS_DEDICATED 8 /* Dedicated link (-dedicated) */
80#define PHYS_PERM 16 /* Dial immediately, stay connected (-ddial) */
81#define PHYS_1OFF 32 /* Dial immediately, delete when done. (-background) */
82#define PHYS_ALL 63
75#define PHYS_NONE 0
76#define PHYS_INTERACTIVE 1 /* Manual link */
77#define PHYS_AUTO 2 /* Dial-on-demand link */
78#define PHYS_DIRECT 4 /* Incoming link, deleted when closed */
79#define PHYS_DEDICATED 8 /* Dedicated link */
80#define PHYS_DDIAL 16 /* Dial immediately, stay connected */
81#define PHYS_BACKGROUND 32 /* Dial immediately, deleted when closed */
82#define PHYS_ALL 63
83
84extern void randinit(void);
85extern ssize_t fullread(int, void *, size_t);
86extern const char *mode2Nam(int);
87extern int Nam2mode(const char *);
83
84extern void randinit(void);
85extern ssize_t fullread(int, void *, size_t);
86extern const char *mode2Nam(int);
87extern int Nam2mode(const char *);