From a6a73982322dfcb2c05360a058c59d179b4fe144 Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Wed, 8 Jun 2016 17:04:06 -0400 Subject: [PATCH] Declare crypt, encrypt, and setkey per Posix --- newlib/libc/include/stdlib.h | 3 +++ newlib/libc/include/sys/unistd.h | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h index 3194d6bc5..3d1b8a9b0 100644 --- a/newlib/libc/include/stdlib.h +++ b/newlib/libc/include/stdlib.h @@ -144,6 +144,9 @@ char * _EXFUN(realpath, (const char *__restrict path, char *__restrict resolved_ #if __BSD_VISIBLE int _EXFUN(rpmatch, (const char *response)); #endif +#if __XSI_VISIBLE +_VOID _EXFUN(setkey, (const char *__key)); +#endif _VOID _EXFUN(srand,(unsigned __seed)); double _EXFUN(strtod,(const char *__restrict __n, char **__restrict __end_PTR)); double _EXFUN(_strtod_r,(struct _reent *,const char *__restrict __n, char **__restrict __end_PTR)); diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index ef00575b5..05b4f9d8e 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -31,6 +31,9 @@ int _EXFUN(close, (int __fildes )); #if __POSIX_VISIBLE >= 199209 size_t _EXFUN(confstr, (int __name, char *__buf, size_t __len)); #endif +#if __XSI_VISIBLE +char * _EXFUN(crypt, (const char *__key, const char *__salt)); +#endif #if __XSI_VISIBLE && __XSI_VISIBLE < 700 char * _EXFUN(ctermid, (char *__s )); #endif @@ -46,6 +49,9 @@ int _EXFUN(dup2, (int __fildes, int __fildes2 )); int _EXFUN(dup3, (int __fildes, int __fildes2, int flags)); int _EXFUN(eaccess, (const char *__path, int __mode)); #endif +#if __XSI_VISIBLE +void _EXFUN(encrypt, (char *__block, int __edflag)); +#endif #if __BSD_VISIBLE || (__XSI_VISIBLE && __XSI_VISIBLE < 500) void _EXFUN(endusershell, (void)); #endif