Shared Text for Split i/d

utzoo!decvax!ucbvax!menlo70!sri-unix!dave at UCLA-Security utzoo!decvax!ucbvax!menlo70!sri-unix!dave at UCLA-Security
Sun Jan 17 07:43:25 AEST 1982


From: dave at UCLA-Security (David Butterfield)
The 411 files ARE shared.  Sharing is accomplished in text.c
where it attempts to "attach to a shared text segment".  It
knows that it is shared by looking at the text size and seeing
that it is non-zero.  This size is read directly out of the
header on the a.out file (printed by the "size" program).  The
exception is that at exec time (getxfile in sys1.c), a file
which is 407 (non shared, non-sep) has its text size set to 
zero and its data size set to the sum of the original text
and data sizes.  This 411 files are shared.
Dave



More information about the Comp.unix.wizards mailing list