mirror of
https://github.com/drasko/codezero.git
synced 2026-02-28 01:33:13 +01:00
os_readdir() now using utcb as dirent buffer.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#ifndef __TEST0_TESTS_H__
|
||||
#define __TEST0_TESTS_H__
|
||||
|
||||
#define __TASKNAME__ "test0"
|
||||
|
||||
int shmtest(void);
|
||||
int mmaptest(void);
|
||||
int dirtest(void);
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
#include <l4lib/ipcdefs.h>
|
||||
#include <tests.h>
|
||||
|
||||
#define __TASKNAME__ "test0"
|
||||
|
||||
void wait_pager(l4id_t partner)
|
||||
{
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user