From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fcfb9,9f5c1c8d844fc69e X-Google-Attributes: gidfcfb9,public X-Google-Thread: 111c93,9f5c1c8d844fc69e X-Google-Attributes: gid111c93,public X-Google-Thread: 1025b4,9f5c1c8d844fc69e X-Google-Attributes: gid1025b4,public X-Google-Thread: 1125fa,9f5c1c8d844fc69e X-Google-Attributes: gid1125fa,public X-Google-Thread: 10d0a1,9f5c1c8d844fc69e X-Google-Attributes: gid10d0a1,public From: ewill@lexi.athghost7038suus.net (The Ghost In The Machine) Subject: Re: DLL mess Re: "No-one gets fired for buying Microsoft" Date: 1999/09/17 Message-ID: #1/1 X-Deja-AN: 526480413 Content-Transfer-Encoding: 8bit References: <37D81FE1.E90C3B1F@winkinc.com> <37d93940.34897269@news.shore.net> <7ra5gg$cm1@dfw-ixnews15.ix.netcom.com> <7re29c$i8t$1@bgtnsc01.worldnet.att.net> <7reabq$o58@faui11.informatik.uni-erlangen.de> <37df01e2.348403287@news.shore.net> <37e523f0.80183257@news.shore.net> <37e32c08.147791793@news.shore.net> <37E1C65F.2781@hotmail.com> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@verio.net X-Trace: nuq-read.news.verio.net 937603597 207.21.134.68 (Fri, 17 Sep 1999 21:26:37 GMT) Organization: Verio Mime-Version: 1.0 User-Agent: slrn/0.9.5.4 (UNIX) NNTP-Posting-Date: Fri, 17 Sep 1999 21:26:37 GMT Newsgroups: comp.os.linux.alpha,comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,gnu.misc.discuss In comp.os.linux.advocacy, Jeffrey C. Dege wrote on Fri, 17 Sep 1999 04:14:23 GMT : >On Fri, 17 Sep 1999 04:41:03 +0000, Jerry wrote: >>Se�n � Donnchadha wrote: >>> >>> Wrong. On Unix, an update *CAN* break installed applications. That's >>> because applications usually select DLLs through symbolic links which >>> *ARE* overwritten during installation. >> >>You must be mistaken. Name one UNIX which uses DLLs.... Yet more FUD >>from a Windoze zealot..... > >Pretty much _every_ modern Unix uses dynamically linked libraries. >Where have you been? Pedant point: that's "dynamically loaded". But you are correct; apart from such archaic holdovers as SCO Xenix (and even they might use DLLs), evern Unix has the equivalent of Microsoft's .DLL -- in the case of Sun, they are '.so' files; in the case of HP, they used to be '.sa' or '.sl' files (I think they're switching over); in the case of Linux, they're '.so'. As for selecting dynamic libraries -- the idea of a minor release is to add functionality and/or correct bugs in a library (which is why I'm somewhat less than thrilled with the current glibc2.0/glibc2.1 effort; something's a bit strange in there), not to completely break with tradition; major releases, of course, have the option to break all existing code, should it be necessary. (One would hope that the #include file for such a DLL has nice big letters stating such, though! :-) ) Linux uses symbolic links, and is therefore susceptible to the problem of a DLL being overwritten during install. However, it seems to me that this is less of a problem on Linux (and Unix in general) than it might be on Windows; it may be in part because of the fact that one can't open a text file [*] for write if someone else has it open for execution; the system will return ETXTBSY, "Text file busy"; this means that install programs have to move it away instead of simply overwriting it. Note also that, once a file is opened, the kernel refers to it by inode rather than by name. I would hope that Microsoft also has these safeguards.... :-) > >-- >FORTRAN, "the infantile disorder", by now nearly 20 years old, is hopelessly >inadequate for whatever computer application you have in mind today: it is >too clumsy, too risky, and too expensive to use. > -- Edsger W. Dijkstra, SIGPLAN Notices, Volume 17, Number 5 But it's still around. :-) [*] Nomenclature confusion; in times of old, executables had three sections: code, data, and block storage space (BSS). Code was also referred to as text; both executables and DLLs are therefore text files, using this nomenclature. Of course, reading these "text files" may be difficult in one's favorite text editor or word processor. Sigh. :-) BSS is also interesting, in that it's supposed to be zero upon initial load; however, MS has the interesting habit (bug? feature?) of not immediately unloading DLLs, which means its BSS might be crap in certain cases. (MS is not alone; Apollo DOMAIN/Aegis had similar semantics in its uninitialized variable space.) [+] This is why the st_nlink field of a directory ('man stat') is almost always two plus the number of directories within, because there are always two entries ('.', and the actual name of the directory that's within '..'), plus the '..' of all subdirectories, which must point back to the parent. The 'find' program can use this information to count the number of subdirectories within a directory, as well -- though certain implementations of some file systems (I think fat, for one, in older kernels) have broken this assumption in the past. -- ewill@aimnet.com -- insert random misquote here