Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2434 → Rev 2435

/branches/fs/uspace/fs/filedes.c
32,24 → 32,24
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/** @addtogroup FileSystemImpl
* @{
*/
 
 
/* This file contains the procedures that manipulate file descriptors. */
 
/*
* Methods:
* get_fd: look for free file descriptor and free filp slots
* get_filp: look up the filp entry for a given file descriptor
* find_filp: find a filp slot that points to a given inode
/**
* @file filedesc.c
* @brief This file contains the procedures that manipulate file descriptors.
*/
 
 
#include "fs.h"
#include "file.h"
#include "fproc.h"
#include "inode.h"
/**
* Look for free file descriptor and free filp slots
*/
int get_fd(int start, int *k, filp_t **fpt)
{
/* Look for a free file descriptor and a free filp slot. */
87,7 → 87,9
return FS_ENFILE;
}
/**
* Look up the filp entry for a given file descriptor
*/
filp_t *get_filp(int fild)
{
101,6 → 103,9
}
/**
* Find a filp slot that points to a given inode
*/
filp_t *find_filp(register inode_t *rip)
{
121,3 → 126,8
return NIL_FILP;
}
 
 
/**
* }
*/