This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: getpeername on LinuxPPC (APUS)
- To: fheitka@ibm.net
- Subject: Re: getpeername on LinuxPPC (APUS)
- From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Date: 30 Jun 1999 16:11:09 +0200
- Cc: glibc-linux@ricardo.ecn.wfu.edu
- References: <199906301126.LAA157062@out1.ibm.net>
- Reply-To: glibc-linux@ricardo.ecn.wfu.edu
>>>>> fheitka writes:
> I've compiled glibc-2.1.1 and am using it on a LinuxPPC APUS
> (LinuxPPC on Amiga PowerUP). I've been using binutils-2.9.1.0.25 and
> egcs-1.1.2. It appears to me that the full getpeername function is not
> being included in the built libraries. It seems that possibly only a
> stub functions is there. How can I tell?
> I'm trying to compile netkit-telenet-0.12 and it gives an error when run.
> "getpeername: Socket operation on non-socket.
> In the code the line is:
> if(getpeername(0,(struct sockaddr *)&from, &fromlen)<0) {
> perror("getpeername");
> ...
Read the manpage or the glibc manual for getpeername. The error
(ENOTSOCK) is documented.
Andreas
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de