]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-solaris.c
pppd: linux: use monotonic time if possible
[ppp.git] / pppd / sys-solaris.c
index 50ce3dfac2d39a28e1ba26a3e5175f6bc0a73388..83b1815080cd60be33e0e02aa283ed6bbb73b4be 100644 (file)
 #include <sys/dlpi.h>
 #include <sys/stat.h>
 #include <sys/mkdev.h>
+#include <sys/time.h>
 #include <net/if.h>
 #include <net/if_arp.h>
 #include <net/route.h>
@@ -1225,6 +1226,9 @@ set_up_tty(fd, local)
     }
 #endif
 
+    if (stop_bits >= 2)
+       tios.c_cflag |= CSTOPB;
+
     tios.c_cflag |= CS8 | CREAD | HUPCL;
     if (local || !modem)
        tios.c_cflag |= CLOCAL;
@@ -2780,3 +2784,13 @@ get_pty(master_fdp, slave_fdp, slave_name, uid)
 
     return 1;
 }
+
+/********************************************************************
+ *
+ * get_time - Get current time, monotonic if possible.
+ */
+int
+get_time(struct timeval *tv)
+{
+    return gettimeofday(tv, NULL);
+}