public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* file locking looks strange
@ 2002-09-07 14:31 Claus Rosenberger
  2002-09-07 22:23 ` jw schultz
  2002-09-09 11:34 ` Alex Riesen
  0 siblings, 2 replies; 3+ messages in thread
From: Claus Rosenberger @ 2002-09-07 14:31 UTC (permalink / raw)
  To: linux-kernel

How i can informations about file locking for applications.

if i open a document with one application on the terminalserver and try to
open the same document  in another session i can write on the second
session. this happens for example with openoffice. how i can really lock
the file if one application open this doc for reading and writing ?

regards

claus rosenberger



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: file locking looks strange
  2002-09-07 14:31 file locking looks strange Claus Rosenberger
@ 2002-09-07 22:23 ` jw schultz
  2002-09-09 11:34 ` Alex Riesen
  1 sibling, 0 replies; 3+ messages in thread
From: jw schultz @ 2002-09-07 22:23 UTC (permalink / raw)
  To: linux-kernel

On Sat, Sep 07, 2002 at 04:31:56PM +0200, Claus Rosenberger wrote:
> How i can informations about file locking for applications.
> 
> if i open a document with one application on the terminalserver and try to
> open the same document  in another session i can write on the second
> session. this happens for example with openoffice. how i can really lock
> the file if one application open this doc for reading and writing ?

start with 'man -k lock|grep file'  That will give you some
starting points.  If you need more any book on UNIX or Linux
programming that doesn't list both methods isn't worth buying.

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw@pegasys.ws

		Remember Cernan and Schmitt

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: file locking looks strange
  2002-09-07 14:31 file locking looks strange Claus Rosenberger
  2002-09-07 22:23 ` jw schultz
@ 2002-09-09 11:34 ` Alex Riesen
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Riesen @ 2002-09-09 11:34 UTC (permalink / raw)
  To: Claus Rosenberger; +Cc: linux-kernel

On Sat, Sep 07, 2002 at 04:31:56PM +0200, Claus Rosenberger wrote:
> How i can informations about file locking for applications.
> 
> if i open a document with one application on the terminalserver and try to
> open the same document  in another session i can write on the second
> session. this happens for example with openoffice. how i can really lock
> the file if one application open this doc for reading and writing ?

read Documentation/locks.txt and Documentation/mandatory.txt.
You can also use advisory locking (man 2 fcntl, lockf), if it's
your own code.

-alex


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-09 11:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-07 14:31 file locking looks strange Claus Rosenberger
2002-09-07 22:23 ` jw schultz
2002-09-09 11:34 ` Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox