diff options
Diffstat (limited to 'c/src/exec')
-rw-r--r-- | c/src/exec/include/rtems/libio_.h | 8 | ||||
-rw-r--r-- | c/src/exec/libcsupport/include/rtems/libio_.h | 8 | ||||
-rw-r--r-- | c/src/exec/libcsupport/src/unixlibc.c | 17 |
3 files changed, 33 insertions, 0 deletions
diff --git a/c/src/exec/include/rtems/libio_.h b/c/src/exec/include/rtems/libio_.h index 027ce7d2c3..7e0f6df71e 100644 --- a/c/src/exec/include/rtems/libio_.h +++ b/c/src/exec/include/rtems/libio_.h @@ -211,6 +211,14 @@ extern rtems_libio_t *rtems_libio_iop_freelist; /* * 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 { rtems_id task_id; rtems_filesystem_location_info_t current_directory; diff --git a/c/src/exec/libcsupport/include/rtems/libio_.h b/c/src/exec/libcsupport/include/rtems/libio_.h index 027ce7d2c3..7e0f6df71e 100644 --- a/c/src/exec/libcsupport/include/rtems/libio_.h +++ b/c/src/exec/libcsupport/include/rtems/libio_.h @@ -211,6 +211,14 @@ extern rtems_libio_t *rtems_libio_iop_freelist; /* * 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 { rtems_id task_id; rtems_filesystem_location_info_t current_directory; diff --git a/c/src/exec/libcsupport/src/unixlibc.c b/c/src/exec/libcsupport/src/unixlibc.c index abc4526397..f0232ce5db 100644 --- a/c/src/exec/libcsupport/src/unixlibc.c +++ b/c/src/exec/libcsupport/src/unixlibc.c @@ -17,6 +17,23 @@ #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) void libc_init(int reentrant) |