From owner-freebsd-hackers Mon Nov 24 02:22:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA22406 for hackers-outgoing; Mon, 24 Nov 1997 02:22:03 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id CAA22399 for ; Mon, 24 Nov 1997 02:21:57 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id LAA03795; Mon, 24 Nov 1997 11:20:58 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.8/8.8.5) id LAA05898; Mon, 24 Nov 1997 11:04:07 +0100 (MET) Message-ID: <19971124110407.36661@uriah.heep.sax.de> Date: Mon, 24 Nov 1997 11:04:07 +0100 From: J Wunsch To: freebsd-hackers@FreeBSD.ORG Cc: Jim Flowers Subject: Re: inet_addr function? Reply-To: Joerg Wunsch References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: ; from Jim Flowers on Mon, Nov 24, 1997 at 03:43:09AM -0500 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Jim Flowers wrote: > I am tyring to debug a C program that uses functions named inet_ntoa > and inet_addr. I found inet_ntoa ok but there does not seem to be an > inet_addr, anywhere. Then you probably need some glasses to look. :) Either the declaration as well as the implementation are fine in place, in the .h files mentioned in the manual page: j@uriah 66% nm /usr/lib/libc.so.3.0 | fgrep inet_addr 00042640 T _inet_addr j@uriah 67% fgrep inet_addr /usr/include/arpa/inet.h unsigned long inet_addr __P((const char *)); -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)