1
0
mirror of https://github.com/php/doc-tr.git synced 2026-03-24 07:12:18 +01:00
Files
2021-04-27 18:22:19 +03:00

112 lines
3.1 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: fa5ef560a6ea59e32de1e383969ac728526a1335 Maintainer: nilgun Status: ready -->
<refentry xml:id="streamwrapper.stream-lock" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>streamWrapper::stream_lock</refname>
<refpurpose>Tavsiye niteliğinde dosya kilitleme</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>bool</type><methodname>streamWrapper::stream_lock</methodname>
<methodparam><type>int</type><parameter>işlem</parameter></methodparam>
</methodsynopsis>
<para>
Bu yöntem, akım kapatılırken (<constant>LOCK_UN</constant>)
<function>flock</function>, <function>file_put_contents</function>
(<parameter>seçenekler</parameter> <constant>LOCK_EX</constant> içeriyorsa)
ve <function>stream_set_blocking</function> işlevine yanıtta çağrılır
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>işlem</parameter></term>
<listitem>
<para>
<parameter>işlem</parameter> şunlardan biri olabilir:
<itemizedlist>
<listitem>
<simpara>
Paylaşımlı bir kilit (okuyucu) edinmek için
<constant>LOCK_SH</constant>.
</simpara>
</listitem>
<listitem>
<simpara>
Ayrıcalıklı bir kilit (yazıcı) edinmek için
<constant>LOCK_EX</constant>
</simpara>
</listitem>
<listitem>
<simpara>
Bir kilidi (paylaşımlı ya da ayrıcalıklı) serbest bırakmak için
<constant>LOCK_UN</constant>.
</simpara>
</listitem>
<listitem>
<simpara>
Kilitlerken <function>flock</function> engellenmesin isterseniz
<constant>LOCK_NB</constant> (Windows'ta desteklenmez).
</simpara>
</listitem>
</itemizedlist>
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
<refsect1 role="errors">
&reftitle.errors;
<para>
Bu yöntem başarısız olursa (örneğin, gerçeklenmemişse) bir
<constant>E_WARNING</constant> çıktılanır.
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>stream_set_blocking</function></member>
<member><function>flock</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->