Files
codezero/tasks/fs0/include/syscalls.h
Bahadir Balban bd8b182f1b Added syscall to update filestats (size) from pager.
After flushing written/truncated pages, stats are updated
so that vfs is synced with new file info such as its size.
2008-05-21 10:23:11 +00:00

25 lines
833 B
C

/*
* System call function signatures.
*
* Copyright (C) 2007, 2008 Bahadir Balban
*/
#ifndef __FS0_SYSCALLS_H__
#define __FS0_SYSCALLS_H__
/* Posix calls */
int sys_open(l4id_t sender, char *pathname, int flags, u32 mode);
int sys_readdir(l4id_t sender, int fd, void *buf, int count);
int sys_mkdir(l4id_t sender, const char *pathname, unsigned int mode);
int sys_chdir(l4id_t sender, const char *pathname);
/* Calls from pager that completes a posix call */
int pager_sys_read(l4id_t sender, unsigned long vnum, unsigned long f_offset,
unsigned long npages, void *pagebuf);
int pager_sys_write(l4id_t sender, unsigned long vnum, unsigned long f_offset,
unsigned long npages, void *pagebuf);
int pager_update_stats(l4id_t sender, unsigned long vnum,
unsigned long newsize);
#endif /* __FS0_SYSCALLS_H__ */