<!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/descrip.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&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  <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&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&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('d3/df4/descrip_8h_source.html','../../');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">descrip.h</div> </div> </div><!--header--> <div class="contents"> <a href="../../d3/df4/descrip_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> <span class="comment">/*-</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2002-2018 The UbixOS Project.</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * All rights reserved.</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <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> <span class="comment"> *</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <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> <span class="comment"> * provided that the following conditions are met:</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> *</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <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> <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> <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> <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> <span class="comment"> * other materials provided with the distribution.</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <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> <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> <span class="comment"> * permission.</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> *</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <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> <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> <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> <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> <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> <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> <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> <span class="comment"> */</span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#ifndef _KERN_DESCRIP_H</span></div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#define _KERN_DESCRIP_H</span></div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include <<a class="code" href="../../db/dd5/thread_8h.html">sys/thread.h</a>></span></div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include <<a class="code" href="../../d3/d7e/sysproto__posix_8h.html">sys/sysproto_posix.h</a>></span></div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include <<a class="code" href="../../d6/db4/include_2vfs_2file_8h.html">vfs/file.h</a>></span></div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include <<a class="code" href="../../d2/d1b/stat_8h.html">vfs/stat.h</a>></span></div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  </div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include <<a class="code" href="../../d7/d9f/fcntl_8h.html">sys/fcntl.h</a>></span></div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  </div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">/* Limits */</span></div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment">//#define MAX_FILES 256</span></div> <div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="../../d3/df4/descrip_8h.html#a2c5eecb22513a88c24ae5831a3265e54"> 42</a></span> <span class="preprocessor">#define MAX_FILES 256</span></div> <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  </div> <div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="../../d3/df4/descrip_8h.html#ae9f148ba55d84268ecb6f8031ab45076"> 44</a></span> <span class="keyword">typedef</span> <a class="code" href="../../d0/d6f/__types_8h.html#a633606f8a0f9a59b300c4947280d816f">__mode_t</a> <a class="code" href="../../d3/df4/descrip_8h.html#ae9f148ba55d84268ecb6f8031ab45076">mode_t</a>;</div> <div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="../../d3/df4/descrip_8h.html#ae6b499a9e117ca8d1d165c847c872cc0"> 45</a></span> <span class="keyword">typedef</span> <a class="code" href="../../d0/d6f/__types_8h.html#ac1789b464296a1bd0de1734e17d0a146">__nlink_t</a> <a class="code" href="../../d3/df4/descrip_8h.html#ae6b499a9e117ca8d1d165c847c872cc0">nlink_t</a>;</div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">struct </span><a class="code" href="../../de/d79/structfileOps.html">fileOps</a>;</div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="keyword">struct </span><a class="code" href="../../d7/d3a/structfile.html">file</a>;</div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">struct </span><a class="code" href="../../d3/d95/structuio.html">uio</a>;</div> <div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment">//TMP</span></div> <div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="keyword">struct </span><a class="code" href="../../df/db2/structucred.html">ucred</a>;</div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment">//TMP</span></div> <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div> <div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment">/* Function Protos */</span></div> <div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="../../d3/df4/descrip_8h.html#a75116012fe309ee2b3b5094cabb634e2"> 55</a></span> <span class="keyword">typedef</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/df4/descrip_8h.html#a75116012fe309ee2b3b5094cabb634e2">fo_rdwr_t</a>(<span class="keyword">struct</span> <a class="code" href="../../d7/d3a/structfile.html">file</a> *fp, <span class="keyword">struct</span> <a class="code" href="../../d3/d95/structuio.html">uio</a> *<a class="code" href="../../d3/d95/structuio.html">uio</a>, <span class="keyword">struct</span> <a class="code" href="../../df/db2/structucred.html">ucred</a> *active_cred, <span class="keywordtype">int</span> flags, <span class="keyword">struct</span> <a class="code" href="../../d3/dc5/structthread.html">thread</a> *td);</div> <div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="../../d3/df4/descrip_8h.html#a2a2c048445e6f662a2f408e9cf13e955"> 56</a></span> <span class="keyword">typedef</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/df4/descrip_8h.html#a2a2c048445e6f662a2f408e9cf13e955">fo_stat_t</a>(<span class="keyword">struct</span> <a class="code" href="../../d7/d3a/structfile.html">file</a> *fp, <span class="keyword">struct</span> <a class="code" href="../../da/de7/structstat.html">stat</a> *sb, <span class="keyword">struct</span> <a class="code" href="../../df/db2/structucred.html">ucred</a> *active_cred, <span class="keyword">struct</span> <a class="code" href="../../d3/dc5/structthread.html">thread</a> *td);</div> <div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="../../d3/df4/descrip_8h.html#aea172d12f3d010efb1c413fd8fdc39b3"> 57</a></span> <span class="keyword">typedef</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/df4/descrip_8h.html#aea172d12f3d010efb1c413fd8fdc39b3">fo_close_t</a>(<span class="keyword">struct</span> <a class="code" href="../../d7/d3a/structfile.html">file</a> *fp, <span class="keyword">struct</span> <a class="code" href="../../d3/dc5/structthread.html">thread</a> *td);</div> <div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  </div> <div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="../../df/db2/structucred.html"> 59</a></span> <span class="keyword">struct </span><a class="code" href="../../df/db2/structucred.html">ucred</a> {</div> <div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="../../df/db2/structucred.html#a73cbbcb9f95c207f94ebbb86689cb2ed"> 60</a></span>  <span class="keywordtype">char</span> <a class="code" href="../../df/db2/structucred.html#a73cbbcb9f95c207f94ebbb86689cb2ed">pad</a>;</div> <div class="line"><a name="l00061"></a><span class="lineno"> 61</span> };</div> <div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div> <div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="../../d3/d95/structuio.html"> 63</a></span> <span class="keyword">struct </span><a class="code" href="../../d3/d95/structuio.html">uio</a> {</div> <div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../d3/d95/structuio.html#a0768dab04d6f2e7169b5e8e944f651fe"> 64</a></span>  <span class="keywordtype">char</span> <a class="code" href="../../d3/d95/structuio.html#a0768dab04d6f2e7169b5e8e944f651fe">pad</a>;</div> <div class="line"><a name="l00065"></a><span class="lineno"> 65</span> };</div> <div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  </div> <div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="../../d7/d3a/structfile.html"> 67</a></span> <span class="keyword">struct </span><a class="code" href="../../d7/d3a/structfile.html">file</a> {</div> <div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="../../d7/d3a/structfile.html#ad549b6a207bd14d3a8a8f8b5c3ee1b9a"> 68</a></span>  <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> <a class="code" href="../../d7/d3a/structfile.html#ad549b6a207bd14d3a8a8f8b5c3ee1b9a">f_flag</a>;</div> <div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="../../d7/d3a/structfile.html#ad5d0e9ab60915cc757d73bf3f6bc2e15"> 69</a></span>  <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#a281b4b5562236420969a830503b0ba19">uint16_t</a> <a class="code" href="../../d7/d3a/structfile.html#ad5d0e9ab60915cc757d73bf3f6bc2e15">f_type</a>;</div> <div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="../../d7/d3a/structfile.html#ad028f15c75ffe1607632f78ada7bcfbd"> 70</a></span>  <span class="keyword">struct </span><a class="code" href="../../de/d79/structfileOps.html">fileOps</a> *<a class="code" href="../../d7/d3a/structfile.html#ad028f15c75ffe1607632f78ada7bcfbd">f_ops</a>;</div> <div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="../../d7/d3a/structfile.html#af2108e4a1620fe81b2b5e7b6db5d41d4"> 71</a></span>  <a class="code" href="../../d0/d22/structfileDescriptor.html">fileDescriptor_t</a> *<a class="code" href="../../d7/d3a/structfile.html#af2108e4a1620fe81b2b5e7b6db5d41d4">fd</a>;</div> <div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="../../d7/d3a/structfile.html#ac43cc1da8bee1eb339249ad88518f769"> 72</a></span>  <span class="keywordtype">int</span> <a class="code" href="../../d7/d3a/structfile.html#ac43cc1da8bee1eb339249ad88518f769">fd_type</a>;</div> <div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="../../d7/d3a/structfile.html#aaad1c900a9ee26ad1aa91be70b6f98ec"> 73</a></span>  <span class="keywordtype">int</span> <a class="code" href="../../d7/d3a/structfile.html#aaad1c900a9ee26ad1aa91be70b6f98ec">socket</a>;</div> <div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="../../d7/d3a/structfile.html#adfb0c6311589d1d62b720c9610430ad0"> 74</a></span>  <span class="keywordtype">void</span> *<a class="code" href="../../d7/d3a/structfile.html#adfb0c6311589d1d62b720c9610430ad0">data</a>;</div> <div class="line"><a name="l00075"></a><span class="lineno"> 75</span> };</div> <div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div> <div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="../../de/d79/structfileOps.html"> 77</a></span> <span class="keyword">struct </span><a class="code" href="../../de/d79/structfileOps.html">fileOps</a> {</div> <div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="../../de/d79/structfileOps.html#a1fae56c4e194b63f774dbebca530e721"> 78</a></span>  <a class="code" href="../../d3/df4/descrip_8h.html#a75116012fe309ee2b3b5094cabb634e2">fo_rdwr_t</a> *<a class="code" href="../../de/d79/structfileOps.html#a1fae56c4e194b63f774dbebca530e721">read</a>;</div> <div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="../../de/d79/structfileOps.html#acaaff927eddb287f956556d9b1d178e6"> 79</a></span>  <a class="code" href="../../d3/df4/descrip_8h.html#a75116012fe309ee2b3b5094cabb634e2">fo_rdwr_t</a> *<a class="code" href="../../de/d79/structfileOps.html#acaaff927eddb287f956556d9b1d178e6">write</a>;</div> <div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="../../de/d79/structfileOps.html#a104e81450f108dfbf47b6961a5d47d04"> 80</a></span>  <a class="code" href="../../d3/df4/descrip_8h.html#a2a2c048445e6f662a2f408e9cf13e955">fo_stat_t</a> *<a class="code" href="../../de/d79/structfileOps.html#a104e81450f108dfbf47b6961a5d47d04">stat</a>;</div> <div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="../../de/d79/structfileOps.html#a9dc0634ce672ddd26cd1b442a5b7bee5"> 81</a></span>  <a class="code" href="../../d3/df4/descrip_8h.html#aea172d12f3d010efb1c413fd8fdc39b3">fo_close_t</a> *<a class="code" href="../../de/d79/structfileOps.html#a9dc0634ce672ddd26cd1b442a5b7bee5">close</a>;</div> <div class="line"><a name="l00082"></a><span class="lineno"> 82</span> };</div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  </div> <div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="preprocessor">#ifdef _BALLS</span></div> <div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="keyword">struct </span><a class="code" href="../../da/de7/structstat.html">stat</a> {</div> <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="../../d0/d6f/__types_8h.html#a45c90547fafad0ff956b06bb5245cdcf">__dev_t</a> <a class="code" href="../../da/de7/structstat.html#afb143a1534bf763afd6b353ea3cad102">st_dev</a>; <span class="comment">/* inode's device */</span></div> <div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#a73341b7381d39d6e5b80ff9f23379dbd">ino_t</a> <a class="code" href="../../da/de7/structstat.html#a9769ed8f0d4c5a9f329c32bc92479d56">st_ino</a>; <span class="comment">/* inode's number */</span></div> <div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="../../d3/df4/descrip_8h.html#ae9f148ba55d84268ecb6f8031ab45076">mode_t</a> <a class="code" href="../../da/de7/structstat.html#ad0ca66d10647cc5f8aaf1d06ab34ed54">st_mode</a>; <span class="comment">/* inode protection mode */</span></div> <div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="../../d3/df4/descrip_8h.html#ae6b499a9e117ca8d1d165c847c872cc0">nlink_t</a> <a class="code" href="../../da/de7/structstat.html#a1d8d4cf9b348a7f706fef29aabd9bd13">st_nlink</a>; <span class="comment">/* number of hard links */</span></div> <div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#a1844226d778badcda0a21b28310830ea">uid_t</a> <a class="code" href="../../da/de7/structstat.html#a4a8708a3d18be60ee7b2f06c4cab0c70">st_uid</a>; <span class="comment">/* user ID of the file's owner */</span></div> <div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#a9520fe38856d436aa8c5850ff21839ec">gid_t</a> <a class="code" href="../../da/de7/structstat.html#ab864f16f436cec370f0ced585d897698">st_gid</a>; <span class="comment">/* group ID of the file's group */</span></div> <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="../../d0/d6f/__types_8h.html#a45c90547fafad0ff956b06bb5245cdcf">__dev_t</a> <a class="code" href="../../da/de7/structstat.html#a19878d2506fccbada6f99ff8351e54fc">st_rdev</a>; <span class="comment">/* device type */</span></div> <div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="preprocessor">#if __BSD_VISIBLE</span></div> <div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">struct </span><a class="code" href="../../da/d1c/structtimespec.html">timespec</a> st_atimespec; <span class="comment">/* time of last access */</span></div> <div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keyword">struct </span><a class="code" href="../../da/d1c/structtimespec.html">timespec</a> st_mtimespec; <span class="comment">/* time of last data modification */</span></div> <div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keyword">struct </span><a class="code" href="../../da/d1c/structtimespec.html">timespec</a> st_ctimespec; <span class="comment">/* time of last file status change */</span></div> <div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="preprocessor">#else</span></div> <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <a class="code" href="../../d6/d30/__timespec_8h.html#ac8234dac99fc3a2dcc8b7998afd40d49">time_t</a> <a class="code" href="../../da/de7/structstat.html#ab74d1e7e345e88b9d0fb2688a97cba64">st_atime</a>; <span class="comment">/* time of last access */</span></div> <div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordtype">long</span> <a class="code" href="../../da/de7/structstat.html#a8e7af7908cc5409963de8c2af581070c">__st_atimensec</a>; <span class="comment">/* nsec of last access */</span></div> <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="../../d6/d30/__timespec_8h.html#ac8234dac99fc3a2dcc8b7998afd40d49">time_t</a> <a class="code" href="../../da/de7/structstat.html#a77e235090f8cb6897f1c0ce65689006b">st_mtime</a>; <span class="comment">/* time of last data modification */</span></div> <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordtype">long</span> <a class="code" href="../../da/de7/structstat.html#ad35fc3a664184cdc617b114cd25f5f67">__st_mtimensec</a>; <span class="comment">/* nsec of last data modification */</span></div> <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="../../d6/d30/__timespec_8h.html#ac8234dac99fc3a2dcc8b7998afd40d49">time_t</a> <a class="code" href="../../da/de7/structstat.html#a1b4b858db1ebe79c3d6e0fc1ef721024">st_ctime</a>; <span class="comment">/* time of last file status change */</span></div> <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">long</span> <a class="code" href="../../da/de7/structstat.html#a68a4709b4a992cd2e1dfdfb630bfe6cb">__st_ctimensec</a>; <span class="comment">/* nsec of last file status change */</span></div> <div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#afa178be408981cc5edd64227b6332fc6">off_t</a> <a class="code" href="../../da/de7/structstat.html#a040e19c8b9766f841fde8786ce9297bf">st_size</a>; <span class="comment">/* file size, in bytes */</span></div> <div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#a7da4753cd6945c5ad91f41c00b474b3f">blkcnt_t</a> <a class="code" href="../../da/de7/structstat.html#a42dd716b2f9234f961d949fc9500eefb">st_blocks</a>; <span class="comment">/* blocks allocated for file */</span></div> <div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#acac8eacbbc225743e88f8e5e8bf93581">blksize_t</a> <a class="code" href="../../da/de7/structstat.html#a38d474e1ae3cf6fbdde89ac3c3e308f1">st_blksize</a>; <span class="comment">/* optimal blocksize for I/O */</span></div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="../../d0/d27/include_2sys_2types_8h.html#aee689fd681d6f52c910a90af380155af">fflags_t</a> <a class="code" href="../../da/de7/structstat.html#a34bffc74ecab7594299064e953e5b20b">st_flags</a>; <span class="comment">/* user defined flags for file */</span></div> <div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="../../d0/d6f/__types_8h.html#acaa96aed3d7fddac490800f166c2af02">__uint32_t</a> <a class="code" href="../../da/de7/structstat.html#a96a89f0335e054637efa0eb7487e0682">st_gen</a>; <span class="comment">/* file generation number */</span></div> <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="../../d0/d6f/__types_8h.html#a479ed1d22a5d4badec9d1fa7246d05bf">__int32_t</a> <a class="code" href="../../da/de7/structstat.html#a1823e5f33a019b1bdeb7a000d0d202fd">st_lspare</a>;</div> <div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="preprocessor">#if __BSD_VISIBLE</span></div> <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keyword">struct </span><a class="code" href="../../da/d1c/structtimespec.html">timespec</a> st_birthtimespec; <span class="comment">/* time of file creation */</span></div> <div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="comment">/*</span></div> <div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment"> * Explicitly pad st_birthtimespec to 16 bytes so that the size of</span></div> <div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment"> * struct stat is backwards compatible. We use bitfields instead</span></div> <div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment"> * of an array of chars so that this doesn't require a C99 compiler</span></div> <div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment"> * to compile if the size of the padding is 0. We use 2 bitfields</span></div> <div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment"> * to cover up to 64 bits on 32-bit machines. We assume that</span></div> <div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment"> * CHAR_BIT is 8...</span></div> <div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment"> */</span></div> <div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordtype">unsigned</span> <a class="code" href="../../da/de7/structstat.html#aeadf0ca7bfa140ac64fa582f7765066b">int</a> :(8 / 2) * (16 - (<span class="keywordtype">int</span>)<span class="keyword">sizeof</span>(<span class="keyword">struct </span><a class="code" href="../../da/d1c/structtimespec.html">timespec</a>));</div> <div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordtype">unsigned</span> <a class="code" href="../../da/de7/structstat.html#aeadf0ca7bfa140ac64fa582f7765066b">int</a> :(8 / 2) * (16 - (<span class="keywordtype">int</span>)<span class="keyword">sizeof</span>(<span class="keyword">struct </span><a class="code" href="../../da/d1c/structtimespec.html">timespec</a>));</div> <div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="preprocessor">#else</span></div> <div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="../../d6/d30/__timespec_8h.html#ac8234dac99fc3a2dcc8b7998afd40d49">time_t</a> <a class="code" href="../../da/de7/structstat.html#aa7c8627ac57ce82bccc0b261d56a25e5">st_birthtime</a>; <span class="comment">/* time of file creation */</span></div> <div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keywordtype">long</span> <a class="code" href="../../da/de7/structstat.html#a0e919848cf78f7aacb30a7fb13e81acc">st_birthtimensec</a>; <span class="comment">/* nsec of file creation */</span></div> <div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordtype">unsigned</span> <a class="code" href="../../da/de7/structstat.html#aeadf0ca7bfa140ac64fa582f7765066b">int</a> :(8 / 2) * (16 - (<span class="keywordtype">int</span>)<span class="keyword">sizeof</span>(<span class="keyword">struct </span><a class="code" href="../../da/d18/struct____timespec.html">__timespec</a>));</div> <div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordtype">unsigned</span> <a class="code" href="../../da/de7/structstat.html#aeadf0ca7bfa140ac64fa582f7765066b">int</a> :(8 / 2) * (16 - (<span class="keywordtype">int</span>)<span class="keyword">sizeof</span>(<span class="keyword">struct </span><a class="code" href="../../da/d18/struct____timespec.html">__timespec</a>));</div> <div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00129"></a><span class="lineno"> 129</span> };</div> <div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  </div> <div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/df4/descrip_8h.html#aa1030566270fc06a197500c21f0025f5">fcntl</a>(<span class="keyword">struct</span> <a class="code" href="../../d3/dc5/structthread.html">thread</a>*, <span class="keyword">struct</span> <a class="code" href="../../d8/d3d/structsys__fcntl__args.html">sys_fcntl_args</a>*);</div> <div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/df4/descrip_8h.html#a39808045c1781393e845fa51fd2db6e0">close</a>(<span class="keyword">struct</span> <a class="code" href="../../d3/dc5/structthread.html">thread</a> *, <span class="keyword">struct</span> <a class="code" href="../../d7/d9f/structclose__args.html">close_args</a> *);</div> <div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/df4/descrip_8h.html#a434fb15226182b0ee879a5afe9a8c190">falloc</a>(<span class="keyword">struct</span> <a class="code" href="../../d3/dc5/structthread.html">thread</a> *, <span class="keyword">struct</span> <a class="code" href="../../d7/d3a/structfile.html">file</a> **, <span class="keywordtype">int</span> *);</div> <div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/df4/descrip_8h.html#aec82fd17dad5642277af6dc43f9893c5">getdtablesize</a>(<span class="keyword">struct</span> <a class="code" href="../../d3/dc5/structthread.html">thread</a> *, <span class="keyword">struct</span> <a class="code" href="../../d9/d78/structgetdtablesize__args.html">getdtablesize_args</a> *);</div> <div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/df4/descrip_8h.html#a69190c8d0a802a98f76a483dbf672996">fstat</a>(<span class="keyword">struct</span> <a class="code" href="../../d3/dc5/structthread.html">thread</a> *, <span class="keyword">struct</span> <a class="code" href="../../d2/d11/structsys__fstat__args.html">sys_fstat_args</a> *);</div> <div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/df4/descrip_8h.html#add9e21938f9a168f9be49ddbfe03fed1">ioctl</a>(<span class="keyword">struct</span> <a class="code" href="../../d3/dc5/structthread.html">thread</a> *, <span class="keyword">struct</span> <a class="code" href="../../df/d77/structioctl__args.html">ioctl_args</a> *);</div> <div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="keywordtype">int</span> <a class="code" href="../../d3/df4/descrip_8h.html#a14e228d6e5391a882d3b20ff2466b2ac">getfd</a>(<span class="keyword">struct</span> <a class="code" href="../../d3/dc5/structthread.html">thread</a> *td, <span class="keyword">struct</span> <a class="code" href="../../d7/d3a/structfile.html">file</a> **fp, <span class="keywordtype">int</span> fd);</div> <div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  </div> <div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <a class="code" href="../../d3/df4/descrip_8h.html#a366ffc31fab66cd94fe5849c11c01199">int_kern_openat</a>(<span class="keyword">struct</span> <a class="code" href="../../d3/dc5/structthread.html">thread</a> *, <span class="keywordtype">int</span>, <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>);</div> <div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div> <div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  </div> <div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment">/***</span></div> <div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment"> END</span></div> <div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment"> ***/</span></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <div class="ttc" id="astructstat_html_a040e19c8b9766f841fde8786ce9297bf"><div class="ttname"><a href="../../da/de7/structstat.html#a040e19c8b9766f841fde8786ce9297bf">stat::st_size</a></div><div class="ttdeci">off_t st_size</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00058">stat.h:58</a></div></div> <div class="ttc" id="astructstat_html"><div class="ttname"><a href="../../da/de7/structstat.html">stat</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00044">stat.h:44</a></div></div> <div class="ttc" id="astructucred_html"><div class="ttname"><a href="../../df/db2/structucred.html">ucred</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00059">descrip.h:59</a></div></div> <div class="ttc" id="astructsys__fstat__args_html"><div class="ttname"><a href="../../d2/d11/structsys__fstat__args.html">sys_fstat_args</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d7e/sysproto__posix_8h_source.html#l00467">sysproto_posix.h:467</a></div></div> <div class="ttc" id="astructstat_html_a8e7af7908cc5409963de8c2af581070c"><div class="ttname"><a href="../../da/de7/structstat.html#a8e7af7908cc5409963de8c2af581070c">stat::__st_atimensec</a></div><div class="ttdeci">long __st_atimensec</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00053">stat.h:53</a></div></div> <div class="ttc" id="astructstat_html_a77e235090f8cb6897f1c0ce65689006b"><div class="ttname"><a href="../../da/de7/structstat.html#a77e235090f8cb6897f1c0ce65689006b">stat::st_mtime</a></div><div class="ttdeci">time_t st_mtime</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00054">stat.h:54</a></div></div> <div class="ttc" id="a__types_8h_html_a45c90547fafad0ff956b06bb5245cdcf"><div class="ttname"><a href="../../d0/d6f/__types_8h.html#a45c90547fafad0ff956b06bb5245cdcf">__dev_t</a></div><div class="ttdeci">__uint32_t __dev_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d6f/__types_8h_source.html#l00048">_types.h:48</a></div></div> <div class="ttc" id="afcntl_8h_html"><div class="ttname"><a href="../../d7/d9f/fcntl_8h.html">fcntl.h</a></div></div> <div class="ttc" id="astructfileOps_html_a104e81450f108dfbf47b6961a5d47d04"><div class="ttname"><a href="../../de/d79/structfileOps.html#a104e81450f108dfbf47b6961a5d47d04">fileOps::stat</a></div><div class="ttdeci">fo_stat_t * stat</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00080">descrip.h:80</a></div></div> <div class="ttc" id="ainclude_2vfs_2file_8h_html"><div class="ttname"><a href="../../d6/db4/include_2vfs_2file_8h.html">file.h</a></div></div> <div class="ttc" id="astructstat_html_a4a8708a3d18be60ee7b2f06c4cab0c70"><div class="ttname"><a href="../../da/de7/structstat.html#a4a8708a3d18be60ee7b2f06c4cab0c70">stat::st_uid</a></div><div class="ttdeci">uid_t st_uid</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00049">stat.h:49</a></div></div> <div class="ttc" id="adescrip_8h_html_a69190c8d0a802a98f76a483dbf672996"><div class="ttname"><a href="../../d3/df4/descrip_8h.html#a69190c8d0a802a98f76a483dbf672996">fstat</a></div><div class="ttdeci">int fstat(struct thread *, struct sys_fstat_args *)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d3f/descrip_8c_source.html#l00184">descrip.c:184</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_a9520fe38856d436aa8c5850ff21839ec"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#a9520fe38856d436aa8c5850ff21839ec">gid_t</a></div><div class="ttdeci">__gid_t gid_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00123">types.h:123</a></div></div> <div class="ttc" id="astructstat_html_a1823e5f33a019b1bdeb7a000d0d202fd"><div class="ttname"><a href="../../da/de7/structstat.html#a1823e5f33a019b1bdeb7a000d0d202fd">stat::st_lspare</a></div><div class="ttdeci">__int32_t st_lspare</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00063">stat.h:63</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_aee689fd681d6f52c910a90af380155af"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#aee689fd681d6f52c910a90af380155af">fflags_t</a></div><div class="ttdeci">__fflags_t fflags_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00126">types.h:126</a></div></div> <div class="ttc" id="astructfile_html_adfb0c6311589d1d62b720c9610430ad0"><div class="ttname"><a href="../../d7/d3a/structfile.html#adfb0c6311589d1d62b720c9610430ad0">file::data</a></div><div class="ttdeci">void * data</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00074">descrip.h:74</a></div></div> <div class="ttc" id="a__types_8h_html_acaa96aed3d7fddac490800f166c2af02"><div class="ttname"><a href="../../d0/d6f/__types_8h.html#acaa96aed3d7fddac490800f166c2af02">__uint32_t</a></div><div class="ttdeci">unsigned int __uint32_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d6f/__types_8h_source.html#l00038">_types.h:38</a></div></div> <div class="ttc" id="astructfile_html_ad549b6a207bd14d3a8a8f8b5c3ee1b9a"><div class="ttname"><a href="../../d7/d3a/structfile.html#ad549b6a207bd14d3a8a8f8b5c3ee1b9a">file::f_flag</a></div><div class="ttdeci">uint32_t f_flag</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00068">descrip.h:68</a></div></div> <div class="ttc" id="a__types_8h_html_a633606f8a0f9a59b300c4947280d816f"><div class="ttname"><a href="../../d0/d6f/__types_8h.html#a633606f8a0f9a59b300c4947280d816f">__mode_t</a></div><div class="ttdeci">__uint16_t __mode_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d6f/__types_8h_source.html#l00049">_types.h:49</a></div></div> <div class="ttc" id="astructfileDescriptor_html"><div class="ttname"><a href="../../d0/d22/structfileDescriptor.html">fileDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d6/db4/include_2vfs_2file_8h_source.html#l00062">file.h:62</a></div></div> <div class="ttc" id="astructucred_html_a73cbbcb9f95c207f94ebbb86689cb2ed"><div class="ttname"><a href="../../df/db2/structucred.html#a73cbbcb9f95c207f94ebbb86689cb2ed">ucred::pad</a></div><div class="ttdeci">char pad</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00060">descrip.h:60</a></div></div> <div class="ttc" id="astructstat_html_a42dd716b2f9234f961d949fc9500eefb"><div class="ttname"><a href="../../da/de7/structstat.html#a42dd716b2f9234f961d949fc9500eefb">stat::st_blocks</a></div><div class="ttdeci">blkcnt_t st_blocks</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00059">stat.h:59</a></div></div> <div class="ttc" id="asysproto__posix_8h_html"><div class="ttname"><a href="../../d3/d7e/sysproto__posix_8h.html">sysproto_posix.h</a></div></div> <div class="ttc" id="astructclose__args_html"><div class="ttname"><a href="../../d7/d9f/structclose__args.html">close_args</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d7e/sysproto__posix_8h_source.html#l00372">sysproto_posix.h:372</a></div></div> <div class="ttc" id="adescrip_8h_html_a75116012fe309ee2b3b5094cabb634e2"><div class="ttname"><a href="../../d3/df4/descrip_8h.html#a75116012fe309ee2b3b5094cabb634e2">fo_rdwr_t</a></div><div class="ttdeci">int fo_rdwr_t(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td)</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00055">descrip.h:55</a></div></div> <div class="ttc" id="astructstat_html_a1d8d4cf9b348a7f706fef29aabd9bd13"><div class="ttname"><a href="../../da/de7/structstat.html#a1d8d4cf9b348a7f706fef29aabd9bd13">stat::st_nlink</a></div><div class="ttdeci">__nlink_t st_nlink</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00048">stat.h:48</a></div></div> <div class="ttc" id="astructfile_html"><div class="ttname"><a href="../../d7/d3a/structfile.html">file</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00067">descrip.h:67</a></div></div> <div class="ttc" id="astructthread_html"><div class="ttname"><a href="../../d3/dc5/structthread.html">thread</a></div><div class="ttdef"><b>Definition:</b> <a href="../../db/dd5/thread_8h_source.html#l00040">thread.h:40</a></div></div> <div class="ttc" id="astructstat_html_ad0ca66d10647cc5f8aaf1d06ab34ed54"><div class="ttname"><a href="../../da/de7/structstat.html#ad0ca66d10647cc5f8aaf1d06ab34ed54">stat::st_mode</a></div><div class="ttdeci">__mode_t st_mode</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00047">stat.h:47</a></div></div> <div class="ttc" id="astructsys__fcntl__args_html"><div class="ttname"><a href="../../d8/d3d/structsys__fcntl__args.html">sys_fcntl_args</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d7e/sysproto__posix_8h_source.html#l00252">sysproto_posix.h:252</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_a73341b7381d39d6e5b80ff9f23379dbd"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#a73341b7381d39d6e5b80ff9f23379dbd">ino_t</a></div><div class="ttdeci">__ino_t ino_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00093">types.h:93</a></div></div> <div class="ttc" id="adescrip_8h_html_add9e21938f9a168f9be49ddbfe03fed1"><div class="ttname"><a href="../../d3/df4/descrip_8h.html#add9e21938f9a168f9be49ddbfe03fed1">ioctl</a></div><div class="ttdeci">int ioctl(struct thread *, struct ioctl_args *)</div><div class="ttdoc">ioctl functionality not implimented yet</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d3f/descrip_8c_source.html#l00203">descrip.c:203</a></div></div> <div class="ttc" id="adescrip_8h_html_aa1030566270fc06a197500c21f0025f5"><div class="ttname"><a href="../../d3/df4/descrip_8h.html#aa1030566270fc06a197500c21f0025f5">fcntl</a></div><div class="ttdeci">int fcntl(struct thread *, struct sys_fcntl_args *)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d3f/descrip_8c_source.html#l00041">descrip.c:41</a></div></div> <div class="ttc" id="astructstat_html_a1b4b858db1ebe79c3d6e0fc1ef721024"><div class="ttname"><a href="../../da/de7/structstat.html#a1b4b858db1ebe79c3d6e0fc1ef721024">stat::st_ctime</a></div><div class="ttdeci">time_t st_ctime</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00056">stat.h:56</a></div></div> <div class="ttc" id="adescrip_8h_html_a434fb15226182b0ee879a5afe9a8c190"><div class="ttname"><a href="../../d3/df4/descrip_8h.html#a434fb15226182b0ee879a5afe9a8c190">falloc</a></div><div class="ttdeci">int falloc(struct thread *, struct file **, int *)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d3f/descrip_8c_source.html#l00097">descrip.c:97</a></div></div> <div class="ttc" id="astructfile_html_ac43cc1da8bee1eb339249ad88518f769"><div class="ttname"><a href="../../d7/d3a/structfile.html#ac43cc1da8bee1eb339249ad88518f769">file::fd_type</a></div><div class="ttdeci">int fd_type</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00072">descrip.h:72</a></div></div> <div class="ttc" id="astructfile_html_ad5d0e9ab60915cc757d73bf3f6bc2e15"><div class="ttname"><a href="../../d7/d3a/structfile.html#ad5d0e9ab60915cc757d73bf3f6bc2e15">file::f_type</a></div><div class="ttdeci">uint16_t f_type</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00069">descrip.h:69</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_a281b4b5562236420969a830503b0ba19"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#a281b4b5562236420969a830503b0ba19">uint16_t</a></div><div class="ttdeci">__uint16_t uint16_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00045">types.h:45</a></div></div> <div class="ttc" id="astructfileOps_html"><div class="ttname"><a href="../../de/d79/structfileOps.html">fileOps</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00077">descrip.h:77</a></div></div> <div class="ttc" id="astructfile_html_ad028f15c75ffe1607632f78ada7bcfbd"><div class="ttname"><a href="../../d7/d3a/structfile.html#ad028f15c75ffe1607632f78ada7bcfbd">file::f_ops</a></div><div class="ttdeci">struct fileOps * f_ops</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00070">descrip.h:70</a></div></div> <div class="ttc" id="astructioctl__args_html"><div class="ttname"><a href="../../df/d77/structioctl__args.html">ioctl_args</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d7e/sysproto__posix_8h_source.html#l00475">sysproto_posix.h:475</a></div></div> <div class="ttc" id="adescrip_8h_html_a366ffc31fab66cd94fe5849c11c01199"><div class="ttname"><a href="../../d3/df4/descrip_8h.html#a366ffc31fab66cd94fe5849c11c01199">int_kern_openat</a></div><div class="ttdeci">int_kern_openat(struct thread *, int, char *, int)</div></div> <div class="ttc" id="astructfile_html_af2108e4a1620fe81b2b5e7b6db5d41d4"><div class="ttname"><a href="../../d7/d3a/structfile.html#af2108e4a1620fe81b2b5e7b6db5d41d4">file::fd</a></div><div class="ttdeci">fileDescriptor_t * fd</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00071">descrip.h:71</a></div></div> <div class="ttc" id="adescrip_8h_html_ae9f148ba55d84268ecb6f8031ab45076"><div class="ttname"><a href="../../d3/df4/descrip_8h.html#ae9f148ba55d84268ecb6f8031ab45076">mode_t</a></div><div class="ttdeci">__mode_t mode_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00044">descrip.h:44</a></div></div> <div class="ttc" id="astructstat_html_a68a4709b4a992cd2e1dfdfb630bfe6cb"><div class="ttname"><a href="../../da/de7/structstat.html#a68a4709b4a992cd2e1dfdfb630bfe6cb">stat::__st_ctimensec</a></div><div class="ttdeci">long __st_ctimensec</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00057">stat.h:57</a></div></div> <div class="ttc" id="astructfileOps_html_a1fae56c4e194b63f774dbebca530e721"><div class="ttname"><a href="../../de/d79/structfileOps.html#a1fae56c4e194b63f774dbebca530e721">fileOps::read</a></div><div class="ttdeci">fo_rdwr_t * read</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00078">descrip.h:78</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_acac8eacbbc225743e88f8e5e8bf93581"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#acac8eacbbc225743e88f8e5e8bf93581">blksize_t</a></div><div class="ttdeci">__blksize_t blksize_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00125">types.h:125</a></div></div> <div class="ttc" id="astructstat_html_a19878d2506fccbada6f99ff8351e54fc"><div class="ttname"><a href="../../da/de7/structstat.html#a19878d2506fccbada6f99ff8351e54fc">stat::st_rdev</a></div><div class="ttdeci">__dev_t st_rdev</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00051">stat.h:51</a></div></div> <div class="ttc" id="adescrip_8h_html_aea172d12f3d010efb1c413fd8fdc39b3"><div class="ttname"><a href="../../d3/df4/descrip_8h.html#aea172d12f3d010efb1c413fd8fdc39b3">fo_close_t</a></div><div class="ttdeci">int fo_close_t(struct file *fp, struct thread *td)</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00057">descrip.h:57</a></div></div> <div class="ttc" id="adescrip_8h_html_a14e228d6e5391a882d3b20ff2466b2ac"><div class="ttname"><a href="../../d3/df4/descrip_8h.html#a14e228d6e5391a882d3b20ff2466b2ac">getfd</a></div><div class="ttdeci">int getfd(struct thread *td, struct file **fp, int fd)</div><div class="ttdoc">get pointer to file fd in specified thread</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d3f/descrip_8c_source.html#l00213">descrip.c:213</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_a7da4753cd6945c5ad91f41c00b474b3f"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#a7da4753cd6945c5ad91f41c00b474b3f">blkcnt_t</a></div><div class="ttdeci">__blkcnt_t blkcnt_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00124">types.h:124</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_a0238af00180b6d9278fa1c6aa790fdf4"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a></div><div class="ttdeci">__uint32_t uint32_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00046">types.h:46</a></div></div> <div class="ttc" id="astructstat_html_a34bffc74ecab7594299064e953e5b20b"><div class="ttname"><a href="../../da/de7/structstat.html#a34bffc74ecab7594299064e953e5b20b">stat::st_flags</a></div><div class="ttdeci">fflags_t st_flags</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00061">stat.h:61</a></div></div> <div class="ttc" id="astructstat_html_a9769ed8f0d4c5a9f329c32bc92479d56"><div class="ttname"><a href="../../da/de7/structstat.html#a9769ed8f0d4c5a9f329c32bc92479d56">stat::st_ino</a></div><div class="ttdeci">ino_t st_ino</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00046">stat.h:46</a></div></div> <div class="ttc" id="adescrip_8h_html_a39808045c1781393e845fa51fd2db6e0"><div class="ttname"><a href="../../d3/df4/descrip_8h.html#a39808045c1781393e845fa51fd2db6e0">close</a></div><div class="ttdeci">int close(struct thread *, struct close_args *)</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d3f/descrip_8c_source.html#l00161">descrip.c:161</a></div></div> <div class="ttc" id="a__types_8h_html_a479ed1d22a5d4badec9d1fa7246d05bf"><div class="ttname"><a href="../../d0/d6f/__types_8h.html#a479ed1d22a5d4badec9d1fa7246d05bf">__int32_t</a></div><div class="ttdeci">int __int32_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d6f/__types_8h_source.html#l00037">_types.h:37</a></div></div> <div class="ttc" id="a__timespec_8h_html_ac8234dac99fc3a2dcc8b7998afd40d49"><div class="ttname"><a href="../../d6/d30/__timespec_8h.html#ac8234dac99fc3a2dcc8b7998afd40d49">time_t</a></div><div class="ttdeci">__time_t time_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d30/__timespec_8h_source.html#l00007">_timespec.h:7</a></div></div> <div class="ttc" id="adescrip_8h_html_ae6b499a9e117ca8d1d165c847c872cc0"><div class="ttname"><a href="../../d3/df4/descrip_8h.html#ae6b499a9e117ca8d1d165c847c872cc0">nlink_t</a></div><div class="ttdeci">__nlink_t nlink_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00045">descrip.h:45</a></div></div> <div class="ttc" id="astructgetdtablesize__args_html"><div class="ttname"><a href="../../d9/d78/structgetdtablesize__args.html">getdtablesize_args</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d7e/sysproto__posix_8h_source.html#l00435">sysproto_posix.h:435</a></div></div> <div class="ttc" id="astructstat_html_afb143a1534bf763afd6b353ea3cad102"><div class="ttname"><a href="../../da/de7/structstat.html#afb143a1534bf763afd6b353ea3cad102">stat::st_dev</a></div><div class="ttdeci">__dev_t st_dev</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00045">stat.h:45</a></div></div> <div class="ttc" id="astructfileOps_html_a9dc0634ce672ddd26cd1b442a5b7bee5"><div class="ttname"><a href="../../de/d79/structfileOps.html#a9dc0634ce672ddd26cd1b442a5b7bee5">fileOps::close</a></div><div class="ttdeci">fo_close_t * close</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00081">descrip.h:81</a></div></div> <div class="ttc" id="astructstat_html_aeadf0ca7bfa140ac64fa582f7765066b"><div class="ttname"><a href="../../da/de7/structstat.html#aeadf0ca7bfa140ac64fa582f7765066b">stat::int</a></div><div class="ttdeci">unsigned int</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00066">stat.h:66</a></div></div> <div class="ttc" id="astat_8h_html"><div class="ttname"><a href="../../d2/d1b/stat_8h.html">stat.h</a></div></div> <div class="ttc" id="astructstat_html_ab74d1e7e345e88b9d0fb2688a97cba64"><div class="ttname"><a href="../../da/de7/structstat.html#ab74d1e7e345e88b9d0fb2688a97cba64">stat::st_atime</a></div><div class="ttdeci">time_t st_atime</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00052">stat.h:52</a></div></div> <div class="ttc" id="astruct____timespec_html"><div class="ttname"><a href="../../da/d18/struct____timespec.html">__timespec</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00039">stat.h:39</a></div></div> <div class="ttc" id="adescrip_8h_html_aec82fd17dad5642277af6dc43f9893c5"><div class="ttname"><a href="../../d3/df4/descrip_8h.html#aec82fd17dad5642277af6dc43f9893c5">getdtablesize</a></div><div class="ttdeci">int getdtablesize(struct thread *, struct getdtablesize_args *)</div><div class="ttdoc">return data table size</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d3f/descrip_8c_source.html#l00175">descrip.c:175</a></div></div> <div class="ttc" id="a__types_8h_html_ac1789b464296a1bd0de1734e17d0a146"><div class="ttname"><a href="../../d0/d6f/__types_8h.html#ac1789b464296a1bd0de1734e17d0a146">__nlink_t</a></div><div class="ttdeci">__uint16_t __nlink_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d6f/__types_8h_source.html#l00049">_types.h:49</a></div></div> <div class="ttc" id="astructstat_html_a0e919848cf78f7aacb30a7fb13e81acc"><div class="ttname"><a href="../../da/de7/structstat.html#a0e919848cf78f7aacb30a7fb13e81acc">stat::st_birthtimensec</a></div><div class="ttdeci">long st_birthtimensec</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00065">stat.h:65</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_afa178be408981cc5edd64227b6332fc6"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#afa178be408981cc5edd64227b6332fc6">off_t</a></div><div class="ttdeci">__int64_t off_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00119">types.h:119</a></div></div> <div class="ttc" id="astructstat_html_aa7c8627ac57ce82bccc0b261d56a25e5"><div class="ttname"><a href="../../da/de7/structstat.html#aa7c8627ac57ce82bccc0b261d56a25e5">stat::st_birthtime</a></div><div class="ttdeci">time_t st_birthtime</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00064">stat.h:64</a></div></div> <div class="ttc" id="astructstat_html_ab864f16f436cec370f0ced585d897698"><div class="ttname"><a href="../../da/de7/structstat.html#ab864f16f436cec370f0ced585d897698">stat::st_gid</a></div><div class="ttdeci">gid_t st_gid</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00050">stat.h:50</a></div></div> <div class="ttc" id="astructtimespec_html"><div class="ttname"><a href="../../da/d1c/structtimespec.html">timespec</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d6/d30/__timespec_8h_source.html#l00011">_timespec.h:11</a></div></div> <div class="ttc" id="ainclude_2sys_2types_8h_html_a1844226d778badcda0a21b28310830ea"><div class="ttname"><a href="../../d0/d27/include_2sys_2types_8h.html#a1844226d778badcda0a21b28310830ea">uid_t</a></div><div class="ttdeci">__uid_t uid_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d0/d27/include_2sys_2types_8h_source.html#l00122">types.h:122</a></div></div> <div class="ttc" id="astructfile_html_aaad1c900a9ee26ad1aa91be70b6f98ec"><div class="ttname"><a href="../../d7/d3a/structfile.html#aaad1c900a9ee26ad1aa91be70b6f98ec">file::socket</a></div><div class="ttdeci">int socket</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00073">descrip.h:73</a></div></div> <div class="ttc" id="astructstat_html_a38d474e1ae3cf6fbdde89ac3c3e308f1"><div class="ttname"><a href="../../da/de7/structstat.html#a38d474e1ae3cf6fbdde89ac3c3e308f1">stat::st_blksize</a></div><div class="ttdeci">blksize_t st_blksize</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00060">stat.h:60</a></div></div> <div class="ttc" id="astructuio_html"><div class="ttname"><a href="../../d3/d95/structuio.html">uio</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00063">descrip.h:63</a></div></div> <div class="ttc" id="astructfileOps_html_acaaff927eddb287f956556d9b1d178e6"><div class="ttname"><a href="../../de/d79/structfileOps.html#acaaff927eddb287f956556d9b1d178e6">fileOps::write</a></div><div class="ttdeci">fo_rdwr_t * write</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00079">descrip.h:79</a></div></div> <div class="ttc" id="adescrip_8h_html_a2a2c048445e6f662a2f408e9cf13e955"><div class="ttname"><a href="../../d3/df4/descrip_8h.html#a2a2c048445e6f662a2f408e9cf13e955">fo_stat_t</a></div><div class="ttdeci">int fo_stat_t(struct file *fp, struct stat *sb, struct ucred *active_cred, struct thread *td)</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00056">descrip.h:56</a></div></div> <div class="ttc" id="athread_8h_html"><div class="ttname"><a href="../../db/dd5/thread_8h.html">thread.h</a></div></div> <div class="ttc" id="astructstat_html_ad35fc3a664184cdc617b114cd25f5f67"><div class="ttname"><a href="../../da/de7/structstat.html#ad35fc3a664184cdc617b114cd25f5f67">stat::__st_mtimensec</a></div><div class="ttdeci">long __st_mtimensec</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00055">stat.h:55</a></div></div> <div class="ttc" id="astructstat_html_a96a89f0335e054637efa0eb7487e0682"><div class="ttname"><a href="../../da/de7/structstat.html#a96a89f0335e054637efa0eb7487e0682">stat::st_gen</a></div><div class="ttdeci">__uint32_t st_gen</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d1b/stat_8h_source.html#l00062">stat.h:62</a></div></div> <div class="ttc" id="astructuio_html_a0768dab04d6f2e7169b5e8e944f651fe"><div class="ttname"><a href="../../d3/d95/structuio.html#a0768dab04d6f2e7169b5e8e944f651fe">uio::pad</a></div><div class="ttdeci">char pad</div><div class="ttdef"><b>Definition:</b> <a href="../../d3/df4/descrip_8h_source.html#l00064">descrip.h:64</a></div></div> <!-- 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="../../d3/df4/descrip_8h.html">descrip.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>