Newer
Older
UbixOS / doc / html / d7 / d9f / fcntl_8h_source.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>UbixOS: include/sys/fcntl.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">UbixOS
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('../../',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('d7/d9f/fcntl_8h_source.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">fcntl.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../d7/d9f/fcntl_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*-</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2002-2018 The UbixOS Project.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * This was developed by Christopher W. Olsen for the UbixOS Project.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without modification, are permitted</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * provided that the following conditions are met:</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * 1) Redistributions of source code must retain the above copyright notice, this list of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *    conditions, the following disclaimer and the list of authors.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * 2) Redistributions in binary form must reproduce the above copyright notice, this list of</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *    conditions, the following disclaimer and the list of authors in the documentation and/or</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *    other materials provided with the distribution.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * 3) Neither the name of the UbixOS Project nor the names of its contributors may be used to</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *    endorse or promote products derived from this software without specific prior written</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *    permission.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#ifndef _SYS_FCNTL_H_</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#define _SYS_FCNTL_H_</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a301749b9aa4b9416c329bb8b19345216">   32</a></span>&#160;<span class="preprocessor">#define AT_FDCWD                -100</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment">/* command values */</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#ab93a8621587aba90181efd7d3aeea67e">   35</a></span>&#160;<span class="preprocessor">#define F_DUPFD         0               </span><span class="comment">/* duplicate file descriptor */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#abc11141031604fb22b8e3a201155cbb3">   36</a></span>&#160;<span class="preprocessor">#define F_GETFD         1               </span><span class="comment">/* get file descriptor flags */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#ad27227e8d87b844648f07d66da38bb3f">   37</a></span>&#160;<span class="preprocessor">#define F_SETFD         2               </span><span class="comment">/* set file descriptor flags */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a025fad21a889c79f02ec53abe3526c32">   38</a></span>&#160;<span class="preprocessor">#define F_GETFL         3               </span><span class="comment">/* get file status flags */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#af2939853c650561d3495ed40f68f6249">   39</a></span>&#160;<span class="preprocessor">#define F_SETFL         4               </span><span class="comment">/* set file status flags */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#aa76959dcf54457a81c4cdf7789ba73e4">   40</a></span>&#160;<span class="preprocessor">#define F_GETOWN        5               </span><span class="comment">/* get SIGIO/SIGURG proc/pgrp */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a10e6ca002b56361c5adb1e66a8a4917d">   41</a></span>&#160;<span class="preprocessor">#define F_SETOWN        6               </span><span class="comment">/* set SIGIO/SIGURG proc/pgrp */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a2c3005e07f9aedb5d77856d13c3e40c4">   42</a></span>&#160;<span class="preprocessor">#define F_GETLK         7               </span><span class="comment">/* get record locking information */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a68a7fc570f2fc271acc5358a6418504e">   43</a></span>&#160;<span class="preprocessor">#define F_SETLK         8               </span><span class="comment">/* set record locking information */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#aabb866cd0cf7ed3544dfc335e0e360fd">   44</a></span>&#160;<span class="preprocessor">#define F_SETLKW        9               </span><span class="comment">/* F_SETLK; wait if blocked */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">/* Flag Values */</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a3252b359359dea1efa45bb87c4499acd">   47</a></span>&#160;<span class="preprocessor">#define FREAD           0x0001</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a171aed9ee8e3ec0a65cedfb9a2626499">   48</a></span>&#160;<span class="preprocessor">#define FWRITE          0x0002</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a39d33ce33804efd4d52606d59071c6d8">   49</a></span>&#160;<span class="preprocessor">#define O_NONBLOCK      0x0004          </span><span class="comment">/* no delay */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#ae036f789407d21f07b211552d67b3214">   50</a></span>&#160;<span class="preprocessor">#define O_APPEND        0x0008          </span><span class="comment">/* set append mode */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a8234597f4e8a183770c5f5d94ba8562a">   51</a></span>&#160;<span class="preprocessor">#define O_SHLOCK        0x0010          </span><span class="comment">/* open with shared file lock */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#ad041d863b473edbd26926d2fad250384">   52</a></span>&#160;<span class="preprocessor">#define O_EXLOCK        0x0020          </span><span class="comment">/* open with exclusive file lock */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#ac5d0c9848f853f8b026b1211b93f78b1">   53</a></span>&#160;<span class="preprocessor">#define O_ASYNC         0x0040          </span><span class="comment">/* signal pgrp when data ready */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#ac683f821c3bf7ce4752ff436733cd715">   54</a></span>&#160;<span class="preprocessor">#define O_FSYNC         0x0080          </span><span class="comment">/* synchronous writes */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#aae85139bfa94236d126bb1e3b772998f">   55</a></span>&#160;<span class="preprocessor">#define O_SYNC          0x0080          </span><span class="comment">/* POSIX synonym for O_FSYNC */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a82d4d551b214905742c9e045185d352a">   56</a></span>&#160;<span class="preprocessor">#define O_NOFOLLOW      0x0100          </span><span class="comment">/* don&#39;t follow symlinks */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a1cf6b1de1fffedaa1d26b189e9a8d2cc">   57</a></span>&#160;<span class="preprocessor">#define O_CREAT         0x0200          </span><span class="comment">/* create if nonexistent */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#ad1d67e453fb3031f40f8cd3403773813">   58</a></span>&#160;<span class="preprocessor">#define O_TRUNC         0x0400          </span><span class="comment">/* truncate to zero length */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a9f5acfe79fafe14b6694447bd0e9f10b">   59</a></span>&#160;<span class="preprocessor">#define O_EXCL          0x0800          </span><span class="comment">/* error if already exists */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#ad28ccbf6f0a42c91c160ac5ada0c8429">   60</a></span>&#160;<span class="preprocessor">#define O_DIRECT        0x00010000</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a7a68c9ffaac7dbcd652225dd7c06a54b">   61</a></span>&#160;<span class="preprocessor">#define O_RDONLY        0x0000          </span><span class="comment">/* open for reading only */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a11b644a8526139c4cc1850dac1271ced">   62</a></span>&#160;<span class="preprocessor">#define O_WRONLY        0x0001          </span><span class="comment">/* open for writing only */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#abb0586253488ee61072b73557eeb873b">   63</a></span>&#160;<span class="preprocessor">#define O_RDWR          0x0002          </span><span class="comment">/* open for reading and writing */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a4dc4d45e07d2abc899bcaf04b2846a87">   64</a></span>&#160;<span class="preprocessor">#define O_ACCMODE       0x0003          </span><span class="comment">/* mask for above modes */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a5e502663ed8d9bf975848f5464c3f516">   66</a></span>&#160;<span class="preprocessor">#define FHASLOCK        0x4000          </span><span class="comment">/* descriptor holds advisory lock */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="comment">/* F MAPPERS */</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#aa336842f710119bfdab086f34efac63c">   69</a></span>&#160;<span class="preprocessor">#define FAPPEND         O_APPEND        </span><span class="comment">/* kernel/compat */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a1c28a43c30721462ad7e40f37051c9ca">   70</a></span>&#160;<span class="preprocessor">#define FASYNC          O_ASYNC         </span><span class="comment">/* kernel/compat */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#aee6e522943bfde38729955245588808c">   71</a></span>&#160;<span class="preprocessor">#define FFSYNC          O_FSYNC         </span><span class="comment">/* kernel */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#aa7660d77d1097779b6b790cb4d89f56c">   72</a></span>&#160;<span class="preprocessor">#define FNONBLOCK       O_NONBLOCK      </span><span class="comment">/* kernel */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a71a490d1088a9c5f120f3a59e2a4599f">   73</a></span>&#160;<span class="preprocessor">#define FNDELAY         O_NONBLOCK      </span><span class="comment">/* compat */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a63ba256ec18f373817941d5a4d0e2d5e">   74</a></span>&#160;<span class="preprocessor">#define O_NDELAY        O_NONBLOCK      </span><span class="comment">/* compat */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#aed6c61cad1ddb572aae570ca0a7cb6f8">   75</a></span>&#160;<span class="preprocessor">#define FPOSIXSHM       O_NOFOLLOW</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a6afd3dd2f570069804b40e6aa24fc966">   77</a></span>&#160;<span class="preprocessor">#define O_DIRECTORY     0x00020000      </span><span class="comment">/* Fail if not directory */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a459542206659fbe295eb4183f8b8f06c">   78</a></span>&#160;<span class="preprocessor">#define O_EXEC          0x00040000      </span><span class="comment">/* Open for execute only */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#ae145197023ee3530510eaa80446eef77">   80</a></span>&#160;<span class="preprocessor">#define FCNTLFLAGS      (FAPPEND|FASYNC|FFSYNC|FNONBLOCK|FPOSIXSHM|O_DIRECT)</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="comment"> #define FFLAGS(oflags)  ((oflags) + 1)</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="comment"> #define OFLAGS(fflags)  ((fflags) - 1)</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="comment">/* convert from open() flags to/from fflags; convert O_RD/WR to FREAD/FWRITE */</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a3c28c97a69c6ce8f87cac54a7c91f9db">   88</a></span>&#160;<span class="preprocessor">#define FFLAGS(oflags)  ((oflags) &amp; O_EXEC ? (oflags) : (oflags) + 1)</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#a9b5b463dd687798c592fd23584869cc8">   89</a></span>&#160;<span class="preprocessor">#define OFLAGS(fflags)  ((fflags) &amp; O_EXEC ? (fflags) : (fflags) - 1)</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#ac6f4e8852707745da144bc4cef5a726f">   91</a></span>&#160;<span class="preprocessor">#define FEXEC O_EXEC</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="../../d7/d9f/fcntl_8h.html#ab3f8268db3f2e8e22c6f52345799b3fb">   93</a></span>&#160;<span class="preprocessor">#define FMASK (FREAD|FWRITE|FAPPEND|FASYNC|FFSYNC|FNONBLOCK|O_DIRECT|FEXEC)</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* !_SYS_FCNTL_H_ */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_317ea3797c15f4a1d9c156bc812661ca.html">sys</a></li><li class="navelem"><a class="el" href="../../d7/d9f/fcntl_8h.html">fcntl.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
  </ul>
</div>
</body>
</html>