From a435bcdf6fb2cae203a80f8fa8abf4ec09b5d99b Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Fri, 18 Apr 2014 21:11:01 +0000 Subject: Unsurprisingly, since was so darn hard to find for OpenSSL developers they had resorted to manually protyping read(2) instead of incredible amount of preprocessor wizardry needed to find the ever illusive . Let's just include and we don't need to do this.. While we're at it flense out _OSD_POSIX and __DGJPP__ cruft. ok krw@ --- lib/libcrypto/err/err.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'lib/libcrypto/err') diff --git a/lib/libcrypto/err/err.c b/lib/libcrypto/err/err.c index afc3130d08a..27a19bc52c9 100644 --- a/lib/libcrypto/err/err.c +++ b/lib/libcrypto/err/err.c @@ -697,25 +697,6 @@ void ERR_put_error(int lib, int func, int reason, const char *file, { 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; -- cgit v1.2.3