mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-10 01:23:22 +00:00
* 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.
54 lines
921 B
C
54 lines
921 B
C
/*
|
|
* $Id$
|
|
* UNIX Port C Library Support
|
|
*
|
|
* COPYRIGHT (c) 1989-1999.
|
|
* On-Line Applications Research Corporation (OAR).
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.OARcorp.com/rtems/license.html.
|
|
*
|
|
*/
|
|
|
|
#if HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#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)
|
|
{
|
|
}
|
|
|
|
#else
|
|
|
|
/* remove ANSI errors.
|
|
* A program must contain at least one external-declaration
|
|
* (X3.159-1989 p.82,L3).
|
|
*/
|
|
void unixlibc_dummy_function( void )
|
|
{
|
|
}
|
|
|
|
#endif
|