Date: Thu, 12 Jun 2008 11:02:56 GMT From: Andre Oppermann <andre@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 143364 for review Message-ID: <200806121102.m5CB2ugV023904@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=143364 Change 143364 by andre@andre_flirtbox on 2008/06/12 11:02:29 Add helper function to get us the uptime in seconds. time_t tcp_uptime(). Affected files ... .. //depot/projects/tcp_new/netinet/tcp_subr.c#3 edit Differences ... ==== //depot/projects/tcp_new/netinet/tcp_subr.c#3 (text+ko) ==== @@ -1986,3 +1986,12 @@ panic("%s: string too long", __func__); return (s); } + +time_t +tcp_uptime(void) +{ + struct bintime bt; + + getbinuptime(&bt); + return (bt.sec); +}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806121102.m5CB2ugV023904>