summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-06-23 21:58:41 +0000
committerpeter <peter@FreeBSD.org>1998-06-23 21:58:41 +0000
commit1fd5135a7be6502d1653b308525604749e10df27 (patch)
treec6b7d0087a790540c3ec8b00af11f56a4e086a30
parent2f3389d400d14f938331b38d9ced2e2c2d6b3e1e (diff)
downloadFreeBSD-src-1fd5135a7be6502d1653b308525604749e10df27.zip
FreeBSD-src-1fd5135a7be6502d1653b308525604749e10df27.tar.gz
Merge ppp 2.3.3 -> 2.3.5 changes (for what it's worth)
-rw-r--r--usr.bin/chat/chat.88
-rw-r--r--usr.bin/chat/chat.c12
2 files changed, 13 insertions, 7 deletions
diff --git a/usr.bin/chat/chat.8 b/usr.bin/chat/chat.8
index dd478ae..26ef735 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.10 1998/03/21 20:46:59 peter Exp $
+.\" $Id: chat.8,v 1.11 1998/06/03 04:21:36 jkoshy Exp $
.\" SH section heading
.\" SS subsection heading
.\" LP paragraph
@@ -65,11 +65,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 via
-.IR syslog (3).
+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 a7bff26..f3676aa0 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.10 1997/12/29 00:08:52 alex Exp $";
+static char rcsid[] = "$Id: chat.c,v 1.11 1998/03/21 20:47:04 peter Exp $";
#endif
#include <stdio.h>
@@ -1412,6 +1412,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>
OpenPOWER on IntegriCloud