From owner-freebsd-questions Fri Feb 24 13:19:59 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id NAA24757 for questions-outgoing; Fri, 24 Feb 1995 13:19:59 -0800 Received: from kalypso.iqm.unicamp.br (kalypso.iqm.unicamp.br [143.106.13.10]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id NAA24746 for ; Fri, 24 Feb 1995 13:19:50 -0800 Received: (from vazquez@localhost) by kalypso.iqm.unicamp.br (8.6.9/8.6.9) id SAA04524 for freebsd-questions@freefall.cdrom.com; Fri, 24 Feb 1995 18:14:24 -0300 From: Pedro A M Vazquez Message-Id: <199502242114.SAA04524@kalypso.iqm.unicamp.br> Subject: src/lib/libc/xdr question To: freebsd-questions@freefall.cdrom.com Date: Fri, 24 Feb 1995 18:14:20 -0300 (EST) Organization: Instituto de Quimica Unicamp X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 795 Sender: questions-owner@FreeBSD.org Precedence: bulk Hello I'm using pvm3 (parallel virtual machine) under FreeBSD, this package uses xdr to exchange data between computers. Two functions, xdr_float and xdr_double, used by this package are absent from libc and, since 386bsd0.1, I'm using the code below. In src/lib/libc/xdr there is a xdr_float.c file but Makefile.inc defines UNSUPPORTED+= xdr_float.c My question is, is it possible to add the code below in future releases of FreeBSD? #include #include int xdr_float(xdrp, fp) XDR *xdrp; float *fp; { return xdr_long(xdrp, (long*)fp); } int xdr_double(xdrp, dp) XDR *xdrp; double *dp; { return xdr_long(xdrp, (long*)dp + 1) && xdr_long(xdrp, (long*)dp); } Pedro