Changeset View
Changeset View
Standalone View
Standalone View
b/cipher/rndunix.c
Context not available. | |||||
/* This is a complex and screwball program. Some systems have things | /* This is a complex and screwball program. Some systems have things | ||||
* like rX_dmn, x = integer, for RAID systems, but the statistics are | * like rX_dmn, x = integer, for RAID systems, but the statistics are | ||||
* pretty dodgy */ | * pretty dodgy */ | ||||
#ifdef __QNXNTO__ | #ifdef __QNXNTO__ | ||||
{ "/bin/pidin", "-F%A%B%c%d%E%I%J%K%m%M%n%N%p%P%S%s%T", SC(0.3), | { "/bin/pidin", "-F%A%B%c%d%E%I%J%K%m%M%n%N%p%P%S%s%T", SC(0.3), | ||||
NULL, 0, 0, 0, 0 }, | NULL, 0, 0, 0, 0 }, | ||||
#endif | #endif | ||||
#if 0 | #if 0 | ||||
/* The following aren't enabled since they're somewhat slow and not very | /* The following aren't enabled since they're somewhat slow and not very | ||||
* unpredictable, however they give an indication of the sort of sources | * unpredictable, however they give an indication of the sort of sources | ||||
Context not available. | |||||
FD_ZERO(&fds); | FD_ZERO(&fds); | ||||
for (i = 0; dataSources[i].path != NULL; i++) { | for (i = 0; dataSources[i].path != NULL; i++) { | ||||
if (dataSources[i].pipe != NULL) { | if (dataSources[i].pipe != NULL) { | ||||
/* FIXME: We need to make sure that PIPEFD is less | |||||
than FD_SETSIZE. */ | |||||
FD_SET(dataSources[i].pipeFD, &fds); | FD_SET(dataSources[i].pipeFD, &fds); | ||||
moreSources = 1; | moreSources = 1; | ||||
} | } | ||||
Context not available. | |||||
#else | #else | ||||
nmax = 20; /* assume a reasonable value */ | nmax = 20; /* assume a reasonable value */ | ||||
#endif | #endif | ||||
{ | { | ||||
int fd; | int fd; | ||||
if ((fd = open ("/dev/null", O_RDWR)) != -1) { | if ((fd = open ("/dev/null", O_RDWR)) != -1) { | ||||
dup2 (fd, STDIN_FILENO); | dup2 (fd, STDIN_FILENO); | ||||
Context not available. |