Added file io test to test0. Added close call to libposix.

This commit is contained in:
Bahadir Balban
2008-04-18 21:17:09 +01:00
parent cff7a505e8
commit f7163b7e93
7 changed files with 83 additions and 13 deletions

View File

@@ -100,21 +100,12 @@ void handle_fs_requests(void)
void main(void)
{
struct timeval tv;
printf("\n%s: Started with tid: %d\n", __TASKNAME__, self_tid());
initialise();
wait_pager(PAGER_TID);
if (gettimeofday(&tv, 0) < 0) {
printf("Reading the time has failed.\n");
} else {
printf("Current time since system started: %u useconds, "
"%u seconds.\n", tv.tv_usec, tv.tv_sec);
}
printf("%s: Listening requests.\n", __TASKNAME__);
while (1) {
handle_fs_requests();