OSDN Git Service

(split) LDP: Update original to LDP v3.65
[linuxjm/LDP_man-pages.git] / original / man3 / encrypt.3
index 60e5be2..f6fe431 100644 (file)
@@ -1,6 +1,7 @@
-.\" Copyright 2000 Nicolás Lichtmaier <nick@debian.org>
+.\" Copyright 2000 Nicolás Lichtmaier <nick@debian.org>
 .\" Created 2000-07-22 00:52-0300
 .\"
+.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
 .\" This is free documentation; you can redistribute it and/or
 .\" modify it under the terms of the GNU General Public License as
 .\" published by the Free Software Foundation; either version 2 of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 .\" GNU General Public License for more details.
 .\"
+.\" You should have received a copy of the GNU General Public
+.\" License along with this manual; if not, see
+.\" <http://www.gnu.org/licenses/>.
+.\" %%%LICENSE_END
+.\"
 .\" Modified 2002-07-23 19:21:35 CEST 2002 Walter Harms
 .\" <walter.harms@informatik.uni-oldenburg.de>
 .\"
 .\" Modified 2003-04-04, aeb
 .\"
-.TH ENCRYPT 3 2003-04-04 "" "Linux Programmer's Manual"
+.TH ENCRYPT 3 2013-07-22 "" "Linux Programmer's Manual"
 .SH NAME
 encrypt, setkey, encrypt_r, setkey_r \- encrypt 64-bit messages
 .SH SYNOPSIS
-.B #define _XOPEN_SOURCE
+.BR "#define _XOPEN_SOURCE" "       /* See feature_test_macros(7) */"
 .br
 .B #include <unistd.h>
 .sp
 .BI "void encrypt(char " block "[64], int " edflag );
 .sp
-.B #define _XOPEN_SOURCE
+.BR "#define _XOPEN_SOURCE" "       /* See feature_test_macros(7) */"
 .br
 .B #include <stdlib.h>
 .sp
 .BI "void setkey(const char *" key );
 .sp
-.B #define _GNU_SOURCE
+.BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
 .br
 .B "#include <crypt.h>"
 .sp
@@ -104,7 +110,7 @@ Before calling
 set
 .I data\->initialized
 to zero.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 These functions do not return any value.
 .SH ERRORS
 Set
@@ -115,7 +121,20 @@ On success, it is unchanged.
 .B ENOSYS
 The function is not provided.
 (For example because of former USA export restrictions.)
-.SH "CONFORMING TO"
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR encrypt ()
+and
+.BR setkey ()
+functions are not thread-safe.
+.LP
+The
+.BR encrypt_r ()
+and
+.BR setkey_r ()
+functions are thread-safe.
+.SH CONFORMING TO
 The functions
 .BR encrypt ()
 and
@@ -152,9 +171,16 @@ main(void)
     encrypt(txt, 1);   /* decode */
 }
 .fi
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR cbc_crypt (3),
 .BR crypt (3),
 .BR ecb_crypt (3),
-.\" .BR fcrypt (3),
-.BR feature_test_macros (7)
+.\" .BR fcrypt (3)
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.