defs.h (64698) | defs.h (65269) |
---|---|
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 * $FreeBSD: head/usr.sbin/ppp/defs.h 64698 2000-08-16 09:07:23Z brian $ | 18 * $FreeBSD: head/usr.sbin/ppp/defs.h 65269 2000-08-31 00:45:24Z brian $ |
19 * 20 * TODO: 21 */ 22 23/* Check the following definitions for your machine environment */ 24#ifdef __FreeBSD__ 25# define MODEM_LIST "/dev/cuaa1\0/dev/cuaa0" /* name of tty device */ 26#else --- 70 unchanged lines hidden (view full) --- 97 98/* flags passed to findblank() and MakeArgs() */ 99#define PARSE_NORMAL 0 100#define PARSE_REDUCE 1 101#define PARSE_NOHASH 2 102 103#define ROUNDUP(x) ((x) ? (1 + (((x) - 1) | (sizeof(long) - 1))) : sizeof(long)) 104 | 19 * 20 * TODO: 21 */ 22 23/* Check the following definitions for your machine environment */ 24#ifdef __FreeBSD__ 25# define MODEM_LIST "/dev/cuaa1\0/dev/cuaa0" /* name of tty device */ 26#else --- 70 unchanged lines hidden (view full) --- 97 98/* flags passed to findblank() and MakeArgs() */ 99#define PARSE_NORMAL 0 100#define PARSE_REDUCE 1 101#define PARSE_NOHASH 2 102 103#define ROUNDUP(x) ((x) ? (1 + (((x) - 1) | (sizeof(long) - 1))) : sizeof(long)) 104 |
105#if defined(__NetBSD__) || __FreeBSD__ < 3 |
|
105extern void randinit(void); | 106extern void randinit(void); |
107#else 108#define random arc4random 109#define randinit() 110#endif 111 |
|
106extern ssize_t fullread(int, void *, size_t); 107extern const char *mode2Nam(int); 108extern int Nam2mode(const char *); 109extern struct in_addr GetIpAddr(const char *); 110extern int SpeedToInt(speed_t); 111extern speed_t IntToSpeed(int); 112extern char *findblank(char *, int); 113extern int MakeArgs(char *, char **, int, int); 114extern const char *NumStr(long, char *, size_t); 115extern const char *HexStr(long, char *, size_t); 116extern const char *ex_desc(int); 117extern void SetTitle(const char *); | 112extern ssize_t fullread(int, void *, size_t); 113extern const char *mode2Nam(int); 114extern int Nam2mode(const char *); 115extern struct in_addr GetIpAddr(const char *); 116extern int SpeedToInt(speed_t); 117extern speed_t IntToSpeed(int); 118extern char *findblank(char *, int); 119extern int MakeArgs(char *, char **, int, int); 120extern const char *NumStr(long, char *, size_t); 121extern const char *HexStr(long, char *, size_t); 122extern const char *ex_desc(int); 123extern void SetTitle(const char *); |