~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/src/md/unix/uxrng.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-08-10 11:34:26 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090810113426-3uv4diflrkcbdimm
Tags: 4.8-0ubuntu1
* New upstream release: 4.8 (LP: #387812)
* adjust patches to changed upstreanm codebase
  - update debian/patches/99_configure.patch
* update shlibs symbols to include new API elements
  - update debian/libnspr4-0d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
    return _pr_CopyLowBits(buf, maxbytes, &t, sizeof(t));
113
113
}
114
114
 
115
 
#elif defined(VMS)
116
 
 
117
 
#include <ints.h>
118
 
 
119
 
/*
120
 
 * Use the "get the cycle counter" instruction on the alpha.
121
 
 * The low 32 bits completely turn over in less than a minute.
122
 
 * The high 32 bits are some non-counter gunk that changes sometimes.
123
 
 */
124
 
static size_t
125
 
GetHighResClock(void *buf, size_t maxbytes)
126
 
{
127
 
    uint64 t;
128
 
 
129
 
    t = __RPCC();
130
 
    return _pr_CopyLowBits(buf, maxbytes, &t, sizeof(t));
131
 
}
132
 
 
133
115
#elif defined(AIX)
134
116
 
135
117
static size_t