X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-solaris.c;h=83b1815080cd60be33e0e02aa283ed6bbb73b4be;hb=c78e3129d404f20d556f727ceee3704722de8cc7;hp=50ce3dfac2d39a28e1ba26a3e5175f6bc0a73388;hpb=1c8af01fd1c14975b6ea9d757578ccbcafd97abb;p=ppp.git diff --git a/pppd/sys-solaris.c b/pppd/sys-solaris.c index 50ce3df..83b1815 100644 --- a/pppd/sys-solaris.c +++ b/pppd/sys-solaris.c @@ -114,6 +114,7 @@ #include #include #include +#include #include #include #include @@ -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); +}