⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fcntl.h

📁 linux0.11 version(301k)
💻 H
字号:
<!doctype html public "-//W3C//DTD HTML 3.2//EN"><html><head><title>Linux/include/fcntl.h</title><meta http-equiv=Content-Type content="text/html; charset=gb2312"><base href="http://oldlinux.org/lxr/http/"></head><body bgcolor=white><div align=center>   [<b><i>源代码浏览</i></b>] [<a href="diff/include/fcntl.h">区别标定</a>] [<a href="ident">标识符搜索</a>] [<a href="search">文本搜索</a>] [<a href="find">文件搜索</a>]</div><h1 align=center>  <a href="http:/">     OldLinux</a>  <a href="http:blurb.html">    交叉引用</a><br>  <a href="source/">Linux</a>/<a href="source/include/">include</a>/<a href="source/include/fcntl.h">fcntl.h</a></h1><div align=center>    <b>版本:</b>   [<a href="source/include/fcntl.h?v=1.0">1.0</a>] [<a href="source/include/fcntl.h?v=0.99.11">0.99.11</a>] [<a href="source/include/fcntl.h?v=0.99">0.99</a>] [<a href="source/include/fcntl.h?v=0.97">0.97</a>] [<a href="source/include/fcntl.h?v=0.96a">0.96a</a>] [<a href="source/include/fcntl.h?v=0.95">0.95</a>] [<a href="source/include/fcntl.h?v=0.12">0.12</a>] [<b><i>0.11</i></b>] [<a href="source/include/fcntl.h?v=0.01">0.01</a>]  <br>  <b>体系结构:</b>   [<b><i>i386</i></b>]  <br></div><hr><pre>  <a name=L1 href="source/include/fcntl.h#L1">1</a> #ifndef <a href="ident?i=_FCNTL_H">_FCNTL_H</a>  <a name=L2 href="source/include/fcntl.h#L2">2</a> #define <a href="ident?i=_FCNTL_H">_FCNTL_H</a>  <a name=L3 href="source/include/fcntl.h#L3">3</a>   <a name=L4 href="source/include/fcntl.h#L4">4</a> #include &lt;sys/types.h&gt;  <a name=L5 href="source/include/fcntl.h#L5">5</a>   <a name=L6 href="source/include/fcntl.h#L6">6</a> <b><i>/* open/fcntl - NOCTTY, NDELAY isn't implemented yet */</i></b>  <a name=L7 href="source/include/fcntl.h#L7">7</a> #define <a href="ident?i=O_ACCMODE">O_ACCMODE</a>       00003  <a name=L8 href="source/include/fcntl.h#L8">8</a> #define <a href="ident?i=O_RDONLY">O_RDONLY</a>           00  <a name=L9 href="source/include/fcntl.h#L9">9</a> #define <a href="ident?i=O_WRONLY">O_WRONLY</a>           01 <a name=L10 href="source/include/fcntl.h#L10">10</a> #define <a href="ident?i=O_RDWR">O_RDWR</a>             02 <a name=L11 href="source/include/fcntl.h#L11">11</a> #define <a href="ident?i=O_CREAT">O_CREAT</a>         00100   <b><i>/* not fcntl */</i></b> <a name=L12 href="source/include/fcntl.h#L12">12</a> #define <a href="ident?i=O_EXCL">O_EXCL</a>          00200   <b><i>/* not fcntl */</i></b> <a name=L13 href="source/include/fcntl.h#L13">13</a> #define <a href="ident?i=O_NOCTTY">O_NOCTTY</a>        00400   <b><i>/* not fcntl */</i></b> <a name=L14 href="source/include/fcntl.h#L14">14</a> #define <a href="ident?i=O_TRUNC">O_TRUNC</a>         01000   <b><i>/* not fcntl */</i></b> <a name=L15 href="source/include/fcntl.h#L15">15</a> #define <a href="ident?i=O_APPEND">O_APPEND</a>        02000 <a name=L16 href="source/include/fcntl.h#L16">16</a> #define <a href="ident?i=O_NONBLOCK">O_NONBLOCK</a>      04000   <b><i>/* not fcntl */</i></b> <a name=L17 href="source/include/fcntl.h#L17">17</a> #define <a href="ident?i=O_NDELAY">O_NDELAY</a>        <a href="ident?i=O_NONBLOCK">O_NONBLOCK</a> <a name=L18 href="source/include/fcntl.h#L18">18</a>  <a name=L19 href="source/include/fcntl.h#L19">19</a> <b><i>/* Defines for fcntl-commands. Note that currently</i></b> <a name=L20 href="source/include/fcntl.h#L20">20</a> <b><i> * locking isn't supported, and other things aren't really</i></b> <a name=L21 href="source/include/fcntl.h#L21">21</a> <b><i> * tested.</i></b> <a name=L22 href="source/include/fcntl.h#L22">22</a> <b><i> */</i></b> <a name=L23 href="source/include/fcntl.h#L23">23</a> #define <a href="ident?i=F_DUPFD">F_DUPFD</a>         0       <b><i>/* dup */</i></b> <a name=L24 href="source/include/fcntl.h#L24">24</a> #define <a href="ident?i=F_GETFD">F_GETFD</a>         1       <b><i>/* get f_flags */</i></b> <a name=L25 href="source/include/fcntl.h#L25">25</a> #define <a href="ident?i=F_SETFD">F_SETFD</a>         2       <b><i>/* set f_flags */</i></b> <a name=L26 href="source/include/fcntl.h#L26">26</a> #define <a href="ident?i=F_GETFL">F_GETFL</a>         3       <b><i>/* more flags (cloexec) */</i></b> <a name=L27 href="source/include/fcntl.h#L27">27</a> #define <a href="ident?i=F_SETFL">F_SETFL</a>         4 <a name=L28 href="source/include/fcntl.h#L28">28</a> #define <a href="ident?i=F_GETLK">F_GETLK</a>         5       <b><i>/* not implemented */</i></b> <a name=L29 href="source/include/fcntl.h#L29">29</a> #define <a href="ident?i=F_SETLK">F_SETLK</a>         6 <a name=L30 href="source/include/fcntl.h#L30">30</a> #define <a href="ident?i=F_SETLKW">F_SETLKW</a>        7 <a name=L31 href="source/include/fcntl.h#L31">31</a>  <a name=L32 href="source/include/fcntl.h#L32">32</a> <b><i>/* for F_[GET|SET]FL */</i></b> <a name=L33 href="source/include/fcntl.h#L33">33</a> #define <a href="ident?i=FD_CLOEXEC">FD_CLOEXEC</a>      1       <b><i>/* actually anything with low bit set goes */</i></b> <a name=L34 href="source/include/fcntl.h#L34">34</a>  <a name=L35 href="source/include/fcntl.h#L35">35</a> <b><i>/* Ok, these are locking features, and aren't implemented at any</i></b> <a name=L36 href="source/include/fcntl.h#L36">36</a> <b><i> * level. POSIX wants them.</i></b> <a name=L37 href="source/include/fcntl.h#L37">37</a> <b><i> */</i></b> <a name=L38 href="source/include/fcntl.h#L38">38</a> #define <a href="ident?i=F_RDLCK">F_RDLCK</a>         0 <a name=L39 href="source/include/fcntl.h#L39">39</a> #define <a href="ident?i=F_WRLCK">F_WRLCK</a>         1 <a name=L40 href="source/include/fcntl.h#L40">40</a> #define <a href="ident?i=F_UNLCK">F_UNLCK</a>         2 <a name=L41 href="source/include/fcntl.h#L41">41</a>  <a name=L42 href="source/include/fcntl.h#L42">42</a> <b><i>/* Once again - not implemented, but ... */</i></b> <a name=L43 href="source/include/fcntl.h#L43">43</a> struct <a href="ident?i=flock">flock</a> { <a name=L44 href="source/include/fcntl.h#L44">44</a>         short l_type; <a name=L45 href="source/include/fcntl.h#L45">45</a>         short l_whence; <a name=L46 href="source/include/fcntl.h#L46">46</a>         <a href="ident?i=off_t">off_t</a> l_start; <a name=L47 href="source/include/fcntl.h#L47">47</a>         <a href="ident?i=off_t">off_t</a> l_len; <a name=L48 href="source/include/fcntl.h#L48">48</a>         <a href="ident?i=pid_t">pid_t</a> l_pid; <a name=L49 href="source/include/fcntl.h#L49">49</a> }; <a name=L50 href="source/include/fcntl.h#L50">50</a>  <a name=L51 href="source/include/fcntl.h#L51">51</a> extern int <a href="ident?i=creat">creat</a>(const char * filename,<a href="ident?i=mode_t">mode_t</a> mode); <a name=L52 href="source/include/fcntl.h#L52">52</a> extern int <a href="ident?i=fcntl">fcntl</a>(int fildes,int cmd, ...); <a name=L53 href="source/include/fcntl.h#L53">53</a> extern int <a href="ident?i=open">open</a>(const char * filename, int flags, ...); <a name=L54 href="source/include/fcntl.h#L54">54</a>  <a name=L55 href="source/include/fcntl.h#L55">55</a> #endif <a name=L56 href="source/include/fcntl.h#L56">56</a> </pre><hr><div align=center>   [<b><i>源代码浏览</i></b>] [<a href="diff/include/fcntl.h">区别标定</a>] [<a href="ident">标识符搜索</a>] [<a href="search">文本搜索</a>] [<a href="find">文件搜索</a>] </div><hr>本网页由 <a href="http:blurb.html">LXR引擎</a> 自动生成.<br></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -