This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
recv/send/sendto
- To: libc-alpha at sources dot redhat dot com
- Subject: recv/send/sendto
- From: Neale dot Ferguson at softwareAG-usa dot com
- Date: Fri, 20 Apr 2001 07:48:50 +0200
Hi,
I've been building Blackdown JDK against glibc-2.2.2 and am getting
errors when compiling a module which has declarations for recv/send/sendto.
The entry points define the functions return ssize_t but in socket.h they
are defined to return int. According to the Single UNIX Spec V2. they
are defined as returning ssize_t.
See: http://www.unix-systems.org/onlinepubs/007908799/xns/recv.html
Am I looking at the correct spec? Is it a known problem or is my compiler
just being over picky?
+---------+----------+
| Specs | socket.h |
+--------+---------+----------+
| recv | ssize_t | int |
+--------+---------+----------+
| send | ssize_t | int |
+--------+---------+----------+
| sendto | ssize_t | int |
+--------+---------+----------+
Neale Ferguson