<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: crypt () function in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974239#M928124</link>
    <description>The function prototype isd iin unistd.h. You could, in fact, simply &lt;BR /&gt;&lt;BR /&gt;extern char *crypt(const char *key, const char *salt);&lt;BR /&gt;&lt;BR /&gt;without the header but there's no need. Simply #include &lt;UNISTD.H&gt; and all is well.&lt;/UNISTD.H&gt;</description>
    <pubDate>Thu, 15 May 2003 12:56:55 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2003-05-15T12:56:55Z</dc:date>
    <item>
      <title>crypt () function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974237#M928122</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I am compiling a program that, uses crypt( ) funtion. I check the man page, and this funtion should be in :&lt;BR /&gt;&lt;BR /&gt;      #include &lt;CRYPT.H&gt;&lt;BR /&gt;      #include &lt;UNISTD.H&gt;&lt;BR /&gt;&lt;BR /&gt;But I can 't find any reference to crypt ( ) funtion in any of the above headers, but there is plenty reference to obsolescent one "crypt_r ( )". &lt;BR /&gt;&lt;BR /&gt;Does anyone know any patch that I should use, I couldn't find any.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;__Mehdi&lt;/UNISTD.H&gt;&lt;/CRYPT.H&gt;</description>
      <pubDate>Thu, 15 May 2003 12:44:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974237#M928122</guid>
      <dc:creator>Mehdi_1</dc:creator>
      <dc:date>2003-05-15T12:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: crypt () function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974238#M928123</link>
      <description>On my 11.11 system it's here:&lt;BR /&gt;&lt;BR /&gt;/usr/include/sys/unistd.h:        extern char *crypt __((const char *, const char *));&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.</description>
      <pubDate>Thu, 15 May 2003 12:55:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974238#M928123</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-05-15T12:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: crypt () function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974239#M928124</link>
      <description>The function prototype isd iin unistd.h. You could, in fact, simply &lt;BR /&gt;&lt;BR /&gt;extern char *crypt(const char *key, const char *salt);&lt;BR /&gt;&lt;BR /&gt;without the header but there's no need. Simply #include &lt;UNISTD.H&gt; and all is well.&lt;/UNISTD.H&gt;</description>
      <pubDate>Thu, 15 May 2003 12:56:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974239#M928124</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-05-15T12:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: crypt () function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974240#M928125</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;11.0&lt;BR /&gt;/usr/include/crypt.h&lt;BR /&gt;&lt;BR /&gt;/usr/conf/h/unistd.h&lt;BR /&gt;/usr/include/sys/unistd.h&lt;BR /&gt;/usr/include/unistd.h&lt;BR /&gt;&lt;BR /&gt;Hope it helps,&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Thu, 15 May 2003 13:06:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974240#M928125</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-05-15T13:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: crypt () function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974241#M928126</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;Thanks for the replies.&lt;BR /&gt;&lt;BR /&gt;I 've got 11.00 box, and  I can't see any sign of "crypt()" prototype any any of the :&lt;BR /&gt;&lt;BR /&gt;#include &lt;CRYPT.H&gt; &lt;BR /&gt;#include &lt;UNISTD.H&gt; &lt;BR /&gt;&lt;BR /&gt;headers. I 've added the prototype from the man pages:&lt;BR /&gt;&lt;BR /&gt;char *crypt(const char *key, const char *salt);&lt;BR /&gt;&lt;BR /&gt;and the program compiles fine, but in the link time it fails:&lt;BR /&gt;&lt;BR /&gt;/usr/ccs/bin/ld: Unsatisfied symbols:&lt;BR /&gt;crypt(char const*, char const*)(code)&lt;BR /&gt;&lt;BR /&gt;Aparently, the function is in "libc.2 not in libcrypt.* !!!. In theory gcc ( or g++ )  should load "-lc" library. But to be in a safe side I even added the -lc to tthe link line, but it still the not linking.&lt;BR /&gt;&lt;BR /&gt;Any help please.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;__Mehdi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/UNISTD.H&gt;&lt;/CRYPT.H&gt;</description>
      <pubDate>Thu, 15 May 2003 14:15:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974241#M928126</guid>
      <dc:creator>Mehdi_1</dc:creator>
      <dc:date>2003-05-15T14:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: crypt () function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974242#M928127</link>
      <description>crypt_r() is not obsolescent.  In fact you should practice to use them as they are the reentrant form of crypt().   &lt;BR /&gt;&lt;BR /&gt;refer to man 3 crypt.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Umapathy&lt;BR /&gt;</description>
      <pubDate>Thu, 15 May 2003 14:15:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974242#M928127</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-05-15T14:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: crypt () function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974243#M928128</link>
      <description>Just checked 10.20, 11.00 and 11.22. The prototype IS in /usr/include/sys/unistd.h which is included by /usr/include/unistd.h. It gets only defined if _INCLUDE_XOPEN_SOURCE is defined also.</description>
      <pubDate>Thu, 15 May 2003 14:21:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974243#M928128</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-05-15T14:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: crypt () function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974244#M928129</link>
      <description>Mehdi,&lt;BR /&gt;&lt;BR /&gt;I thought that you were using the standard HP-UX C compiler which does work.&lt;BR /&gt;&lt;BR /&gt;If you are using the gcc compiler, you need to compile your source code as follows:&lt;BR /&gt;&lt;BR /&gt;gcc -lcrypt crypt.c&lt;BR /&gt;&lt;BR /&gt;This will link your code to the cryt libray file.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Joseph.</description>
      <pubDate>Fri, 16 May 2003 07:13:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974244#M928129</guid>
      <dc:creator>Joseph A Benaiah_1</dc:creator>
      <dc:date>2003-05-16T07:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: crypt () function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974245#M928130</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;Thanks for the good replies.&lt;BR /&gt;&lt;BR /&gt;Yes, I should have mentioned that before, I am using gcc not HP cc. In fact I am using g++. It seems it works ok with gcc, But it doesn't work with g++. Any idea on that please.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 16 May 2003 09:11:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crypt-function/m-p/2974245#M928130</guid>
      <dc:creator>Mehdi_1</dc:creator>
      <dc:date>2003-05-16T09:11:56Z</dc:date>
    </item>
  </channel>
</rss>

