Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 12131

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Direct IO Functions</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="函数参考"
HREF="funcref.html"><LINK
REL="PREVIOUS"
TITLE="dbx_sort"
HREF="function.dbx-sort.html"><LINK
REL="NEXT"
TITLE="dio_close"
HREF="function.dio-close.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="reference"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.dbx-sort.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.dio-close.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.dio"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>XXVIII. Direct IO Functions</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN35789"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="dio.intro"
>简介</A
></H1
><P
>&#13;     PHP supports the direct io functions as described in the Posix
     Standard (Section 6) for performing I/O functions at a lower
     level than the C-Language stream I/O functions
     (<A
HREF="function.fopen.html"
><B
CLASS="function"
>fopen()</B
></A
>, <A
HREF="function.fread.html"
><B
CLASS="function"
>fread()</B
></A
>,..).  The use
     of the DIO functions should be considered only when direct 
     control of a device is needed.  In all other cases, the standard
     <A
HREF="ref.filesystem.html"
>filesystem</A
> functions are more
     than adequate. 
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
      本扩展已被移动到 <A
HREF="http://pecl.php.net"
TARGET="_top"
>PECL</A
> 库中且自以下版本起不再被绑定到 PHP 中:5.1.0.
     </P
></BLOCKQUOTE
></DIV
><P
>&#13;     This extension is only available on Windows Platforms as of PHP 5.0.0
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="dio.requirements"
>需求</A
></H1
><P
>要编译本扩展模块无需外部库文件。</P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="dio.installation"
>安装</A
></H1
><P
>&#13;  To get these functions to work, you have to configure PHP with
  <CODE
CLASS="option"
>--enable-dio</CODE
>.
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="dio.constants"
>预定义常量</A
></H1
><P
>以下常量由本扩展模块定义,因此只有在本扩展模块被编译到
PHP 中,或者在运行时被动态加载后才有效。</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="constant"
><B
>c</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>F_DUPFD</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>F_GETFD</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>F_GETFL</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>F_GETLK</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>F_GETOWN</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>F_RDLCK</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>F_SETFL</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>F_SETLK</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>F_SETLKW</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>F_SETOWN</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>F_UNLCK</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>F_WRLCK</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>O_APPEND</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>O_ASYNC</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>O_CREAT</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>O_EXCL</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>O_NDELAY</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>O_NOCTTY</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>O_NONBLOCK</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>O_RDONLY</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>O_RDWR</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>O_SYNC</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>O_TRUNC</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>O_WRONLY</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>S_IRGRP</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>S_IROTH</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>S_IRUSR</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>S_IRWXG</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>S_IRWXO</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>S_IRWXU</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>S_IWGRP</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>S_IWOTH</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>S_IWUSR</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>S_IXGRP</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>S_IXOTH</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
><DT
><TT
CLASS="constant"
><B
>S_IXUSR</B
></TT
>
    (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
></P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="dio.configuration"
>运行时配置</A
></H1
><P
>本扩展模块在 <TT
CLASS="filename"
>php.ini</TT
> 中未定义任何配置选项。</P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="dio.resources"
>资源类型</A
></H1
><P
>&#13;     One resource type is defined by this extension:
     a file descriptor returned by <A
HREF="function.dio-open.html"
><B
CLASS="function"
>dio_open()</B
></A
>.
    </P
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>目录</B
></DT
><DT
><A
HREF="function.dio-close.html"
>dio_close</A
>&nbsp;--&nbsp;Closes the file descriptor given by fd</DT
><DT
><A
HREF="function.dio-fcntl.html"
>dio_fcntl</A
>&nbsp;--&nbsp;Performs a c library fcntl on fd</DT
><DT
><A
HREF="function.dio-open.html"
>dio_open</A
>&nbsp;--&nbsp;
   Opens a new filename with specified permissions of flags and
   creation permissions of mode
  </DT
><DT
><A
HREF="function.dio-read.html"
>dio_read</A
>&nbsp;--&nbsp;Reads bytes from a file descriptor</DT
><DT
><A
HREF="function.dio-seek.html"
>dio_seek</A
>&nbsp;--&nbsp;Seeks to pos on fd from whence</DT
><DT
><A
HREF="function.dio-stat.html"
>dio_stat</A
>&nbsp;--&nbsp;
   Gets stat information about the file descriptor fd
  </DT
><DT
><A
HREF="function.dio-tcsetattr.html"
>dio_tcsetattr</A
>&nbsp;--&nbsp;
   Sets terminal attributes and baud rate for a serial port
  </DT
><DT
><A
HREF="function.dio-truncate.html"
>dio_truncate</A
>&nbsp;--&nbsp;
   Truncates file descriptor fd to offset bytes 
  </DT
><DT
><A
HREF="function.dio-write.html"
>dio_write</A
>&nbsp;--&nbsp;
   Writes data to fd with optional truncation at length 
  </DT
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.dbx-sort.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.dio-close.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>dbx_sort</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>dio_close</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>