<!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: kernel/syscall_posix.c File Reference</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('de/d5f/syscall__posix_8c.html','../../');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> | <a href="#var-members">Variables</a> </div> <div class="headertitle"> <div class="title">syscall_posix.c File Reference</div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><code>#include <<a class="el" href="../../d2/d6e/syscalls_8h_source.html">ubixos/syscalls.h</a>></code><br /> <code>#include <<a class="el" href="../../de/ddf/syscall_8h_source.html">ubixos/syscall.h</a>></code><br /> <code>#include <<a class="el" href="../../d7/d00/sched_8h_source.html">ubixos/sched.h</a>></code><br /> <code>#include <<a class="el" href="../../dc/d0c/endtask_8h_source.html">ubixos/endtask.h</a>></code><br /> <code>#include <<a class="el" href="../../df/d63/spinlock_8h_source.html">ubixos/spinlock.h</a>></code><br /> <code>#include <<a class="el" href="../../d7/d0b/trap_8h_source.html">sys/trap.h</a>></code><br /> <code>#include <<a class="el" href="../../d4/de4/sys_2elf_8h_source.html">sys/elf.h</a>></code><br /> <code>#include <<a class="el" href="../../da/d66/string_8h_source.html">string.h</a>></code><br /> <code>#include <<a class="el" href="../../da/d28/kprintf_8h_source.html">lib/kprintf.h</a>></code><br /> <code>#include <<a class="el" href="../../d3/d24/kpanic_8h_source.html">ubixos/kpanic.h</a>></code><br /> </div><div class="textblock"><div class="dynheader"> Include dependency graph for syscall_posix.c:</div> <div class="dyncontent"> <div class="center"><img src="../../dd/d7a/syscall__posix_8c__incl.png" border="0" usemap="#kernel_2syscall__posix_8c" alt=""/></div> <map name="kernel_2syscall__posix_8c" id="kernel_2syscall__posix_8c"> <area shape="rect" title=" " alt="" coords="1051,5,1201,32"/> <area shape="rect" href="../../d2/d6e/syscalls_8h.html" title=" " alt="" coords="743,155,866,181"/> <area shape="rect" href="../../d7/d00/sched_8h.html" title=" " alt="" coords="755,229,865,256"/> <area shape="rect" href="../../d7/d0b/trap_8h.html" title=" " alt="" coords="1037,453,1117,480"/> <area shape="rect" href="../../de/ddf/syscall_8h.html" title=" " alt="" coords="889,229,1005,256"/> <area shape="rect" href="../../dc/d0c/endtask_8h.html" title=" " alt="" coords="941,155,1063,181"/> <area shape="rect" href="../../df/d63/spinlock_8h.html" title=" " alt="" coords="1189,229,1311,256"/> <area shape="rect" href="../../d4/de4/sys_2elf_8h.html" title=" " alt="" coords="1353,80,1424,107"/> <area shape="rect" href="../../da/d66/string_8h.html" title=" " alt="" coords="1564,453,1629,480"/> <area shape="rect" href="../../da/d28/kprintf_8h.html" title=" " alt="" coords="1757,80,1842,107"/> <area shape="rect" href="../../d3/d24/kpanic_8h.html" title=" " alt="" coords="1867,80,1980,107"/> <area shape="rect" href="../../d6/db4/include_2vfs_2file_8h.html" title=" " alt="" coords="569,304,637,331"/> <area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="929,603,1019,629"/> <area shape="rect" href="../../db/dd5/thread_8h.html" title=" " alt="" coords="768,379,863,405"/> <area shape="rect" href="../../dd/d71/tty_8h.html" title=" " alt="" coords="686,304,777,331"/> <area shape="rect" href="../../de/d9a/tss_8h.html" title=" " alt="" coords="869,304,945,331"/> <area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="947,827,1044,853"/> <area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="1038,677,1131,704"/> <area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="1207,752,1296,779"/> <area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="1320,752,1439,779"/> <area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="1077,752,1183,779"/> <area shape="rect" href="../../d6/da4/__sigset_8h.html" title=" " alt="" coords="901,752,1001,779"/> <area shape="rect" href="../../d1/de9/dirCache_8h.html" title=" " alt="" coords="519,379,642,405"/> <area shape="rect" href="../../d3/d73/inode_8h.html" title=" " alt="" coords="263,379,346,405"/> <area shape="rect" href="../../df/d42/ufs_8h.html" title=" " alt="" coords="5,453,76,480"/> <area shape="rect" href="../../d2/d29/mount_8h.html" title=" " alt="" coords="407,379,495,405"/> <area shape="rect" href="../../df/d92/sys_2signal_8h.html" title=" " alt="" coords="819,528,911,555"/> <area shape="rect" href="../../d8/d01/resource_8h.html" title=" " alt="" coords="621,677,729,704"/> <area shape="rect" href="../../d6/d35/i386_2cpu_8h.html" title=" " alt="" coords="1037,528,1119,555"/> <area shape="rect" href="../../d1/df2/wait_8h.html" title=" " alt="" coords="101,453,199,480"/> <area shape="rect" href="../../d1/d7d/pipe__fs_8h.html" title=" " alt="" coords="223,453,311,480"/> <area shape="rect" href="../../d8/dff/msdos__fs_8h.html" title=" " alt="" coords="336,453,439,480"/> <area shape="rect" href="../../d4/d7e/include_2sys_2device_8h.html" title=" " alt="" coords="69,528,164,555"/> <area shape="rect" href="../../d0/d39/i386_2elf_8h.html" title=" " alt="" coords="1389,155,1463,181"/> <area shape="rect" href="../../d2/d5c/elf32_8h.html" title=" " alt="" coords="1487,155,1573,181"/> <area shape="rect" href="../../dc/d26/elf64_8h.html" title=" " alt="" coords="1597,155,1682,181"/> <area shape="rect" href="../../dd/d1b/ubthread_8h.html" title=" " alt="" coords="1189,155,1314,181"/> <area shape="rect" href="../../dd/d58/elf__common_8h.html" title=" " alt="" coords="1541,229,1669,256"/> <area shape="rect" href="../../de/df7/time_8h.html" title=" " alt="" coords="1728,528,1828,555"/> <area shape="rect" href="../../dc/dac/io_8h.html" title=" " alt="" coords="1744,603,1812,629"/> <area shape="rect" href="../../d6/d90/strings_8h.html" title=" " alt="" coords="1487,528,1559,555"/> <area shape="rect" href="../../d1/d2d/stdarg_8h.html" title=" " alt="" coords="1807,155,1877,181"/> </map> </div> </div> <p><a href="../../de/d5f/syscall__posix_8c_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a732bce33711189953191fb779fa98c3a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d5f/syscall__posix_8c.html#a732bce33711189953191fb779fa98c3a">invalidCall_posix</a> ()</td></tr> <tr class="separator:a732bce33711189953191fb779fa98c3a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a36e904a79ceddf1f6e28a7959ac55b99"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d5f/syscall__posix_8c.html#a36e904a79ceddf1f6e28a7959ac55b99">sys_call_posix</a> (struct <a class="el" href="../../df/d05/structtrapframe.html">trapframe</a> *frame)</td></tr> <tr class="separator:a36e904a79ceddf1f6e28a7959ac55b99"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> Variables</h2></td></tr> <tr class="memitem:a265ad04ec8650ad0a46179cdaa01dd98"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="../../d1/daf/structspinLock.html">spinLock</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d5f/syscall__posix_8c.html#a265ad04ec8650ad0a46179cdaa01dd98">Master</a> = <a class="el" href="../../df/d63/spinlock_8h.html#a0fe85a4f3642683148b25916d6c5eafd">SPIN_LOCK_INITIALIZER</a></td></tr> <tr class="separator:a265ad04ec8650ad0a46179cdaa01dd98"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Function Documentation</h2> <a id="a732bce33711189953191fb779fa98c3a"></a> <h2 class="memtitle"><span class="permalink"><a href="#a732bce33711189953191fb779fa98c3a">◆ </a></span>invalidCall_posix()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int invalidCall_posix </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../de/d5f/syscall__posix_8c_source.html#l00125">125</a> of file <a class="el" href="../../de/d5f/syscall__posix_8c_source.html">syscall_posix.c</a>.</p> <p class="reference">References <a class="el" href="../../d3/d02/armv6_2sched_8c_source.html#l00050">_current</a>, <a class="el" href="../../d7/d00/sched_8h_source.html#l00063">taskStruct::id</a>, <a class="el" href="../../df/d87/kprintf_8c_source.html#l00259">kprintf()</a>, and <a class="el" href="../../dc/d5c/kernel_2syscall_8c_source.html#l00043">sys_call()</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../de/d5f/syscall__posix_8c_a732bce33711189953191fb779fa98c3a_cgraph.png" border="0" usemap="#de/d5f/syscall__posix_8c_a732bce33711189953191fb779fa98c3a_cgraph" alt=""/></div> <map name="de/d5f/syscall__posix_8c_a732bce33711189953191fb779fa98c3a_cgraph" id="de/d5f/syscall__posix_8c_a732bce33711189953191fb779fa98c3a_cgraph"> <area shape="rect" title=" " alt="" coords="5,107,123,133"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="432,132,489,159"/> <area shape="rect" href="../../de/ddf/syscall_8h.html#ab47807607e76a25f1af877bff76e5cd3" title=" " alt="" coords="171,157,241,184"/> <area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="543,81,598,108"/> <area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="539,132,602,159"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="537,183,604,209"/> <area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="656,5,737,32"/> <area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="652,56,741,83"/> <area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="665,107,729,133"/> <area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="662,157,731,184"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="789,157,864,184"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="913,132,1003,159"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="912,183,1004,209"/> <area shape="rect" href="../../dc/d6f/trap_8c.html#a62b4617f9a2800b1e9baf8d6f93835bd" title=" " alt="" coords="289,183,384,209"/> <area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html#adb9a182aa071791a306163d50d653deb" title="print panic message and halt system" alt="" coords="307,233,367,260"/> </map> </div> </div> </div> <a id="a36e904a79ceddf1f6e28a7959ac55b99"></a> <h2 class="memtitle"><span class="permalink"><a href="#a36e904a79ceddf1f6e28a7959ac55b99">◆ </a></span>sys_call_posix()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void sys_call_posix </td> <td>(</td> <td class="paramtype">struct <a class="el" href="../../df/d05/structtrapframe.html">trapframe</a> * </td> <td class="paramname"><em>frame</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../de/d5f/syscall__posix_8c_source.html#l00042">42</a> of file <a class="el" href="../../de/d5f/syscall__posix_8c_source.html">syscall_posix.c</a>.</p> <p class="reference">References <a class="el" href="../../d3/d02/armv6_2sched_8c_source.html#l00050">_current</a>, <a class="el" href="../../db/dd5/thread_8h_source.html#l00048">thread::abi</a>, <a class="el" href="../../dc/d6f/trap_8c_source.html#l00059">die_if_kernel()</a>, <a class="el" href="../../dd/d58/elf__common_8h_source.html#l00164">ELFOSABI_FREEBSD</a>, <a class="el" href="../../db/dd5/thread_8h_source.html#l00047">thread::frame</a>, <a class="el" href="../../d7/d00/sched_8h_source.html#l00063">taskStruct::id</a>, <a class="el" href="../../dc/d94/armv6_2kpanic_8c_source.html#l00041">kpanic()</a>, <a class="el" href="../../df/d87/kprintf_8c_source.html#l00259">kprintf()</a>, <a class="el" href="../../da/d66/string_8h.html#ae33b18edb618c656b9b795b9fce2316c">memcpy()</a>, <a class="el" href="../../d6/d35/i386_2cpu_8h_source.html#l00037">PSL_C</a>, <a class="el" href="../../d2/d6e/syscalls_8h_source.html#l00065">syscall_entry::sc_name</a>, <a class="el" href="../../d2/d6e/syscalls_8h_source.html#l00058">SYSCALL_DEBUG</a>, <a class="el" href="../../d2/d6e/syscalls_8h_source.html#l00056">SYSCALL_DUMMY</a>, <a class="el" href="../../d2/d6e/syscalls_8h_source.html#l00054">SYSCALL_INVALID</a>, <a class="el" href="../../d2/d6e/syscalls_8h_source.html#l00057">SYSCALL_NOTIMP</a>, <a class="el" href="../../d5/d87/syscalls_8c_source.html#l00034">systemCalls</a>, <a class="el" href="../../dc/d85/syscalls__posix_8c_source.html#l00033">systemCalls_posix</a>, <a class="el" href="../../d7/d00/sched_8h_source.html#l00078">taskStruct::td</a>, <a class="el" href="../../db/dd5/thread_8h_source.html#l00041">thread::td_retval</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00046">trapframe::tf_eax</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00044">trapframe::tf_edx</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00052">trapframe::tf_eflags</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00054">trapframe::tf_esp</a>, and <a class="el" href="../../dc/d85/syscalls__posix_8c_source.html#l02791">totalCalls_posix</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../de/d5f/syscall__posix_8c_a36e904a79ceddf1f6e28a7959ac55b99_cgraph.png" border="0" usemap="#de/d5f/syscall__posix_8c_a36e904a79ceddf1f6e28a7959ac55b99_cgraph" alt=""/></div> <map name="de/d5f/syscall__posix_8c_a36e904a79ceddf1f6e28a7959ac55b99_cgraph" id="de/d5f/syscall__posix_8c_a36e904a79ceddf1f6e28a7959ac55b99_cgraph"> <area shape="rect" title=" " alt="" coords="5,183,113,209"/> <area shape="rect" href="../../dc/d6f/trap_8c.html#a62b4617f9a2800b1e9baf8d6f93835bd" title=" " alt="" coords="161,107,256,133"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="304,132,361,159"/> <area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html#adb9a182aa071791a306163d50d653deb" title="print panic message and halt system" alt="" coords="179,208,239,235"/> <area shape="rect" href="../../da/d66/string_8h.html#ae33b18edb618c656b9b795b9fce2316c" title=" " alt="" coords="173,259,245,285"/> <area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="415,81,470,108"/> <area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="411,132,474,159"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="409,183,476,209"/> <area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="528,5,609,32"/> <area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="524,56,613,83"/> <area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="537,107,601,133"/> <area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="534,157,603,184"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="661,157,736,184"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="785,132,875,159"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="784,183,876,209"/> </map> </div> </div> </div> <h2 class="groupheader">Variable Documentation</h2> <a id="a265ad04ec8650ad0a46179cdaa01dd98"></a> <h2 class="memtitle"><span class="permalink"><a href="#a265ad04ec8650ad0a46179cdaa01dd98">◆ </a></span>Master</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">struct <a class="el" href="../../d1/daf/structspinLock.html">spinLock</a> Master = <a class="el" href="../../df/d63/spinlock_8h.html#a0fe85a4f3642683148b25916d6c5eafd">SPIN_LOCK_INITIALIZER</a></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../de/d5f/syscall__posix_8c_source.html#l00040">40</a> of file <a class="el" href="../../de/d5f/syscall__posix_8c_source.html">syscall_posix.c</a>.</p> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="../../dir_dc43877d82dd332f9fb2071fcca799d6.html">kernel</a></li><li class="navelem"><a class="el" href="../../de/d5f/syscall__posix_8c.html">syscall_posix.c</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>