forked from Imagelibrary/rtems
fixed for Linux
This commit is contained in:
18
c/src/lib/libbsp/unix/posix/README
Normal file
18
c/src/lib/libbsp/unix/posix/README
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
This is a "generic" BSP for a modern UNIX system which is enough
|
||||||
|
System V and POSIX compliant to support at least the following:
|
||||||
|
|
||||||
|
+ semaphores
|
||||||
|
+ itimers
|
||||||
|
+ mmap
|
||||||
|
+ shared memory
|
||||||
|
|
||||||
|
At the moment, this BSP is known to work with the following UNIXes:
|
||||||
|
|
||||||
|
+ HP-UX 9.0.x
|
||||||
|
+ Solaris 2.x
|
||||||
|
+ Linux 1.1.x (single processor only -- mmap is broken)
|
||||||
@@ -20,6 +20,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
extern rtems_configuration_table Configuration;
|
extern rtems_configuration_table Configuration;
|
||||||
extern sigset_t UNIX_SIGNAL_MASK;
|
extern sigset_t UNIX_SIGNAL_MASK;
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
struct timeval Timer_start;
|
struct timeval Timer_start;
|
||||||
struct timeval Timer_stop;
|
struct timeval Timer_stop;
|
||||||
|
|||||||
Reference in New Issue
Block a user