No subject

Markus Schmitz markus_schmitz_b at yahoo.de
Thu May 3 07:53:45 UTC 2001


Hello, 

Could someone please help me?
I run RTEMS under cygwin.
I tried to list the files in a directory,
but all I got were empty strings?

#include<bsp.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<dirent.h>
#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>
#include<string.h>
#include<errno.h>
#include <fcntl.h>

rtems_task Init(rtems_task_argument ignored)
{
  DIR *dp;
  struct dirent *dirp;
    
  if ( (dp = opendir (".")) == NULL)
    {printf("can`t open Directory");}
  else
    {
      while( (dirp = readdir(dp)) != NULL)
	{
	   printf("%s\n", dirp->d_name);
        }
     }
  closedir(dp);
  exit(0);
}

/* configuration information */
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_MAXIMUM_TASKS 10
#define CONFIGURE_MAXIMUM_PERIODS 1
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 2
#define CONFIGURE_MAXIMUM_SEMAPHORE 2
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT
#include <confdefs.h>



__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de



More information about the users mailing list