*BSD News Article 94183


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!swrinde!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: crypt function
Date: 22 Apr 1997 17:27:01 GMT
Organization: Awfulhak Ltd.
Lines: 24
Message-ID: <5jisd5$krf@ui-gate.utell.co.uk>
References: <335B9E06.B4E@eros.lib.csusb.edu>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39536


In article <335B9E06.B4E@eros.lib.csusb.edu>,
	Libtech <libtech@eros.lib.csusb.edu> writes:
> 
> Hi Everybody,
> 
> I try to compile the CERN httpd 3.0A on my FreeBSD machine.  It keeps
> give me the error message that the crypt function is not defined. 
> However, I check the manual page and there is a crypt() in the C 
> library.  I wonder which file I have to include in the FreeBSD because 
> there is a file called "crypt.h" in SunOS and SGI Iris.  Please help
> me out, Thank you.

$ fgrep "crypt __" /usr/include/*.h
/usr/include/skey.h:char *skey_crypt __P((char *pp, char *salt, struct passwd *pwd, int pwok));
/usr/include/unistd.h:char	*crypt __P((const char *, const char *));
/usr/include/unistd.h:int	 encrypt __P((char *, int));

> Sunny Lin
> clin@csci.csusb.edu

-- 
Brian <brian@awfulhak.org> <brian@freebsd.org>
      <http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour !