Files
rtems/cpukit/libcsupport/src/unixlibc.c
Joel Sherrill d6c20ff373 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-17 21:59:28 +00:00

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