From: Al Thomas Date: Tue, 27 Oct 2015 16:28:36 +0000 (+0100) Subject: posix: add crypt(), deprecate getpass() X-Git-Tag: 0.31.1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33fb6fb5b719e9d64968ea87e0b19fdfab313fd6;p=thirdparty%2Fvala.git posix: add crypt(), deprecate getpass() Fixes bug 756315 --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index fee343e04..d39e394f8 100644 --- a/vapi/posix.vapi +++ b/vapi/posix.vapi @@ -1913,8 +1913,16 @@ namespace Posix { public void setusershell (); [CCode (cheader_filename = "unistd.h")] public int chroot (string path); + [Deprecated (since = "POSIX.2", replacement = "termios ECHO flag")] [CCode (cheader_filename = "unistd.h")] public unowned string getpass (string promt); + /** To expose Posix crypt() GNU's libc and others require the feature test + * macro _XOPEN_SOURCE to be defined. See man 3 crypt + * A VAPI is unable to define and emit this macro before all include files + * Instead use valac -X -D_XOPEN_SOURCE + */ + [CCode (cheader_filename = "unistd.h")] + public unowned string crypt (string key, string salt); [CCode (cheader_filename = "unistd.h")] public int getpagesize (); [CCode (cheader_filename = "unistd.h")]