#, fuzzy msgid "" msgstr "" "Project-Id-Version: man-pages-l10n VERSION\n" "POT-Creation-Date: 2014-07-17 17:58+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages-posix/man3p/crypt.3p:2 #, no-wrap msgid "CRYPT" msgstr "" #. type: TH #: man-pages-posix/man3p/crypt.3p:2 #, no-wrap msgid "2013" msgstr "" #. type: TH #: man-pages-posix/man3p/crypt.3p:2 #, no-wrap msgid "IEEE/The Open Group" msgstr "" #. type: TH #: man-pages-posix/man3p/crypt.3p:2 #, no-wrap msgid "POSIX Programmer's Manual" msgstr "" #. type: SH #: man-pages-posix/man3p/crypt.3p:3 #, no-wrap msgid "PROLOG" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:8 msgid "" "This manual page is part of the POSIX Programmer's Manual. The Linux " "implementation of this interface may differ (consult the corresponding Linux " "manual page for details of Linux behavior), or the interface may not be " "implemented on Linux." msgstr "" #. type: SH #: man-pages-posix/man3p/crypt.3p:9 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:13 msgid "crypt \\(em string encoding function (B)" msgstr "" #. type: SH #: man-pages-posix/man3p/crypt.3p:13 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:17 #, no-wrap msgid "#include Eunistd.hE\n" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:19 #, no-wrap msgid "char *crypt(const char *I, const char *I);\n" msgstr "" #. type: SH #: man-pages-posix/man3p/crypt.3p:20 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:25 msgid "" "The I() function is a string encoding function. The algorithm is " "implementation-defined." msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:32 msgid "" "The I argument points to a string to be encoded. The I argument " "shall be a string of at least two bytes in length not including the null " "character chosen from the set:" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:39 #, no-wrap msgid "" "B<\n" "a b c d e f g h i j k l m n o p q r s t u v w x y z\n" "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z\n" "0 1 2 3 4 5 6 7 8 9 . />\n" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:45 msgid "" "The first two bytes of this string may be used to perturb the encoding " "algorithm." msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:49 msgid "" "The return value of I() points to static data that is overwritten by " "each call." msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:53 msgid "The I() function need not be thread-safe." msgstr "" #. type: SH #: man-pages-posix/man3p/crypt.3p:53 #, no-wrap msgid "RETURN VALUE" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:62 msgid "" "Upon successful completion, I() shall return a pointer to the " "encoded string. The first two bytes of the returned value shall be those of " "the I argument. Otherwise, it shall return a null pointer and set " "I to indicate the error." msgstr "" #. type: SH #: man-pages-posix/man3p/crypt.3p:62 #, no-wrap msgid "ERRORS" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:66 msgid "The I() function shall fail if:" msgstr "" #. type: TP #: man-pages-posix/man3p/crypt.3p:66 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:69 msgid "The functionality is not supported on this implementation." msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:71 msgid "I" msgstr "" #. type: SH #: man-pages-posix/man3p/crypt.3p:71 #, no-wrap msgid "EXAMPLES" msgstr "" #. type: SS #: man-pages-posix/man3p/crypt.3p:72 #, no-wrap msgid "Encoding Passwords" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:85 msgid "" "The following example finds a user database entry matching a particular user " "name and changes the current password to a new password. The I() " "function generates an encoded version of each password. The first call to " "I() produces an encoded version of the old password; that encoded " "password is then compared to the password stored in the user database. The " "second call to I() encodes the new password before it is stored." msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:89 msgid "" "The I() function, used in the following example, is not part of " "POSIX.1\\(hy2008." msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:123 #, no-wrap msgid "" "B<\n" "#include Eunistd.hE\n" "#include Epwd.hE\n" "#include Estring.hE\n" "#include Estdio.hE\n" "\\&...\n" "int valid_change;\n" "int pfd; /* Integer for file descriptor returned by open(). */\n" "FILE *fpfd; /* File pointer for use in putpwent(). */\n" "struct passwd *p;\n" "char user[100];\n" "char oldpasswd[100];\n" "char newpasswd[100];\n" "char savepasswd[100];\n" "\\&...\n" "valid_change = 0;\n" "while ((p = getpwent()) != NULL) {\n" " /* Change entry if found. */\n" " if (strcmp(p-Epw_name, user) == 0) {\n" " if (strcmp(p-Epw_passwd, crypt(oldpasswd, p-Epw_passwd)) == " "0) {\n" " strcpy(savepasswd, crypt(newpasswd, user));\n" " p-Epw_passwd = savepasswd;\n" " valid_change = 1;\n" " }\n" " else {\n" " fprintf(stderr, \"Old password is not valid\\en\");\n" " }\n" " }\n" " /* Put passwd entry into ptmp. */\n" " putpwent(p, fpfd);\n" "}>\n" msgstr "" #. type: SH #: man-pages-posix/man3p/crypt.3p:126 #, no-wrap msgid "APPLICATION USAGE" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:129 msgid "" "The values returned by this function need not be portable among XSI-" "conformant systems." msgstr "" #. type: SH #: man-pages-posix/man3p/crypt.3p:129 #, no-wrap msgid "RATIONALE" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:131 man-pages-posix/man3p/crypt.3p:133 msgid "None." msgstr "" #. type: SH #: man-pages-posix/man3p/crypt.3p:131 #, no-wrap msgid "FUTURE DIRECTIONS" msgstr "" #. type: SH #: man-pages-posix/man3p/crypt.3p:133 #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:136 msgid "I\\^(\\|), I\\^(\\|)" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:139 msgid "The Base Definitions volume of POSIX.1\\(hy2008, Bunistd.hE>" msgstr "" #. type: SH #: man-pages-posix/man3p/crypt.3p:139 #, no-wrap msgid "COPYRIGHT" msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:150 msgid "" "Portions of this text are reprinted and reproduced in electronic form from " "IEEE Std 1003.1, 2013 Edition, Standard for Information Technology -- " "Portable Operating System Interface (POSIX), The Open Group Base " "Specifications Issue 7, Copyright (C) 2013 by the Institute of Electrical " "and Electronics Engineers, Inc and The Open Group. (This is POSIX.1-2008 " "with the 2013 Technical Corrigendum 1 applied.) In the event of any " "discrepancy between this version and the original IEEE and The Open Group " "Standard, the original IEEE and The Open Group Standard is the referee " "document. The original Standard can be obtained online at http://www.unix." "org/online.html ." msgstr "" #. type: Plain text #: man-pages-posix/man3p/crypt.3p:155 msgid "" "Any typographical or formatting errors that appear in this page are most " "likely to have been introduced during the conversion of the source files to " "man page format. To report such errors, see https://www.kernel.org/doc/man-" "pages/reporting_bugs.html ." msgstr ""