Bug 1370138 - Remove unused getdtablesize stub after landing bug 1346735. r=fkiefer
authorMakoto Kato <m_kato>
Sun, 04 Jun 2017 21:30:00 +0200
changeset 13413 9fe6a993ca42ec7e67320f051b808f3685f9d4bc
parent 13412 a130081b5f20176b447cdfd359405cb16d1b9e65
child 13414 6cc5dcf913de4d24ce0bf4ceac7c89cb6e0f5344
push id2231
push userfranziskuskiefer@gmail.com
push dateTue, 06 Jun 2017 13:34:06 +0000
reviewersfkiefer
bugs1370138, 1346735
Bug 1370138 - Remove unused getdtablesize stub after landing bug 1346735. r=fkiefer
lib/freebl/unix_rand.c
--- a/lib/freebl/unix_rand.c
+++ b/lib/freebl/unix_rand.c
@@ -158,18 +158,16 @@ RNG_kstat(PRUint32 *fed)
     return rv;
 }
 
 #endif
 
 #if defined(SCO) || defined(UNIXWARE) || defined(BSDI) || defined(FREEBSD) || defined(NETBSD) || defined(DARWIN) || defined(OPENBSD) || defined(NTO) || defined(__riscos__) || defined(__GNU__) || defined(__FreeBSD_kernel__) || defined(__NetBSD_kernel__)
 #include <sys/times.h>
 
-#define getdtablesize() sysconf(_SC_OPEN_MAX)
-
 static size_t
 GetHighResClock(void *buf, size_t maxbytes)
 {
     int ticks;
     struct tms buffer;
 
     ticks = times(&buffer);
     return CopyLowBits(buf, maxbytes, &ticks, sizeof(ticks));
@@ -193,18 +191,16 @@ GiveSystemInfo(void)
     RNG_RandomUpdate(&si, sizeof(si));
 }
 #endif
 
 #if defined(__sun)
 #if defined(__svr4) || defined(SVR4)
 #include <sys/systeminfo.h>
 
-#define getdtablesize() sysconf(_SC_OPEN_MAX)
-
 static void
 GiveSystemInfo(void)
 {
     int rv;
     char buf[2000];
 
     rv = sysinfo(SI_MACHINE, buf, sizeof(buf));
     if (rv > 0) {
@@ -250,18 +246,16 @@ GiveSystemInfo(void)
     RNG_RandomUpdate(&si, sizeof(si));
 }
 #endif
 #endif /* Sun */
 
 #if defined(__hpux)
 #include <sys/unistd.h>
 
-#define getdtablesize() sysconf(_SC_OPEN_MAX)
-
 #if defined(__ia64)
 #include <ia64/sys/inline.h>
 
 static size_t
 GetHighResClock(void *buf, size_t maxbytes)
 {
     PRUint64 t;
 
@@ -371,18 +365,16 @@ GiveSystemInfo(void)
 }
 #endif /* LINUX */
 
 #if defined(NCR)
 
 #include <sys/utsname.h>
 #include <sys/systeminfo.h>
 
-#define getdtablesize() sysconf(_SC_OPEN_MAX)
-
 static size_t
 GetHighResClock(void *buf, size_t maxbytes)
 {
     return 0;
 }
 
 static void
 GiveSystemInfo(void)
@@ -524,18 +516,16 @@ GetHighResClock(void *buf, size_t maxbuf
     memcpy(buf, (char *)&s0[0], cntr_size);
     return CopyLowBits(buf, maxbuf, &s0, cntr_size);
 }
 #endif
 
 #if defined(sony)
 #include <sys/systeminfo.h>
 
-#define getdtablesize() sysconf(_SC_OPEN_MAX)
-
 static size_t
 GetHighResClock(void *buf, size_t maxbytes)
 {
     return 0;
 }
 
 static void
 GiveSystemInfo(void)
@@ -560,18 +550,16 @@ GiveSystemInfo(void)
 
 #if defined(sinix)
 #include <sys/systeminfo.h>
 #include <sys/times.h>
 
 int gettimeofday(struct timeval *, struct timezone *);
 int gethostname(char *, int);
 
-#define getdtablesize() sysconf(_SC_OPEN_MAX)
-
 static size_t
 GetHighResClock(void *buf, size_t maxbytes)
 {
     int ticks;
     struct tms buffer;
 
     ticks = times(&buffer);
     return CopyLowBits(buf, maxbytes, &ticks, sizeof(ticks));
@@ -629,18 +617,16 @@ GiveSystemInfo(void)
         RNG_RandomUpdate(&val, sizeof(val));
     }
 }
 #endif /* BEOS */
 
 #if defined(nec_ews)
 #include <sys/systeminfo.h>
 
-#define getdtablesize() sysconf(_SC_OPEN_MAX)
-
 static size_t
 GetHighResClock(void *buf, size_t maxbytes)
 {
     return 0;
 }
 
 static void
 GiveSystemInfo(void)