diff options
author | Ken Brown <kbrown@cornell.edu> | 2016-06-08 17:04:06 -0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-06-09 16:37:15 +0200 |
commit | a6a73982322dfcb2c05360a058c59d179b4fe144 (patch) | |
tree | 4716baf1dfdbaa6700e324dee5a918af3fefe5b5 | |
parent | b1f63ce874de0c00ba8764f9c7967cf467a236b4 (diff) | |
download | cygnal-a6a73982322dfcb2c05360a058c59d179b4fe144.tar.gz cygnal-a6a73982322dfcb2c05360a058c59d179b4fe144.tar.bz2 cygnal-a6a73982322dfcb2c05360a058c59d179b4fe144.zip |
Declare crypt, encrypt, and setkey per Posix
-rw-r--r-- | newlib/libc/include/stdlib.h | 3 | ||||
-rw-r--r-- | newlib/libc/include/sys/unistd.h | 6 |
2 files changed, 9 insertions, 0 deletions
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 |