os_readdir() now using utcb as dirent buffer.

This commit is contained in:
Bahadir Balban
2008-04-13 16:32:34 +01:00
parent 2efffdfa88
commit 7b2f9f96cf
11 changed files with 46 additions and 21 deletions

View File

@@ -1,6 +1,8 @@
#ifndef __TEST0_TESTS_H__
#define __TEST0_TESTS_H__
#define __TASKNAME__ "test0"
int shmtest(void);
int mmaptest(void);
int dirtest(void);

View File

@@ -11,7 +11,6 @@
#include <l4lib/ipcdefs.h>
#include <tests.h>
#define __TASKNAME__ "test0"
void wait_pager(l4id_t partner)
{

View File

@@ -12,6 +12,7 @@
#include <sys/syscall.h>
#include <sys/stat.h>
#include <l4lib/os/posix/readdir.h>
#include <tests.h>
#define DENTS_TOTAL 50
@@ -116,7 +117,7 @@ int lsdir(char *path)
printf("OPEN OK.\n");
if ((bytes = os_readdir(fd, dents, sizeof(struct dirent) * DENTS_TOTAL)) < 0) {
perror("GETDENTS");
printf("%s: GETDENTS failed.\n", __TASKNAME__);
return 0;
} else {
printf("GETDENTS OK.\n");