Newer
Older
UbixOS / doc / html / include_2vfs_2file_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 V2: C:/Dev/git/UbixOS/sys/include/vfs/file.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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></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 V2
   &#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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<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('',true,false,'search.php','Search');
  $(document).ready(function() { init_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('include_2vfs_2file_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">file.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="include_2vfs_2file_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 _VFS_FILE_H_</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#define _VFS_FILE_H_ 1</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">   32</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="include_2sys_2types_8h.html">sys/types.h</a>&gt;</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="preprocessor">#include &lt;<a class="code" href="dirCache_8h.html">ubixfs/dirCache.h</a>&gt;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="thread_8h.html">sys/thread.h</a>&gt;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="inode_8h.html">vfs/inode.h</a>&gt;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="mount_8h.html">vfs/mount.h</a>&gt;</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="ufs_8h.html">ufs/ufs.h</a>&gt;</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">/* HACK */</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="keywordtype">int</span> <a class="code" href="include_2vfs_2file_8h.html#ac45fdeab51c3197c1e7c4ec7beabaca9">getchar</a>();</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="include_2vfs_2file_8h.html#a0d112bae8fd35be772185b6ec6bcbe64">   43</a></span>&#160;<span class="preprocessor">#define SEEK_SET 0</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="include_2vfs_2file_8h.html#a4c8d0b76b470ba65a43ca46a88320f39">   44</a></span>&#160;<span class="preprocessor">#define SEEK_CUR 1</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="include_2vfs_2file_8h.html#ad2a2e6c114780c3071efd24f16c7f7d8">   45</a></span>&#160;<span class="preprocessor">#define SEEK_END 2</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="include_2vfs_2file_8h.html#a1f8f4eabaf5119f68bfc6ee1ff715952">   47</a></span>&#160;<span class="preprocessor">#define VBLKSHIFT       12</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="include_2vfs_2file_8h.html#adf63a6145c73332883effc7746beffc2">   48</a></span>&#160;<span class="preprocessor">#define VBLKSIZE        (1 &lt;&lt; VBLKSHIFT)</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="include_2vfs_2file_8h.html#ab7ef7deca5409474c504d9c927e97249">   49</a></span>&#160;<span class="preprocessor">#define SBLOCKSIZE      8192</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="include_2vfs_2file_8h.html#a9734470bf89968d142073fd334bf9cb6">   50</a></span>&#160;<span class="preprocessor">#define DEV_BSHIFT      9               </span><span class="comment">/* log2(DEV_BSIZE) */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="include_2vfs_2file_8h.html#a9c8466b6111a11195a5cd2478c648e32">   51</a></span>&#160;<span class="preprocessor">#define DEV_BSIZE       (1&lt;&lt;DEV_BSHIFT)</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="include_2vfs_2file_8h.html#a26a634d52d9f912544a79167b23c73e9">   53</a></span>&#160;<span class="preprocessor">#define MAX_OFILES 256</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structdmadat.html">   55</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structdmadat.html">dmadat</a> {</div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structdmadat.html#ad134ba5a7290b627a60d5fd83fc2f204">   56</a></span>&#160;    <span class="keywordtype">char</span> <a class="code" href="structdmadat.html#ad134ba5a7290b627a60d5fd83fc2f204">blkbuf</a>[<a class="code" href="include_2vfs_2file_8h.html#adf63a6145c73332883effc7746beffc2">VBLKSIZE</a>]; <span class="comment">/* filesystem blocks */</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structdmadat.html#ae1f8eab27e979807a50dbf2d54ec1476">   57</a></span>&#160;    <span class="keywordtype">char</span> <a class="code" href="structdmadat.html#ae1f8eab27e979807a50dbf2d54ec1476">indbuf</a>[<a class="code" href="include_2vfs_2file_8h.html#adf63a6145c73332883effc7746beffc2">VBLKSIZE</a>]; <span class="comment">/* indir blocks */</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structdmadat.html#ab267db93faadfbb8c65f16ca4df76055">   58</a></span>&#160;    <span class="keywordtype">char</span> <a class="code" href="structdmadat.html#ab267db93faadfbb8c65f16ca4df76055">sbbuf</a>[<a class="code" href="include_2vfs_2file_8h.html#ab7ef7deca5409474c504d9c927e97249">SBLOCKSIZE</a>]; <span class="comment">/* superblock */</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structdmadat.html#a60f3caaa21d75b5aeb70926ef3392a93">   59</a></span>&#160;    <span class="keywordtype">char</span> <a class="code" href="structdmadat.html#a60f3caaa21d75b5aeb70926ef3392a93">secbuf</a>[<a class="code" href="include_2vfs_2file_8h.html#a9c8466b6111a11195a5cd2478c648e32">DEV_BSIZE</a>]; <span class="comment">/* for MBR/disklabel */</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;};</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structfileDescriptor.html">   62</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structfileDescriptor.html">fileDescriptor</a> {</div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#afd9051274bbedc680cce81a6a5fd6b2a">   63</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structfileDescriptor.html">fileDescriptor</a> *<a class="code" href="structfileDescriptor.html#afd9051274bbedc680cce81a6a5fd6b2a">prev</a>;</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#ad83171631d4363bfb418aeac21a225c2">   64</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structfileDescriptor.html">fileDescriptor</a> *<a class="code" href="structfileDescriptor.html#ad83171631d4363bfb418aeac21a225c2">next</a>;</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#ab912b7f3f302a2f71d40f3b3810e90e8">   65</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structvfs__mountPoint.html">vfs_mountPoint</a> *<a class="code" href="structfileDescriptor.html#ab912b7f3f302a2f71d40f3b3810e90e8">mp</a>;</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#af6a1235d2c373b43391f4da9b1dcc0be">   66</a></span>&#160;    <a class="code" href="include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> <a class="code" href="structfileDescriptor.html#af6a1235d2c373b43391f4da9b1dcc0be">ino</a>;</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#af40ff967ca5d88ce941ddec987d45ec7">   67</a></span>&#160;    <a class="code" href="include_2sys_2types_8h.html#a281b4b5562236420969a830503b0ba19">uint16_t</a> <a class="code" href="structfileDescriptor.html#af40ff967ca5d88ce941ddec987d45ec7">status</a>;</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#ac26434565d08e7590265288cf9e9f212">   68</a></span>&#160;    <a class="code" href="include_2sys_2types_8h.html#a281b4b5562236420969a830503b0ba19">uint16_t</a> <a class="code" href="structfileDescriptor.html#ac26434565d08e7590265288cf9e9f212">mode</a>;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#a09c5cd0d4979a70b8d7098319cd00b7c">   69</a></span>&#160;    <a class="code" href="include_2sys_2types_8h.html#afa178be408981cc5edd64227b6332fc6">off_t</a> <a class="code" href="structfileDescriptor.html#a09c5cd0d4979a70b8d7098319cd00b7c">offset</a>;</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#ac8c9ca78af4599be9bbba7fa8a37eee8">   70</a></span>&#160;    <a class="code" href="include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> <a class="code" href="structfileDescriptor.html#ac8c9ca78af4599be9bbba7fa8a37eee8">size</a>;</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#a26f4af0cefa4d91a06834c64d691a13f">   71</a></span>&#160;    <a class="code" href="include_2sys_2types_8h.html#a281b4b5562236420969a830503b0ba19">uint16_t</a> <a class="code" href="structfileDescriptor.html#a26f4af0cefa4d91a06834c64d691a13f">length</a>;</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#accd84ca186e1fd7e8e82fee3a18779ae">   72</a></span>&#160;    <a class="code" href="include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> <a class="code" href="structfileDescriptor.html#accd84ca186e1fd7e8e82fee3a18779ae">start</a>;</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#a3663916ccc29f892a1f98b22ffd8b8bd">   73</a></span>&#160;    <span class="keywordtype">char</span> <a class="code" href="structfileDescriptor.html#a3663916ccc29f892a1f98b22ffd8b8bd">fileName</a>[512];</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#a1e5de6abaaaaba1c21ea108de1166a6b">   74</a></span>&#160;    <span class="keywordtype">char</span> *<a class="code" href="structfileDescriptor.html#a1e5de6abaaaaba1c21ea108de1166a6b">buffer</a>;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#a3f92f1984ec809932dcc57d98ea0f2b3">   75</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structcacheNode.html">cacheNode</a> *<a class="code" href="structfileDescriptor.html#a3f92f1984ec809932dcc57d98ea0f2b3">cacheNode</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#aaf1c61f69cb312867bcdf95896a74bdc">   76</a></span>&#160;    <a class="code" href="include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> <a class="code" href="structfileDescriptor.html#aaf1c61f69cb312867bcdf95896a74bdc">perms</a>;</div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#ad411e9a6fd040afcee6986c027d5a999">   77</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structdmadat.html">dmadat</a> *<a class="code" href="structfileDescriptor.html#ad411e9a6fd040afcee6986c027d5a999">dmadat</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#a2e962220f5878aaa4be699c5d04303e5">   78</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structfileDescriptor.html#a2e962220f5878aaa4be699c5d04303e5">dsk_meta</a>;</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#a56f56dc779bfb29e10585c0466481999">   79</a></span>&#160;    <a class="code" href="include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> <a class="code" href="structfileDescriptor.html#a56f56dc779bfb29e10585c0466481999">resid</a>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#a0f327ca421a257ebbabbb741cfcf2904">   80</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structinode.html">inode</a> <a class="code" href="structinode.html">inode</a>;</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#a1d5a0fbe4d6822782c80df83c9c4aef3">   81</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structfileDescriptor.html#a1d5a0fbe4d6822782c80df83c9c4aef3">fd_type</a>;</div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#acf8de2682bb1eaedd14cc477895982d5">   82</a></span>&#160;    <span class="keywordtype">void</span> *<a class="code" href="structfileDescriptor.html#acf8de2682bb1eaedd14cc477895982d5">res</a>;</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structfileDescriptor.html#a8df095a5809b8dcef834ecc696fb39a4">   83</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structfileDescriptor.html#a8df095a5809b8dcef834ecc696fb39a4">dup</a>;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;} <a class="code" href="include_2vfs_2file_8h.html#acc7b57f2d3766b4977ebbe64aa38608b">fileDescriptor_t</a>;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structuserFileDescriptorStruct.html">   86</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structuserFileDescriptorStruct.html">userFileDescriptorStruct</a> {</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structuserFileDescriptorStruct.html#a6109b48f13922b89603bf1b47fa9d7ae">   87</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structfileDescriptor.html">fileDescriptor</a> *<a class="code" href="structuserFileDescriptorStruct.html#a6109b48f13922b89603bf1b47fa9d7ae">fd</a>;</div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structuserFileDescriptorStruct.html#add64fe63c4301a984814b07aa54ea8ba">   88</a></span>&#160;    <a class="code" href="include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> <a class="code" href="structuserFileDescriptorStruct.html#add64fe63c4301a984814b07aa54ea8ba">fdSize</a>;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;} <a class="code" href="include_2vfs_2file_8h.html#a22ca9900413e251296c9d17911cb24f5">userFileDescriptor</a>;</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">   91</span>&#160;<span class="keyword">extern</span> <a class="code" href="structfileDescriptor.html">fileDescriptor_t</a> *<a class="code" href="include_2vfs_2file_8h.html#acc7848731c780c8a5c224413af7e9a68">fdTable</a>;</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">   93</span>&#160;<a class="code" href="structfileDescriptor.html">fileDescriptor_t</a> *<a class="code" href="include_2vfs_2file_8h.html#aa5a3a3f92ecea1381616825ba8646306">fopen</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="keywordtype">int</span> <a class="code" href="include_2vfs_2file_8h.html#a73224c70c8caaeed4f6b507f5089147c">fclose</a>(<a class="code" href="structfileDescriptor.html">fileDescriptor_t</a> *);</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160; </div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="comment">/* UBU */</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structsys__fwrite__args.html">   97</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structsys__fwrite__args.html">sys_fwrite_args</a> {</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structsys__fwrite__args.html#a09d7b567e170336ef0de963190d239f3">   98</a></span>&#160;    <span class="keywordtype">void</span> *<a class="code" href="structsys__fwrite__args.html#a09d7b567e170336ef0de963190d239f3">buf</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structsys__fwrite__args.html#a28c2058a67eaa959fcd1267c7c304bc4">   99</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structsys__fwrite__args.html#a28c2058a67eaa959fcd1267c7c304bc4">nbytes</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="structsys__fwrite__args.html#a9eb6a92d1dd70449089caa230cf3462c">  100</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structsys__fwrite__args.html#a9eb6a92d1dd70449089caa230cf3462c">nmemb</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structsys__fwrite__args.html#a1bb3fb28765aec4e58715ff5a1c61783">  101</a></span>&#160;    <a class="code" href="structuserFileDescriptorStruct.html">userFileDescriptor</a> *<a class="code" href="structsys__fwrite__args.html#a1bb3fb28765aec4e58715ff5a1c61783">fd</a>;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;};</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="keywordtype">int</span> <a class="code" href="include_2vfs_2file_8h.html#a28af9471bbdf262321af663e02899a47">unlink</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="keywordtype">int</span> <a class="code" href="include_2vfs_2file_8h.html#aac3b8b18e3c19492e533d385cae01f3a">feof</a>(<a class="code" href="structfileDescriptor.html">fileDescriptor_t</a> *fd);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="keywordtype">int</span> <a class="code" href="include_2vfs_2file_8h.html#af3ae9aab3fa1a25c0b0cde40aa97f2d0">fgetc</a>(<a class="code" href="structfileDescriptor.html">fileDescriptor_t</a> *fd);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="keywordtype">size_t</span> <a class="code" href="include_2vfs_2file_8h.html#ac539f57edd90fcd088fd3baa10319166">fread</a>(<span class="keywordtype">void</span> *ptr, <span class="keywordtype">size_t</span> size, <span class="keywordtype">size_t</span> nmemb, <a class="code" href="structfileDescriptor.html">fileDescriptor_t</a> *fd);</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="keywordtype">size_t</span> <a class="code" href="include_2vfs_2file_8h.html#a803ecb7dac37bee57ef3fe11c7899d36">fwrite</a>(<span class="keywordtype">void</span> *ptr, <span class="keywordtype">int</span> size, <span class="keywordtype">int</span> nmemb, <a class="code" href="structfileDescriptor.html">fileDescriptor_t</a> *fd);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="keywordtype">int</span> <a class="code" href="include_2vfs_2file_8h.html#a54d3349303e4078c21c0f956047b8250">fseek</a>(<a class="code" href="structfileDescriptor.html">fileDescriptor_t</a> *, <span class="keywordtype">long</span>, <span class="keywordtype">int</span>);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="keywordtype">int</span> <a class="code" href="include_2vfs_2file_8h.html#a818b603628ff1d7538f214bd687ca823">sysFseek</a>(<a class="code" href="structuserFileDescriptorStruct.html">userFileDescriptor</a> *, <span class="keywordtype">long</span>, <span class="keywordtype">int</span>);</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="comment">//Good</span></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="comment">//int sysChDir(const char *path);</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="comment">//void chDir(const char *path);</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="keywordtype">char</span> *<a class="code" href="include_2vfs_2file_8h.html#a07c7ca6ecbd1a00fe6069af958ca34b0">verifyDir</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="comment">/* New Syscall */</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="keywordtype">int</span> <a class="code" href="include_2vfs_2file_8h.html#a6b6b8f061ddd1e9631f0858ff0d83ff0">sys_fwrite</a>(<span class="keyword">struct</span> <a class="code" href="structthread.html">thread</a> *, <span class="keyword">struct</span> <a class="code" href="structsys__fwrite__args.html">sys_fwrite_args</a> *);</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="astructfileDescriptor_html_a3f92f1984ec809932dcc57d98ea0f2b3"><div class="ttname"><a href="structfileDescriptor.html#a3f92f1984ec809932dcc57d98ea0f2b3">fileDescriptor::cacheNode</a></div><div class="ttdeci">struct cacheNode * cacheNode</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00075">file.h:75</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_acc7b57f2d3766b4977ebbe64aa38608b"><div class="ttname"><a href="include_2vfs_2file_8h.html#acc7b57f2d3766b4977ebbe64aa38608b">fileDescriptor_t</a></div><div class="ttdeci">struct fileDescriptor fileDescriptor_t</div></div>
<div class="ttc" id="astructfileDescriptor_html_a1e5de6abaaaaba1c21ea108de1166a6b"><div class="ttname"><a href="structfileDescriptor.html#a1e5de6abaaaaba1c21ea108de1166a6b">fileDescriptor::buffer</a></div><div class="ttdeci">char * buffer</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00074">file.h:74</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_a8df095a5809b8dcef834ecc696fb39a4"><div class="ttname"><a href="structfileDescriptor.html#a8df095a5809b8dcef834ecc696fb39a4">fileDescriptor::dup</a></div><div class="ttdeci">int dup</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00083">file.h:83</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_accd84ca186e1fd7e8e82fee3a18779ae"><div class="ttname"><a href="structfileDescriptor.html#accd84ca186e1fd7e8e82fee3a18779ae">fileDescriptor::start</a></div><div class="ttdeci">uint32_t start</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00072">file.h:72</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_ac539f57edd90fcd088fd3baa10319166"><div class="ttname"><a href="include_2vfs_2file_8h.html#ac539f57edd90fcd088fd3baa10319166">fread</a></div><div class="ttdeci">size_t fread(void *ptr, size_t size, size_t nmemb, fileDescriptor_t *fd)</div><div class="ttdef"><b>Definition:</b> <a href="file_8c_source.html#l00291">file.c:291</a></div></div>
<div class="ttc" id="astructuserFileDescriptorStruct_html_add64fe63c4301a984814b07aa54ea8ba"><div class="ttname"><a href="structuserFileDescriptorStruct.html#add64fe63c4301a984814b07aa54ea8ba">userFileDescriptorStruct::fdSize</a></div><div class="ttdeci">uint32_t fdSize</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00088">file.h:88</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_acf8de2682bb1eaedd14cc477895982d5"><div class="ttname"><a href="structfileDescriptor.html#acf8de2682bb1eaedd14cc477895982d5">fileDescriptor::res</a></div><div class="ttdeci">void * res</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00082">file.h:82</a></div></div>
<div class="ttc" id="astructsys__fwrite__args_html_a9eb6a92d1dd70449089caa230cf3462c"><div class="ttname"><a href="structsys__fwrite__args.html#a9eb6a92d1dd70449089caa230cf3462c">sys_fwrite_args::nmemb</a></div><div class="ttdeci">size_t nmemb</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00100">file.h:100</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_ad411e9a6fd040afcee6986c027d5a999"><div class="ttname"><a href="structfileDescriptor.html#ad411e9a6fd040afcee6986c027d5a999">fileDescriptor::dmadat</a></div><div class="ttdeci">struct dmadat * dmadat</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00077">file.h:77</a></div></div>
<div class="ttc" id="astructuserFileDescriptorStruct_html"><div class="ttname"><a href="structuserFileDescriptorStruct.html">userFileDescriptorStruct</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00086">file.h:86</a></div></div>
<div class="ttc" id="astructdmadat_html_ab267db93faadfbb8c65f16ca4df76055"><div class="ttname"><a href="structdmadat.html#ab267db93faadfbb8c65f16ca4df76055">dmadat::sbbuf</a></div><div class="ttdeci">char sbbuf[8192]</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00058">file.h:58</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_a09c5cd0d4979a70b8d7098319cd00b7c"><div class="ttname"><a href="structfileDescriptor.html#a09c5cd0d4979a70b8d7098319cd00b7c">fileDescriptor::offset</a></div><div class="ttdeci">off_t offset</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00069">file.h:69</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_ac26434565d08e7590265288cf9e9f212"><div class="ttname"><a href="structfileDescriptor.html#ac26434565d08e7590265288cf9e9f212">fileDescriptor::mode</a></div><div class="ttdeci">uint16_t mode</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00068">file.h:68</a></div></div>
<div class="ttc" id="astructfileDescriptor_html"><div class="ttname"><a href="structfileDescriptor.html">fileDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00062">file.h:62</a></div></div>
<div class="ttc" id="astructuserFileDescriptorStruct_html_a6109b48f13922b89603bf1b47fa9d7ae"><div class="ttname"><a href="structuserFileDescriptorStruct.html#a6109b48f13922b89603bf1b47fa9d7ae">userFileDescriptorStruct::fd</a></div><div class="ttdeci">struct fileDescriptor * fd</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00087">file.h:87</a></div></div>
<div class="ttc" id="astructthread_html"><div class="ttname"><a href="structthread.html">thread</a></div><div class="ttdef"><b>Definition:</b> <a href="thread_8h_source.html#l00040">thread.h:40</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_a9c8466b6111a11195a5cd2478c648e32"><div class="ttname"><a href="include_2vfs_2file_8h.html#a9c8466b6111a11195a5cd2478c648e32">DEV_BSIZE</a></div><div class="ttdeci">#define DEV_BSIZE</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00051">file.h:51</a></div></div>
<div class="ttc" id="adirCache_8h_html"><div class="ttname"><a href="dirCache_8h.html">dirCache.h</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_a6b6b8f061ddd1e9631f0858ff0d83ff0"><div class="ttname"><a href="include_2vfs_2file_8h.html#a6b6b8f061ddd1e9631f0858ff0d83ff0">sys_fwrite</a></div><div class="ttdeci">int sys_fwrite(struct thread *, struct sys_fwrite_args *)</div><div class="ttdef"><b>Definition:</b> <a href="file_8c_source.html#l00047">file.c:47</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_a2e962220f5878aaa4be699c5d04303e5"><div class="ttname"><a href="structfileDescriptor.html#a2e962220f5878aaa4be699c5d04303e5">fileDescriptor::dsk_meta</a></div><div class="ttdeci">int dsk_meta</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00078">file.h:78</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_a54d3349303e4078c21c0f956047b8250"><div class="ttname"><a href="include_2vfs_2file_8h.html#a54d3349303e4078c21c0f956047b8250">fseek</a></div><div class="ttdeci">int fseek(fileDescriptor_t *, long, int)</div><div class="ttdef"><b>Definition:</b> <a href="file_8c_source.html#l00326">file.c:326</a></div></div>
<div class="ttc" id="astructsys__fwrite__args_html"><div class="ttname"><a href="structsys__fwrite__args.html">sys_fwrite_args</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00097">file.h:97</a></div></div>
<div class="ttc" id="ainclude_2sys_2types_8h_html"><div class="ttname"><a href="include_2sys_2types_8h.html">types.h</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_a1d5a0fbe4d6822782c80df83c9c4aef3"><div class="ttname"><a href="structfileDescriptor.html#a1d5a0fbe4d6822782c80df83c9c4aef3">fileDescriptor::fd_type</a></div><div class="ttdeci">int fd_type</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00081">file.h:81</a></div></div>
<div class="ttc" id="astructsys__fwrite__args_html_a09d7b567e170336ef0de963190d239f3"><div class="ttname"><a href="structsys__fwrite__args.html#a09d7b567e170336ef0de963190d239f3">sys_fwrite_args::buf</a></div><div class="ttdeci">void * buf</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00098">file.h:98</a></div></div>
<div class="ttc" id="astructdmadat_html_ad134ba5a7290b627a60d5fd83fc2f204"><div class="ttname"><a href="structdmadat.html#ad134ba5a7290b627a60d5fd83fc2f204">dmadat::blkbuf</a></div><div class="ttdeci">char blkbuf[(1&lt;&lt; 12)]</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00056">file.h:56</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_ab912b7f3f302a2f71d40f3b3810e90e8"><div class="ttname"><a href="structfileDescriptor.html#ab912b7f3f302a2f71d40f3b3810e90e8">fileDescriptor::mp</a></div><div class="ttdeci">struct vfs_mountPoint * mp</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00065">file.h:65</a></div></div>
<div class="ttc" id="astructvfs__mountPoint_html"><div class="ttname"><a href="structvfs__mountPoint.html">vfs_mountPoint</a></div><div class="ttdef"><b>Definition:</b> <a href="mount_8h_source.html#l00066">mount.h:66</a></div></div>
<div class="ttc" id="ainclude_2sys_2types_8h_html_a281b4b5562236420969a830503b0ba19"><div class="ttname"><a href="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="include_2sys_2types_8h_source.html#l00045">types.h:45</a></div></div>
<div class="ttc" id="astructsys__fwrite__args_html_a28c2058a67eaa959fcd1267c7c304bc4"><div class="ttname"><a href="structsys__fwrite__args.html#a28c2058a67eaa959fcd1267c7c304bc4">sys_fwrite_args::nbytes</a></div><div class="ttdeci">size_t nbytes</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00099">file.h:99</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_a56f56dc779bfb29e10585c0466481999"><div class="ttname"><a href="structfileDescriptor.html#a56f56dc779bfb29e10585c0466481999">fileDescriptor::resid</a></div><div class="ttdeci">uint32_t resid</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00079">file.h:79</a></div></div>
<div class="ttc" id="astructinode_html"><div class="ttname"><a href="structinode.html">inode</a></div><div class="ttdef"><b>Definition:</b> <a href="inode_8h_source.html#l00039">inode.h:39</a></div></div>
<div class="ttc" id="astructsys__fwrite__args_html_a1bb3fb28765aec4e58715ff5a1c61783"><div class="ttname"><a href="structsys__fwrite__args.html#a1bb3fb28765aec4e58715ff5a1c61783">sys_fwrite_args::fd</a></div><div class="ttdeci">userFileDescriptor * fd</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00101">file.h:101</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_a803ecb7dac37bee57ef3fe11c7899d36"><div class="ttname"><a href="include_2vfs_2file_8h.html#a803ecb7dac37bee57ef3fe11c7899d36">fwrite</a></div><div class="ttdeci">size_t fwrite(void *ptr, int size, int nmemb, fileDescriptor_t *fd)</div><div class="ttdef"><b>Definition:</b> <a href="file_8c_source.html#l00311">file.c:311</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_acc7848731c780c8a5c224413af7e9a68"><div class="ttname"><a href="include_2vfs_2file_8h.html#acc7848731c780c8a5c224413af7e9a68">fdTable</a></div><div class="ttdeci">fileDescriptor_t * fdTable</div><div class="ttdef"><b>Definition:</b> <a href="file_8c_source.html#l00043">file.c:43</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_a26f4af0cefa4d91a06834c64d691a13f"><div class="ttname"><a href="structfileDescriptor.html#a26f4af0cefa4d91a06834c64d691a13f">fileDescriptor::length</a></div><div class="ttdeci">uint16_t length</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00071">file.h:71</a></div></div>
<div class="ttc" id="ainclude_2sys_2types_8h_html_a0238af00180b6d9278fa1c6aa790fdf4"><div class="ttname"><a href="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="include_2sys_2types_8h_source.html#l00046">types.h:46</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_adf63a6145c73332883effc7746beffc2"><div class="ttname"><a href="include_2vfs_2file_8h.html#adf63a6145c73332883effc7746beffc2">VBLKSIZE</a></div><div class="ttdeci">#define VBLKSIZE</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00048">file.h:48</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_af6a1235d2c373b43391f4da9b1dcc0be"><div class="ttname"><a href="structfileDescriptor.html#af6a1235d2c373b43391f4da9b1dcc0be">fileDescriptor::ino</a></div><div class="ttdeci">uint32_t ino</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00066">file.h:66</a></div></div>
<div class="ttc" id="astructdmadat_html_a60f3caaa21d75b5aeb70926ef3392a93"><div class="ttname"><a href="structdmadat.html#a60f3caaa21d75b5aeb70926ef3392a93">dmadat::secbuf</a></div><div class="ttdeci">char secbuf[(1&lt;&lt; 9)]</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00059">file.h:59</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_a07c7ca6ecbd1a00fe6069af958ca34b0"><div class="ttname"><a href="include_2vfs_2file_8h.html#a07c7ca6ecbd1a00fe6069af958ca34b0">verifyDir</a></div><div class="ttdeci">char * verifyDir(const char *path)</div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_aa5a3a3f92ecea1381616825ba8646306"><div class="ttname"><a href="include_2vfs_2file_8h.html#aa5a3a3f92ecea1381616825ba8646306">fopen</a></div><div class="ttdeci">fileDescriptor_t * fopen(const char *, const char *)</div><div class="ttdef"><b>Definition:</b> <a href="file_8c_source.html#l00388">file.c:388</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_aaf1c61f69cb312867bcdf95896a74bdc"><div class="ttname"><a href="structfileDescriptor.html#aaf1c61f69cb312867bcdf95896a74bdc">fileDescriptor::perms</a></div><div class="ttdeci">uint32_t perms</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00076">file.h:76</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_a3663916ccc29f892a1f98b22ffd8b8bd"><div class="ttname"><a href="structfileDescriptor.html#a3663916ccc29f892a1f98b22ffd8b8bd">fileDescriptor::fileName</a></div><div class="ttdeci">char fileName[512]</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00073">file.h:73</a></div></div>
<div class="ttc" id="aufs_8h_html"><div class="ttname"><a href="ufs_8h.html">ufs.h</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_ab7ef7deca5409474c504d9c927e97249"><div class="ttname"><a href="include_2vfs_2file_8h.html#ab7ef7deca5409474c504d9c927e97249">SBLOCKSIZE</a></div><div class="ttdeci">#define SBLOCKSIZE</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00049">file.h:49</a></div></div>
<div class="ttc" id="astructdmadat_html_ae1f8eab27e979807a50dbf2d54ec1476"><div class="ttname"><a href="structdmadat.html#ae1f8eab27e979807a50dbf2d54ec1476">dmadat::indbuf</a></div><div class="ttdeci">char indbuf[(1&lt;&lt; 12)]</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00057">file.h:57</a></div></div>
<div class="ttc" id="astructdmadat_html"><div class="ttname"><a href="structdmadat.html">dmadat</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00055">file.h:55</a></div></div>
<div class="ttc" id="amount_8h_html"><div class="ttname"><a href="mount_8h.html">mount.h</a></div></div>
<div class="ttc" id="ainclude_2sys_2types_8h_html_afa178be408981cc5edd64227b6332fc6"><div class="ttname"><a href="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="include_2sys_2types_8h_source.html#l00119">types.h:119</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_af40ff967ca5d88ce941ddec987d45ec7"><div class="ttname"><a href="structfileDescriptor.html#af40ff967ca5d88ce941ddec987d45ec7">fileDescriptor::status</a></div><div class="ttdeci">uint16_t status</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00067">file.h:67</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_a28af9471bbdf262321af663e02899a47"><div class="ttname"><a href="include_2vfs_2file_8h.html#a28af9471bbdf262321af663e02899a47">unlink</a></div><div class="ttdeci">int unlink(const char *path)</div><div class="ttdef"><b>Definition:</b> <a href="file_8c_source.html#l00618">file.c:618</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_ac45fdeab51c3197c1e7c4ec7beabaca9"><div class="ttname"><a href="include_2vfs_2file_8h.html#ac45fdeab51c3197c1e7c4ec7beabaca9">getchar</a></div><div class="ttdeci">int getchar()</div><div class="ttdef"><b>Definition:</b> <a href="atkbd_8c_source.html#l00346">atkbd.c:346</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_a818b603628ff1d7538f214bd687ca823"><div class="ttname"><a href="include_2vfs_2file_8h.html#a818b603628ff1d7538f214bd687ca823">sysFseek</a></div><div class="ttdeci">int sysFseek(userFileDescriptor *, long, int)</div></div>
<div class="ttc" id="astructfileDescriptor_html_ac8c9ca78af4599be9bbba7fa8a37eee8"><div class="ttname"><a href="structfileDescriptor.html#ac8c9ca78af4599be9bbba7fa8a37eee8">fileDescriptor::size</a></div><div class="ttdeci">uint32_t size</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00070">file.h:70</a></div></div>
<div class="ttc" id="athread_8h_html"><div class="ttname"><a href="thread_8h.html">thread.h</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_a73224c70c8caaeed4f6b507f5089147c"><div class="ttname"><a href="include_2vfs_2file_8h.html#a73224c70c8caaeed4f6b507f5089147c">fclose</a></div><div class="ttdeci">int fclose(fileDescriptor_t *)</div><div class="ttdef"><b>Definition:</b> <a href="file_8c_source.html#l00526">file.c:526</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_a22ca9900413e251296c9d17911cb24f5"><div class="ttname"><a href="include_2vfs_2file_8h.html#a22ca9900413e251296c9d17911cb24f5">userFileDescriptor</a></div><div class="ttdeci">struct userFileDescriptorStruct userFileDescriptor</div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_aac3b8b18e3c19492e533d385cae01f3a"><div class="ttname"><a href="include_2vfs_2file_8h.html#aac3b8b18e3c19492e533d385cae01f3a">feof</a></div><div class="ttdeci">int feof(fileDescriptor_t *fd)</div><div class="ttdef"><b>Definition:</b> <a href="file_8c_source.html#l00337">file.c:337</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_afd9051274bbedc680cce81a6a5fd6b2a"><div class="ttname"><a href="structfileDescriptor.html#afd9051274bbedc680cce81a6a5fd6b2a">fileDescriptor::prev</a></div><div class="ttdeci">struct fileDescriptor * prev</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00063">file.h:63</a></div></div>
<div class="ttc" id="ainclude_2vfs_2file_8h_html_af3ae9aab3fa1a25c0b0cde40aa97f2d0"><div class="ttname"><a href="include_2vfs_2file_8h.html#af3ae9aab3fa1a25c0b0cde40aa97f2d0">fgetc</a></div><div class="ttdeci">int fgetc(fileDescriptor_t *fd)</div><div class="ttdef"><b>Definition:</b> <a href="file_8c_source.html#l00366">file.c:366</a></div></div>
<div class="ttc" id="astructcacheNode_html"><div class="ttname"><a href="structcacheNode.html">cacheNode</a></div><div class="ttdef"><b>Definition:</b> <a href="dirCache_8h_source.html#l00035">dirCache.h:35</a></div></div>
<div class="ttc" id="astructfileDescriptor_html_ad83171631d4363bfb418aeac21a225c2"><div class="ttname"><a href="structfileDescriptor.html#ad83171631d4363bfb418aeac21a225c2">fileDescriptor::next</a></div><div class="ttdeci">struct fileDescriptor * next</div><div class="ttdef"><b>Definition:</b> <a href="include_2vfs_2file_8h_source.html#l00064">file.h:64</a></div></div>
<div class="ttc" id="ainode_8h_html"><div class="ttname"><a href="inode_8h.html">inode.h</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_e6bb53534ac0e427887cf7a94c0c004e.html">C:</a></li><li class="navelem"><a class="el" href="dir_d99d5d4662bf24521eef49da6a8cd34d.html">Dev</a></li><li class="navelem"><a class="el" href="dir_474a4b306371cf7e7f6fa12cb0b77df6.html">git</a></li><li class="navelem"><a class="el" href="dir_849109bbd106d461b128d63e5babcedf.html">UbixOS</a></li><li class="navelem"><a class="el" href="dir_6ec99f6d7d5182ba8913209ab70c9f18.html">sys</a></li><li class="navelem"><a class="el" href="dir_d1be8160e739b6eed1f7843efdbae1b3.html">include</a></li><li class="navelem"><a class="el" href="dir_c3c0831de3b2f5e14fc52a7f92bdcaba.html">vfs</a></li><li class="navelem"><a class="el" href="include_2vfs_2file_8h.html">file.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>