{
ERR_STATE *es;
-#ifdef _OSD_POSIX
- /* In the BS2000-OSD POSIX subsystem, the compiler generates
- * path names in the form "*POSIX(/etc/passwd)".
- * This dirty hack strips them to something sensible.
- * @@@ We shouldn't modify a const string, though.
- */
- if (strncmp(file,"*POSIX(", sizeof("*POSIX(")-1) == 0) {
- char *end;
-
- /* Skip the "*POSIX(" prefix */
- file += sizeof("*POSIX(")-1;
- end = &file[strlen(file)-1];
- if (*end == ')')
- *end = '\0';
- /* Optional: use the basename of the path only. */
- if ((end = strrchr(file, '/')) != NULL)
- file = &end[1];
- }
-#endif
es=ERR_get_state();
es->top=(es->top+1)%ERR_NUM_ERRORS;
* [including the GNU Public Licence.]
*/
+#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <openssl/md4.h>
void do_fp(FILE *f);
void pt(unsigned char *md);
-#if !defined(_OSD_POSIX) && !defined(__DJGPP__)
-int read(int, void *, unsigned int);
-#endif
int main(int argc, char **argv)
{
* [including the GNU Public Licence.]
*/
+#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <openssl/md5.h>
void do_fp(FILE *f);
void pt(unsigned char *md);
-#if !defined(_OSD_POSIX) && !defined(__DJGPP__)
-int read(int, void *, unsigned int);
-#endif
int main(int argc, char **argv)
{
* [including the GNU Public Licence.]
*/
+#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <openssl/ripemd.h>
void do_fp(FILE *f);
void pt(unsigned char *md);
-#if !defined(_OSD_POSIX) && !defined(__DJGPP__)
-int read(int, void *, unsigned int);
-#endif
int main(int argc, char **argv)
{
* [including the GNU Public Licence.]
*/
+#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <openssl/sha.h>
void do_fp(FILE *f);
void pt(unsigned char *md);
-#ifndef _OSD_POSIX
-int read(int, void *, unsigned int);
-#endif
int main(int argc, char **argv)
{
{
ERR_STATE *es;
-#ifdef _OSD_POSIX
- /* In the BS2000-OSD POSIX subsystem, the compiler generates
- * path names in the form "*POSIX(/etc/passwd)".
- * This dirty hack strips them to something sensible.
- * @@@ We shouldn't modify a const string, though.
- */
- if (strncmp(file,"*POSIX(", sizeof("*POSIX(")-1) == 0) {
- char *end;
-
- /* Skip the "*POSIX(" prefix */
- file += sizeof("*POSIX(")-1;
- end = &file[strlen(file)-1];
- if (*end == ')')
- *end = '\0';
- /* Optional: use the basename of the path only. */
- if ((end = strrchr(file, '/')) != NULL)
- file = &end[1];
- }
-#endif
es=ERR_get_state();
es->top=(es->top+1)%ERR_NUM_ERRORS;
* [including the GNU Public Licence.]
*/
+#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <openssl/md4.h>
void do_fp(FILE *f);
void pt(unsigned char *md);
-#if !defined(_OSD_POSIX) && !defined(__DJGPP__)
-int read(int, void *, unsigned int);
-#endif
int main(int argc, char **argv)
{
* [including the GNU Public Licence.]
*/
+#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <openssl/md5.h>
void do_fp(FILE *f);
void pt(unsigned char *md);
-#if !defined(_OSD_POSIX) && !defined(__DJGPP__)
-int read(int, void *, unsigned int);
-#endif
int main(int argc, char **argv)
{
* [including the GNU Public Licence.]
*/
+#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <openssl/ripemd.h>
void do_fp(FILE *f);
void pt(unsigned char *md);
-#if !defined(_OSD_POSIX) && !defined(__DJGPP__)
-int read(int, void *, unsigned int);
-#endif
int main(int argc, char **argv)
{
* [including the GNU Public Licence.]
*/
+#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <openssl/sha.h>
void do_fp(FILE *f);
void pt(unsigned char *md);
-#ifndef _OSD_POSIX
-int read(int, void *, unsigned int);
-#endif
int main(int argc, char **argv)
{