aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1998-06-23 21:52:58 +0000
committerPeter Wemm <peter@FreeBSD.org>1998-06-23 21:52:58 +0000
commitcbe7f651a6c2c5a59166b660fe0826ef1e895bcc (patch)
tree7a728c848dee4133383ca663e5d1a63d3dbbd1f6
parented5822233844a78d1f073ca5d0f1b2314dc8923e (diff)
downloadsrc-cbe7f651a6c2c5a59166b660fe0826ef1e895bcc.tar.gz
src-cbe7f651a6c2c5a59166b660fe0826ef1e895bcc.zip
Import chat from pppd 2.3.5 onto vendor branch.
Notes
Notes: svn path=/vendor/pppd/dist/; revision=37124
-rw-r--r--usr.bin/chat/chat.87
-rw-r--r--usr.bin/chat/chat.c12
2 files changed, 13 insertions, 6 deletions
diff --git a/usr.bin/chat/chat.8 b/usr.bin/chat/chat.8
index 634d9a4b522f..2612d67ff775 100644
--- a/usr.bin/chat/chat.8
+++ b/usr.bin/chat/chat.8
@@ -1,6 +1,6 @@
.\" -*- nroff -*-
.\" manual page [] for chat 1.8
-.\" $Id: chat.8,v 1.6 1997/11/27 06:00:06 paulus Exp $
+.\" $Id: chat.8,v 1.7 1998/02/04 01:35:49 paulus Exp $
.\" SH section heading
.\" SS subsection heading
.\" LP paragraph
@@ -61,10 +61,7 @@ Request that the \fIchat\fR script be executed in a stderr verbose
mode. The \fIchat\fR program will then log all text received from the
modem and the output strings sent to the modem to the stderr device. This
device is usually the local console at the station running the chat or
-pppd program. This option will not work properly if the stderr is
-redirected to the /dev/null location as is the case should pppd be run
-in the 'detached' mode. In that case, use the '-v' option to record
-the session on the SYSLOG device.
+pppd program.
.TP
.B -s
Use stderr. All log messages from '-v' and all error messages will be
diff --git a/usr.bin/chat/chat.c b/usr.bin/chat/chat.c
index 3e77a714749f..409285666644 100644
--- a/usr.bin/chat/chat.c
+++ b/usr.bin/chat/chat.c
@@ -78,7 +78,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: chat.c,v 1.17 1997/11/27 06:37:15 paulus Exp $";
+static char rcsid[] = "$Id: chat.c,v 1.19 1998/03/24 23:57:48 paulus Exp $";
#endif
#include <stdio.h>
@@ -1414,6 +1414,16 @@ register char *string;
return (0);
}
+/*
+ * Gross kludge to handle Solaris versions >= 2.6 having usleep.
+ */
+#ifdef SOL2
+#include <sys/param.h>
+#if MAXUID > 65536 /* then this is Solaris 2.6 or later */
+#undef NO_USLEEP
+#endif
+#endif /* SOL2 */
+
#ifdef NO_USLEEP
#include <sys/types.h>
#include <sys/time.h>