|FROM ||Ruben Safir
|SUBJECT ||Subject: [NYLXS - HANGOUT] (fwd) Re: C++ File Lokcing
|-- forwarded message --
From: ruben safir
Subject: Re: C++ File Lokcing
Date: Tue, 07 Jun 2011 11:54:12 -0400
Organization: PANIX Public Access Internet and UNIX, NYC
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
X-Trace: reader1.panix.com 1307462053 10872 188.8.131.52 (7 Jun 2011 15:54:13 GMT)
NNTP-Posting-Date: Tue, 7 Jun 2011 15:54:13 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:184.108.40.206) Gecko/20110414 SUSE/3.1.10 Thunderbird/3.1.10
Xref: panix comp.lang.c++:1086190
On 06/07/2011 02:33 AM, Stefan Ram wrote:
> "osmium" writes:
>> "ruben safir" wrote:
>>> Is there a C++ specific means of file locking?
>> No. File locking is provided by the operating system, not an ordinary user
>> program, which is what a C++ compiler produces.
> This must be the correct answer, because Linus Torvalds also
> says that a C++ compiler cannot produce an operating system!
> (The real reason is - of coures - just that the C++ standard
> library does not provide this feature, but this might change
> in the future.)
I have to do file locking on Linux. Do you have a recommendation?
-- end of forwarded message --