forked from Imagelibrary/rtems
2001-08-17 Joel Sherrill <joel@OARcorp.com>
* include/rtems/libio_.h: Added ifdef to ensure that LOGIN_NAME_MAX is defined on GNU/Linux (RedHat 6.2 distribution). * libc/unixlibc.c: Added stubs for rtems_io_register_name() and rtems_io_lookup_name() so UNIX port would compile the IO manager sptest that registers /dev/null.
This commit is contained in:
@@ -211,6 +211,14 @@ extern rtems_libio_t *rtems_libio_iop_freelist;
|
|||||||
/*
|
/*
|
||||||
* External structures
|
* External structures
|
||||||
*/
|
*/
|
||||||
|
#if !defined(LOGIN_NAME_MAX)
|
||||||
|
#if defined(__linux__)
|
||||||
|
#define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
|
||||||
|
#else
|
||||||
|
#error "don't know how to set LOGIN_NAME_MAX"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
rtems_id task_id;
|
rtems_id task_id;
|
||||||
rtems_filesystem_location_info_t current_directory;
|
rtems_filesystem_location_info_t current_directory;
|
||||||
|
|||||||
@@ -211,6 +211,14 @@ extern rtems_libio_t *rtems_libio_iop_freelist;
|
|||||||
/*
|
/*
|
||||||
* External structures
|
* External structures
|
||||||
*/
|
*/
|
||||||
|
#if !defined(LOGIN_NAME_MAX)
|
||||||
|
#if defined(__linux__)
|
||||||
|
#define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
|
||||||
|
#else
|
||||||
|
#error "don't know how to set LOGIN_NAME_MAX"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
rtems_id task_id;
|
rtems_id task_id;
|
||||||
rtems_filesystem_location_info_t current_directory;
|
rtems_filesystem_location_info_t current_directory;
|
||||||
|
|||||||
@@ -17,6 +17,23 @@
|
|||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
|
|
||||||
|
rtems_status_code rtems_io_register_name(
|
||||||
|
char *device_name,
|
||||||
|
rtems_device_major_number major,
|
||||||
|
rtems_device_minor_number minor
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return 0; /* not supported */
|
||||||
|
}
|
||||||
|
|
||||||
|
rtems_status_code rtems_io_lookup_name(
|
||||||
|
const char *name,
|
||||||
|
rtems_driver_name_t **device_info
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return 0; /* not supported */
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(RTEMS_UNIXLIB)
|
#if defined(RTEMS_UNIXLIB)
|
||||||
|
|
||||||
void libc_init(int reentrant)
|
void libc_init(int reentrant)
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
2001-08-17 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* include/rtems/libio_.h: Added ifdef to ensure that LOGIN_NAME_MAX
|
||||||
|
is defined on GNU/Linux (RedHat 6.2 distribution).
|
||||||
|
* libc/unixlibc.c: Added stubs for rtems_io_register_name() and
|
||||||
|
rtems_io_lookup_name() so UNIX port would compile the IO manager
|
||||||
|
sptest that registers /dev/null.
|
||||||
|
|
||||||
2001-08-10 Radzislaw Galler <rgaller@et.put.poznan.pl>
|
2001-08-10 Radzislaw Galler <rgaller@et.put.poznan.pl>
|
||||||
|
|
||||||
* score/cpu_asm.c (sh_set_irq_priority): Changed interrupt vector
|
* score/cpu_asm.c (sh_set_irq_priority): Changed interrupt vector
|
||||||
|
|||||||
@@ -211,6 +211,14 @@ extern rtems_libio_t *rtems_libio_iop_freelist;
|
|||||||
/*
|
/*
|
||||||
* External structures
|
* External structures
|
||||||
*/
|
*/
|
||||||
|
#if !defined(LOGIN_NAME_MAX)
|
||||||
|
#if defined(__linux__)
|
||||||
|
#define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
|
||||||
|
#else
|
||||||
|
#error "don't know how to set LOGIN_NAME_MAX"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
rtems_id task_id;
|
rtems_id task_id;
|
||||||
rtems_filesystem_location_info_t current_directory;
|
rtems_filesystem_location_info_t current_directory;
|
||||||
|
|||||||
@@ -17,6 +17,23 @@
|
|||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
|
|
||||||
|
rtems_status_code rtems_io_register_name(
|
||||||
|
char *device_name,
|
||||||
|
rtems_device_major_number major,
|
||||||
|
rtems_device_minor_number minor
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return 0; /* not supported */
|
||||||
|
}
|
||||||
|
|
||||||
|
rtems_status_code rtems_io_lookup_name(
|
||||||
|
const char *name,
|
||||||
|
rtems_driver_name_t **device_info
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return 0; /* not supported */
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(RTEMS_UNIXLIB)
|
#if defined(RTEMS_UNIXLIB)
|
||||||
|
|
||||||
void libc_init(int reentrant)
|
void libc_init(int reentrant)
|
||||||
|
|||||||
@@ -211,6 +211,14 @@ extern rtems_libio_t *rtems_libio_iop_freelist;
|
|||||||
/*
|
/*
|
||||||
* External structures
|
* External structures
|
||||||
*/
|
*/
|
||||||
|
#if !defined(LOGIN_NAME_MAX)
|
||||||
|
#if defined(__linux__)
|
||||||
|
#define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
|
||||||
|
#else
|
||||||
|
#error "don't know how to set LOGIN_NAME_MAX"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
rtems_id task_id;
|
rtems_id task_id;
|
||||||
rtems_filesystem_location_info_t current_directory;
|
rtems_filesystem_location_info_t current_directory;
|
||||||
|
|||||||
@@ -211,6 +211,14 @@ extern rtems_libio_t *rtems_libio_iop_freelist;
|
|||||||
/*
|
/*
|
||||||
* External structures
|
* External structures
|
||||||
*/
|
*/
|
||||||
|
#if !defined(LOGIN_NAME_MAX)
|
||||||
|
#if defined(__linux__)
|
||||||
|
#define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
|
||||||
|
#else
|
||||||
|
#error "don't know how to set LOGIN_NAME_MAX"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
rtems_id task_id;
|
rtems_id task_id;
|
||||||
rtems_filesystem_location_info_t current_directory;
|
rtems_filesystem_location_info_t current_directory;
|
||||||
|
|||||||
@@ -17,6 +17,23 @@
|
|||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
|
|
||||||
|
rtems_status_code rtems_io_register_name(
|
||||||
|
char *device_name,
|
||||||
|
rtems_device_major_number major,
|
||||||
|
rtems_device_minor_number minor
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return 0; /* not supported */
|
||||||
|
}
|
||||||
|
|
||||||
|
rtems_status_code rtems_io_lookup_name(
|
||||||
|
const char *name,
|
||||||
|
rtems_driver_name_t **device_info
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return 0; /* not supported */
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(RTEMS_UNIXLIB)
|
#if defined(RTEMS_UNIXLIB)
|
||||||
|
|
||||||
void libc_init(int reentrant)
|
void libc_init(int reentrant)
|
||||||
|
|||||||
Reference in New Issue
Block a user