<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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"/> <title>Open SCAP Library: /home/pvrabec/project/openscap/openscap-0.7.4/src/OVAL/probes/fsdev.c File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.4 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Open SCAP Library</div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">/home/pvrabec/project/openscap/openscap-0.7.4/src/OVAL/probes/fsdev.c File Reference</div> </div> </div> <div class="contents"> <p>fsdev API implementation <a href="#details">More...</a></p> <div class="textblock"><code>#include <stdio.h></code><br/> <code>#include <stddef.h></code><br/> <code>#include <string.h></code><br/> <code>#include <ctype.h></code><br/> <code>#include <stdlib.h></code><br/> <code>#include <sys/types.h></code><br/> <code>#include <sys/stat.h></code><br/> <code>#include <errno.h></code><br/> <code>#include "<a class="el" href="fsdev_8h_source.html">fsdev.h</a>"</code><br/> </div><table class="memberdecls"> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa43d5f3529a4fc279edd70f92c5a5e76"></a><!-- doxytag: member="fsdev.c::fsdev_init" ref="gaa43d5f3529a4fc279edd70f92c5a5e76" args="(const char **fs, size_t fs_cnt)" --> <a class="el" href="structfsdev__t.html">fsdev_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__PROBEAUXAPI.html#gaa43d5f3529a4fc279edd70f92c5a5e76">fsdev_init</a> (const char **fs, size_t fs_cnt)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize the <a class="el" href="structfsdev__t.html" title="Filesystem device structure.">fsdev_t</a> structure from an array of filesystem names. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaed7a61d80478c533525165239dfc409f"></a><!-- doxytag: member="fsdev.c::fsdev_strinit" ref="gaed7a61d80478c533525165239dfc409f" args="(const char *fs_names)" --> <a class="el" href="structfsdev__t.html">fsdev_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__PROBEAUXAPI.html#gaed7a61d80478c533525165239dfc409f">fsdev_strinit</a> (const char *fs_names)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize the <a class="el" href="structfsdev__t.html" title="Filesystem device structure.">fsdev_t</a> structure from a string containing filesystem names. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae7e2b275c4b002fb669678a07b9619d5"></a><!-- doxytag: member="fsdev.c::fsdev_free" ref="gae7e2b275c4b002fb669678a07b9619d5" args="(fsdev_t *lfs)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__PROBEAUXAPI.html#gae7e2b275c4b002fb669678a07b9619d5">fsdev_free</a> (<a class="el" href="structfsdev__t.html">fsdev_t</a> *lfs)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Free the <a class="el" href="structfsdev__t.html" title="Filesystem device structure.">fsdev_t</a> structure. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga744338d0cacfb13cf5c9f22281489e1f"></a><!-- doxytag: member="fsdev.c::fsdev_search" ref="ga744338d0cacfb13cf5c9f22281489e1f" args="(fsdev_t *lfs, void *id)" --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__PROBEAUXAPI.html#ga744338d0cacfb13cf5c9f22281489e1f">fsdev_search</a> (<a class="el" href="structfsdev__t.html">fsdev_t</a> *lfs, void *id)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Search an id in the <a class="el" href="structfsdev__t.html" title="Filesystem device structure.">fsdev_t</a> structure. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__PROBEAUXAPI.html#ga5563f3287c7639d1a36af3323e2b1aaa">fsdev_path</a> (<a class="el" href="structfsdev__t.html">fsdev_t</a> *lfs, const char *path)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Check whether a path points points to a place on any of the devices in the <a class="el" href="structfsdev__t.html" title="Filesystem device structure.">fsdev_t</a> structure. <a href="group__PROBEAUXAPI.html#ga5563f3287c7639d1a36af3323e2b1aaa"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__PROBEAUXAPI.html#ga297efe1d9f22008581daabefb000ea32">fsdev_fd</a> (<a class="el" href="structfsdev__t.html">fsdev_t</a> *lfs, int fd)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Check whether a file descriptor is associated with a file that resides on any of the devices in the <a class="el" href="structfsdev__t.html" title="Filesystem device structure.">fsdev_t</a> structure. <a href="group__PROBEAUXAPI.html#ga297efe1d9f22008581daabefb000ea32"></a><br/></td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>fsdev API implementation </p> <dl class="author"><dt><b>Author:</b></dt><dd>"Daniel Kopecek" <<a href="mailto:dkopecek@redhat.com">dkopecek@redhat.com</a>> </dd></dl> </div></div> <hr class="footer"/><address class="footer"><small>Generated on Mon Jul 25 2011 for Open SCAP Library by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address> </body> </html>