Changeset d6c20ff3 in rtems


Ignore:
Timestamp:
Aug 17, 2001, 9:59:28 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
7ac1f89
Parents:
1946544
Message:

2001-08-17 Joel Sherrill <joel@…>

  • 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.
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/include/rtems/libio_.h

    r1946544 rd6c20ff3  
    212212 *  External structures
    213213 */
     214#if !defined(LOGIN_NAME_MAX)
     215#if defined(__linux__)
     216#define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
     217#else
     218#error "don't know how to set LOGIN_NAME_MAX"
     219#endif
     220#endif
     221
    214222typedef struct {
    215223 rtems_id                         task_id;     
  • c/src/exec/libcsupport/include/rtems/libio_.h

    r1946544 rd6c20ff3  
    212212 *  External structures
    213213 */
     214#if !defined(LOGIN_NAME_MAX)
     215#if defined(__linux__)
     216#define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
     217#else
     218#error "don't know how to set LOGIN_NAME_MAX"
     219#endif
     220#endif
     221
    214222typedef struct {
    215223 rtems_id                         task_id;     
  • c/src/exec/libcsupport/src/unixlibc.c

    r1946544 rd6c20ff3  
    1818#include <rtems.h>
    1919
     20rtems_status_code rtems_io_register_name(
     21  char *device_name,
     22  rtems_device_major_number major,
     23  rtems_device_minor_number minor
     24)
     25{
     26  return 0; /* not supported */
     27}
     28
     29rtems_status_code rtems_io_lookup_name(
     30  const char           *name,
     31  rtems_driver_name_t **device_info
     32)
     33{
     34  return 0; /* not supported */
     35}
     36
    2037#if defined(RTEMS_UNIXLIB)
    2138
  • c/src/lib/ChangeLog

    r1946544 rd6c20ff3  
     12001-08-17      Joel Sherrill <joel@OARcorp.com>
     2
     3        * include/rtems/libio_.h: Added ifdef to ensure that LOGIN_NAME_MAX
     4        is defined on GNU/Linux (RedHat 6.2 distribution).
     5        * libc/unixlibc.c: Added stubs for rtems_io_register_name() and
     6        rtems_io_lookup_name() so UNIX port would compile the IO manager
     7        sptest that registers /dev/null.
     8
    192001-08-10  Radzislaw Galler  <rgaller@et.put.poznan.pl>
    210
  • c/src/lib/include/rtems/libio_.h

    r1946544 rd6c20ff3  
    212212 *  External structures
    213213 */
     214#if !defined(LOGIN_NAME_MAX)
     215#if defined(__linux__)
     216#define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
     217#else
     218#error "don't know how to set LOGIN_NAME_MAX"
     219#endif
     220#endif
     221
    214222typedef struct {
    215223 rtems_id                         task_id;     
  • c/src/lib/libc/unixlibc.c

    r1946544 rd6c20ff3  
    1818#include <rtems.h>
    1919
     20rtems_status_code rtems_io_register_name(
     21  char *device_name,
     22  rtems_device_major_number major,
     23  rtems_device_minor_number minor
     24)
     25{
     26  return 0; /* not supported */
     27}
     28
     29rtems_status_code rtems_io_lookup_name(
     30  const char           *name,
     31  rtems_driver_name_t **device_info
     32)
     33{
     34  return 0; /* not supported */
     35}
     36
    2037#if defined(RTEMS_UNIXLIB)
    2138
  • cpukit/include/rtems/libio_.h

    r1946544 rd6c20ff3  
    212212 *  External structures
    213213 */
     214#if !defined(LOGIN_NAME_MAX)
     215#if defined(__linux__)
     216#define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
     217#else
     218#error "don't know how to set LOGIN_NAME_MAX"
     219#endif
     220#endif
     221
    214222typedef struct {
    215223 rtems_id                         task_id;     
  • cpukit/libcsupport/include/rtems/libio_.h

    r1946544 rd6c20ff3  
    212212 *  External structures
    213213 */
     214#if !defined(LOGIN_NAME_MAX)
     215#if defined(__linux__)
     216#define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
     217#else
     218#error "don't know how to set LOGIN_NAME_MAX"
     219#endif
     220#endif
     221
    214222typedef struct {
    215223 rtems_id                         task_id;     
  • cpukit/libcsupport/src/unixlibc.c

    r1946544 rd6c20ff3  
    1818#include <rtems.h>
    1919
     20rtems_status_code rtems_io_register_name(
     21  char *device_name,
     22  rtems_device_major_number major,
     23  rtems_device_minor_number minor
     24)
     25{
     26  return 0; /* not supported */
     27}
     28
     29rtems_status_code rtems_io_lookup_name(
     30  const char           *name,
     31  rtems_driver_name_t **device_info
     32)
     33{
     34  return 0; /* not supported */
     35}
     36
    2037#if defined(RTEMS_UNIXLIB)
    2138
Note: See TracChangeset for help on using the changeset viewer.