From owner-freebsd-standards Wed Nov 13 12:42:30 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 210EF37B401 for ; Wed, 13 Nov 2002 12:42:29 -0800 (PST) Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92ADB43E4A for ; Wed, 13 Nov 2002 12:42:28 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id gADKgMgq161648; Wed, 13 Nov 2002 15:42:23 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20021113142052.A10703@attbi.com> References: <20021113142052.A10703@attbi.com> Date: Wed, 13 Nov 2002 15:42:21 -0500 To: Craig Rodrigues , freebsd-standards@FreeBSD.ORG From: Garance A Drosihn Subject: Re: msgsnd() improperly prototyped Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 2:20 PM -0500 11/13/02, Craig Rodrigues wrote: >the prototype for msgsnd() should be: > >int msgsnd(int, const void *, size_t, int); > >but FreeBSD's prototype in is missing the const qualifier: > >int msgsnd(int, void *, size_t, int); > >I'd like to fix this and submit a patch. Where is the implementation >of this function? I can fix the header file and man page, but don't >know where to look for the implementation. Well, if you're like me, you could do a combination of 'find' and grep in /usr/src to find it. This is probably a dumb way to do it, but it works. Or you could change the header, do a buildworld, and see what complains... :-) The "source code tour" at http://snapshots.jp.FreeBSD.org/tour/ might also be a way to track this down. I haven't used it recently, but it was a pretty nice idea. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message