delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/01/28/03:37:43

From: brssp2!twuyts AT brgtw DOT att DOT com
Date: Fri, 28 Jan 94 09:15:45 +0100
Original-From: brssp2!twuyts (283510-Wuyts)
To: bergman AT panix DOT com
Subject: Re: fseek / share
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

Mark,

Thx for the reply. I've checked the manual on unlink. The temporary file is
created, opened, and unlinked. Then the file-desctriptor is passed on to
the calling function. The unlink call on an open file should
automatically delete the file when it is closed (as long as it's open,
nothing happens). Still I don't understand why share doesn't let you
use that file after the unlink (everything happens in the same process...).

I'm not an expert on DOS and SHARE, but could somebody explain how it
exactly works ? What's the effect of the unlink when SHARE is running ?

NOTE : you might be interested in a program I found by browsing the net :

       cica.indiana.edu  in /pub/pc/win3/misc/noshare.zip

it is made by Martin Filteau (fm59 AT music DOT mus DOT polymtl DOT ca) and fools any
program that needs share into beleiving it is running (such as Word 6).
I don't know what the possible dangers are, but it works for me.

Tim.

          ______________________________________________________
_________| Tim Wuyts                                            |_________
\        | AT&T Network Systems Belgium        ____             |        /
 \       | +32 2 556 7405                    _(____)_           |       /
  \      | tim DOT wuyts AT att DOT com          ___ooO_(_o__o_)_Ooo_______|      /
   \     |---------------------------'                          |     /
   /     |"Being intelligent doesn't mean you aren't stupid."   |     \
  /      |                                                      |      \
 /       |______________________________________________________|       \
/____________)                                               (___________\


----- Begin Included Message -----

>From brgtw!att!emsr0.emsr.att.com!panix.com!bergman Thu Jan 27 19:03:45 1994
From: Mark Bergman <bergman AT panix DOT com>
Subject: Re: fseek / share
To: brssp2!twuyts AT brgtw DOT att DOT com
Date: Thu, 27 Jan 1994 12:35:00 -0500 (EST)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 525

Just a guess, but aren't you unlinking the file and then
returning the file pointer? That's just the sort of thing
SHARE is designed to prevent--it won't allow you to share
(unlink) an open file.

I'd be very interested in the source of diffs to groff when
you are finished.

----
Mark Bergman    Biker, IATSE #1 Stagehand, (former) Unix user support grunt
718-855-9148	
I want a newsgroup with a infinite S/N ratio! Now taking CFV on:

rec.motorcycles.stagehands.pet-cockatiel-owners.pinballers.ex-unix-supporters
	2 So Far


----- End Included Message -----


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019