MESSAGE
DATE | 2011-06-26 |
FROM | Ruben Safir
|
SUBJECT | Subject: [NYLXS - HANGOUT] (fwd) Re: C++ file locking
|
-- forwarded message -- Path: reader1.panix.com!panix!newsfeed-00.mathworks.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Rainer Weikusat Newsgroups: comp.os.linux.development.apps Subject: Re: C++ file locking Date: Fri, 10 Jun 2011 16:53:35 +0100 Lines: 20 Message-ID: <87wrgt1y4g.fsf-at-sapphire.mobileactivedefense.com> References: <16265495-eb93-4e2e-a46c-f16bb6b19d9e-at-b1g2000yql.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: individual.net 6jQc6rvYZRqdBAf6d5xtwgRCWU6t49qMzr0uoN+RZuJFeesuc= Cancel-Lock: sha1:aMek28HlwM6JqNLKlPfSfNzqTOc= sha1:Z1Ri9jt1ldR8Gw6QJ8L65ztTOeM= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Xref: panix comp.os.linux.development.apps:166504
Ruben Safir writes: > On Wed, 08 Jun 2011 01:37:38 -0700, Lukas 'Erdk' Redynk wrote: >> On Jun 7, 2:24 pm, Ruben Safir wrote: >>> Is there any means to do file locking with C++? >>> >>> Ruben >> >> You could try this: >> http://linux.die.net/man/3/lockf >> or >> http://www.manpagez.com/man/2/fcntl/ - especially F_GETLK and F_SETLK >> >> Erdk > > > Yes but these both require you to get a file descriptor from the open > call, effectively doing an end run around ios_base.
Why precisely to you want to use a 'stream library' for file locking? That's not exactly the purpose of it. -- end of forwarded message --
|
|