From owner-freebsd-current Tue Sep 8 12:03:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA25694 for freebsd-current-outgoing; Tue, 8 Sep 1998 12:03:18 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA25664 for ; Tue, 8 Sep 1998 12:03:12 -0700 (PDT) (envelope-from tlambert@usr07.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id MAA02788; Tue, 8 Sep 1998 12:03:02 -0700 (MST) Received: from usr07.primenet.com(206.165.6.207) via SMTP by smtp01.primenet.com, id smtpd002753; Tue Sep 8 12:03:01 1998 Received: (from tlambert@localhost) by usr07.primenet.com (8.8.5/8.8.5) id MAA05059; Tue, 8 Sep 1998 12:02:57 -0700 (MST) From: Terry Lambert Message-Id: <199809081902.MAA05059@usr07.primenet.com> Subject: Re: Standardizing a BSD/ELF ABI... To: cracauer@cons.org (Martin Cracauer) Date: Tue, 8 Sep 1998 19:02:56 +0000 (GMT) Cc: tlambert@primenet.com, cracauer@cons.org, freebsd-current@FreeBSD.ORG In-Reply-To: <19980908172807.A12626@cons.org> from "Martin Cracauer" at Sep 8, 98 05:28:07 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > That's all? I'm afraid I have to rate that as lame :-) I did say "technically"... > You are using data from a library or provide data to a library that is > not specified in the interface. The old libtermcap used to require exactly this for lines, columns, and I-forget-what-character-array. The use of sys_errlist directly (allowed unde POSIX) instead of using strerror(3) falls into this category, and counts as a break between versions of RedHat releases, as do a number of libvga accesses. > It could have been declared in an interface file with a certain size, > in that case, you wouldn't be able to compile the pieces of code that > don't fit together. It wasn't, and in any case, the dynamic linker would have to examine the difference, since it would be between shared library revisions. > Or you declare a pointer only, in that case you > can't make any assumptions about the size, all you can do is to call a > function in the same unit the data has been declared in, which knows > the real size. So no problem either way as long as you strickly > implement and obey to the published interfaces. You are assuming that the people writing this code are professional programmers (who are paid to due grunt work), as opposed to students. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message