32,19 → 32,18 |
* 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 code for performing four system calls relating to |
* status and directories. |
/** |
* @file stadir.c |
* @brief This file contains the code for performing four system calls relating to |
* status and directories. |
*/ |
|
/* Methods: |
* do_chdir: perform the CHDIR system call |
* do_stat: perform the STAT system call |
* do_fstat: perform the FSTAT system call |
*/ |
|
|
#include "fs.h" |
#include "stat.h" |
#include "file.h" |
55,7 → 54,10 |
|
static int change(inode_t **iip, char *name_ptr, int len); |
static int stat_inode(inode_t *rip, filp_t *fil_ptr, char *user_addr); |
|
|
/** |
* Perform the CHDIR system call |
*/ |
int do_chdir() |
{ |
|
66,7 → 68,10 |
|
return r; |
} |
|
|
/** |
* Execute changing the current directory |
*/ |
int change(inode_t **iip, char *name_ptr, int len) |
{ |
|
106,7 → 111,10 |
|
return OK; |
} |
|
|
/** |
* Perform the STAT system call |
*/ |
int do_stat() |
{ |
|
130,7 → 138,10 |
|
return r; |
} |
|
|
/** |
* Perform the FSTAT system call |
*/ |
int do_fstat() |
{ |
|
148,7 → 159,10 |
|
return(stat_inode(rfilp->filp_ino, NIL_FILP, fp->buffer)); |
} |
|
|
/** |
* Execute the actual STAT operation |
*/ |
int stat_inode(register inode_t *rip, filp_t *fil_ptr, char *user_addr) |
{ |
|
174,3 → 188,8 |
return OK; |
} |
|
|
/** |
* } |
*/ |
|