Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1434)

Unified Diff: mozilla/nsprpub/pr/src/md/unix/uxrng.c

Issue 12089033: Update to NSPR 4.9.5 Beta 2, part 2: actual changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mozilla/nsprpub/pr/src/md/unix/uxproces.c ('k') | mozilla/nsprpub/pr/src/md/unix/uxwrap.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mozilla/nsprpub/pr/src/md/unix/uxrng.c
===================================================================
--- mozilla/nsprpub/pr/src/md/unix/uxrng.c (revision 179237)
+++ mozilla/nsprpub/pr/src/md/unix/uxrng.c (working copy)
@@ -25,14 +25,6 @@
return 0;
}
-#elif defined(SUNOS4)
-
-static size_t
-GetHighResClock(void *buf, size_t maxbytes)
-{
- return 0;
-}
-
#elif defined(HPUX)
#ifdef __ia64
@@ -94,7 +86,7 @@
#elif (defined(LINUX) || defined(FREEBSD) || defined(__FreeBSD_kernel__) \
|| defined(NETBSD) || defined(__NetBSD_kernel__) || defined(OPENBSD) \
- || defined(SYMBIAN))
+ || defined(SYMBIAN) || defined(__GNU__))
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -134,14 +126,6 @@
return(GetDevURandom( buf, maxbytes ));
}
-#elif defined(NCR)
-
-static size_t
-GetHighResClock(void *buf, size_t maxbytes)
-{
- return 0;
-}
-
#elif defined(IRIX)
#include <fcntl.h>
#undef PRIVATE
@@ -225,34 +209,6 @@
return _pr_CopyLowBits(buf, maxbuf, &s0, cntr_size);
}
-#elif defined(SONY)
-
-static size_t
-GetHighResClock(void *buf, size_t maxbytes)
-{
- return 0;
-}
-
-#elif defined(SNI)
-#include <sys/times.h>
-
-static size_t
-GetHighResClock(void *buf, size_t maxbytes)
-{
- int ticks;
- struct tms buffer;
-
- ticks=times(&buffer);
- return _pr_CopyLowBits(buf, maxbytes, &ticks, sizeof(ticks));
-}
-
-#elif defined(NEC)
-
-static size_t
-GetHighResClock(void *buf, size_t maxbytes)
-{
- return 0;
-}
#elif defined(SCO) || defined(UNIXWARE) || defined(BSDI) || defined(NTO) \
|| defined(QNX) || defined(DARWIN) || defined(RISCOS)
#include <sys/times.h>
« no previous file with comments | « mozilla/nsprpub/pr/src/md/unix/uxproces.c ('k') | mozilla/nsprpub/pr/src/md/unix/uxwrap.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698